snmp3_real_walk
snmp3_real_walk
Return all objects including their respective object ID within the specified one
**snmp3_real_walk** string $hostname string $security_name string $security_level string $auth_protocol string $auth_passphrase string $privacy_protocol string $privacy_passphrase $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.
snmp3_real_walk``object_id
hostnameThe hostname of the
agent (server).
security_namethe security name, usually some kind of username
security_levelthe security level (noAuthNoPriv|authNoPriv|authPriv)
auth_protocolthe authentication protocol (MD5 or SHA)
auth_passphrasethe authentication pass phrase
privacy_protocol
the authentication protocol (, ,
, or )
"MD5"``"SHA"``"SHA256"``"SHA512"
privacy_passphrasethe privacy pass phrase
object_idThe object id.
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
var_export(snmp3_real_walk('localhost', 'james', 'authPriv', 'SHA', 'secret007', 'AES', 'secret007', '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