Query: snmpwalkoid
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
SNMPWALKOID(3) 1 SNMPWALKOID(3) snmpwalkoid - Query for a tree of information about a network entitySYNOPSISarray snmpwalkoid (string $hostname, string $community, string $object_id, [int $timeout = 1000000], [int $retries = 5])DESCRIPTIONsnmpwalkoid(3) function is used to read all object ids and their respective values from an SNMP agent specified by $hostname. The existence of snmpwalkoid(3) and snmpwalk(3) has historical reasons. Both functions are provided for backward compatibility. Use snm- prealwalk(3) instead.PARAMETERSo $hostname - The SNMP agent. 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 associative array with object ids and their respective object value starting from the $object_id as root or FALSE on error.EXAMPLESExample #1 snmpwalkoid(3) Example <?php $a = snmpwalkoid("127.0.0.1", "public", ""); for (reset($a); $i = key($a); next($a)) { echo "$i: $a[$i]<br /> "; } ?> 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 ALSOsnmpwalk(3). PHP Documentation Group SNMPWALKOID(3)
Related Man Pages |
---|
snmp3_get(3) - php |
snmpset(3) - php |
snmp3_getnext(3) - php |
snmp3_real_walk(3) - php |
snmpwalkoid(3) - php |
Similar Topics in the Unix Linux Community |
---|
Openbravo: community releases localization for Chile |
exit out of a while loop with error |
Monitoring CPU Usage with SNMP |
Need help with SNMP perl script |
SNMP Monitoring |