SNMP::setOidOutputFormatSet the OID output format of the session Description
public bool SNMP::setOidOutputFormat(Snmp\OidOutput
$format)Sets the format in which the OIDs returned by the requests of this session are printed, for instance in the keys of the array returned by SNMP::walk.
This is the same as setting the
SNMP::$oid_output_format
property to the corresponding
Parameters
Return Values
Always returns ExamplesExample #1 Walking with numeric OIDs The above example will output something similar to:
array(2) {
[".1.3.6.1.2.1.2.2.1.2.1"]=>
string(10) "STRING: lo"
[".1.3.6.1.2.1.2.2.1.2.2"]=>
string(12) "STRING: eth0"
}
See Also
|