SNMP::getnextFetch an SNMP object which follows the given object id Description
public mixed SNMP::getnext(arraystring
$objectId )
Fetch an SNMP object that follows specified Parameters
If
Return Values
Returns SNMP objects requested as string or array
depending on Errors/Exceptions
This method does not throw any exceptions by default.
To enable throwing an SNMPException exception when some of library errors occur
the SNMP class parameter ExamplesExample #1 Single SNMP object Single SNMP object may be requested in two ways: as string resulting string return value or as single-element array with associative array as output.
The above example will output something similar to: OID: NET-SNMP-MIB::netSnmpAgentOIDs.8 Array ( [SNMPv2-MIB::sysObjectID.0] => OID: NET-SNMP-MIB::netSnmpAgentOIDs.8 ) Example #2 Miltiple SNMP objects
The above example will output something similar to: Array ( [SNMPv2-MIB::sysObjectID.0] => OID: NET-SNMP-MIB::netSnmpAgentOIDs.8 [SNMPv2-MIB::sysLocation.0] => STRING: Nowhere ) See Also
|