PHP » GoLang |
login |
register |
about
|
GoLang SNMP::__construct
request it (369)
GoLang replacement for PHP's SNMP::__construct
[edit | history]
SNMP::__construct(PHP 5 >= 5.4.0, PHP 7) SNMP::__construct — Creates SNMP instance representing session to remote SNMP agent Description
public SNMP::__construct
( int
$version
, string $hostname
, string $community
[, int $timeout = 1000000
[, int $retries = 5
]] )The function description goes here. Parameters
Return ValuesReturns SNMP object representing remote SNMP agent. Errors/ExceptionsSNMP::__construct() throws an exception when parameters count or types are wrong or unknown SNMP protocol version specified. ExamplesExample #1 Fetching sysLocation
<?php The above example will output something similar to: STRING: Test server See Also
|
more
Recently updated
more
Most requested
more
Last requests
|