snmp3_getnext
(PHP 5, PHP 7, PHP 8)
Fetch the SNMP object which follows the given object id
Description
The snmp3_getnext() function is used to read the value of the SNMP object that follows the specified object_id.
Parameters
hostnameThe hostname of the SNMP agent (server).
security_nameSecurity-name
security_levelSecurity-level
auth_protocolAuth-protocol
auth_passphraseAuth-passphrase
privacy_protocolPrivacy-protocol
privacy_passphrasePrivacy-passphrase
object_idThe SNMP object id.
timeoutThe number of microseconds until the first timeout.
retriesThe number of times to retry if timeouts occur.
Return Values
Returns SNMP object value on success or false on error. In case of an error, an E_WARNING message is shown.
Changelog
| Version | Description |
|---|
Examples
Using snmp3_getnext()
<?php
$nameOfSecondInterface = snmp3_getnext('localhost', 'james', 'authPriv', 'SHA', 'secret007', 'AES', 'secret007', 'IF-MIB::ifName.1');
?>