|
snmp_set_string_output_formatSet the output format of string values Description
void snmp_set_string_output_format(Snmp\StringOutput
$format)
Sets the format in which the Net-SNMP library prints the
string values returned by the SNMP functions, such as
snmp2_get or snmp2_real_walk.
The format only applies to string values whose MIB
object has no A new SNMP object takes its initial string output format from the value set with this function. To change it for a single session, use SNMP::setStringOutputFormat instead. Parameters
Return ValuesNo value is returned. ExamplesExample #1 Printing a binary string as text The above example will output something similar to:
Hex-STRING: 80 00 1F 88 80 1C FC 9A 1B 26 7B FF 6A 00 00 00
00
STRING: ".........&{.j...."
See Also
|