(PHP 5)
snmp3_getnext — Fetch the SNMP object which follows the given object id
The snmp3_getnext() function is used to read the value of the SNMP object that follows the specified object_id.
The hostname of the SNMP agent (server).
the security name, usually some kind of username
the security level (noAuthNoPriv|authNoPriv|authPriv)
the authentication protocol (MD5 or SHA)
the authentication pass phrase
the privacy protocol (DES or AES)
the privacy pass phrase
The SNMP object id.
The number of microseconds until the first timeout.
The number of times to retry if timeouts occur.
Returns SNMP object value on success or FALSE on error. In case of an error, an E_WARNING message is shown.
Example #1 Using snmp3_getnext()
<?php
$nameOfSecondInterface = snmp3_getnext('localhost', 'james', 'authPriv', 'SHA', 'secret007', 'AES', 'secret007', 'IF-MIB::ifName.1');
?>