Query: snmp2_walk
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
SNMP2_WALK(3) 1 SNMP2_WALK(3) snmp2_walk - Fetch all theSNMPobjects from an agentSYNOPSISarray snmp2_walk (string $host, string $community, string $object_id, [string $timeout = 1000000], [string $retries = 5])DESCRIPTIONsnmp2_walk(3) function is used to read all the values from an SNMP agent specified by the $hostname.PARAMETERSo $host - The SNMP agent (server). o $community - The read community. o $object_id - If NULL, $object_id is taken as the root of the SNMP objects tree and all objects under that tree are returned as an array. If $object_id is specified, all the SNMP objects below that $object_id are returned. o $timeout - The number of microseconds until the first timeout. o $retries - The number of times to retry if timeouts occur.RETURN VALUESReturns an array of SNMP object values starting from the $object_id as root or FALSE on error.EXAMPLESExample #1 snm2_pwalk(3) Example <?php $a = snmp2_walk("127.0.0.1", "public", ""); foreach ($a as $val) { echo "$val "; } ?> Above function call would return all the SNMP objects from the SNMP agent running on localhost. One can step through the values with a loopSEE ALSOsnmp2_real_walk(3). PHP Documentation Group SNMP2_WALK(3)
Related Man Pages |
---|
snmpwalk(3) - php |
snmp2_getnext(3) - php |
snmp2_real_walk(3) - php |
snmp3_walk(3) - php |
snmpwalkoid(3) - php |
Similar Topics in the Unix Linux Community |
---|
Accept SNMP Packets... |
How Do I find out SNMP Version? |
SNMP Monitoring |
Connect to a SQL server from AIX |
An Introduction to new Member |