snmp2_getnext
snmp2_getnext
Fetch the SNMP object which follows the given object id
mixed **snmp2_getnext** string $hostname string $community $object_id int $timeout int $retries
The function is used to read the
value of the object that follows the specified
.
snmp2_get_next``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 object value on success or false on error. In case of an error, an E_WARNING message is shown.
**Voorbeeld: Using **
<?php
$nameOfSecondInterface = snmp2_get_next('localhost', 'public', 'IF-MIB::ifName.1');
?>
snmp2_get``snmp2_walk