snmprealwalk
snmprealwalk
Return all objects including their respective object ID within the specified one
**snmprealwalk** string $hostname string $community $object_id int $timeout int $retries
The function is used to traverse over a number
of objects starting from
and return not only their values but also their object ids.
snmprealwalk``object_id
hostnameThe hostname of the agent (server).
communityThe read community.
object_idThe object id which precedes the wanted one.
timeoutThe number of microseconds until the first timeout.
retriesThe number of times to retry if timeouts occur.
Returns an associative array of the object ids and their values on success or false on error. In case of an error, an E_WARNING message is shown.
**Voorbeeld: Using **
<?php
print_r(snmprealwalk("localhost", "public", "IF-MIB::ifName"));
?>
The above will output something like:
Array
(
[IF-MIB::ifName.1] => STRING: lo
[IF-MIB::ifName.2] => STRING: eth0
[IF-MIB::ifName.3] => STRING: eth2
[IF-MIB::ifName.4] => STRING: sit0
[IF-MIB::ifName.5] => STRING: sixxs
)
snmpwalk