GoLang snmp_set_quick_print

request it (306)
GoLang replacement for PHP's snmp_set_quick_print [edit | history]

Do you know a GoLang replacement for PHP's snmp_set_quick_print? Write it!

PHP snmp_set_quick_print

PHP original manual for snmp_set_quick_print [ show | php.net ]


(PHP 4, PHP 5, PHP 7)

snmp_set_quick_printSet the value of quick_print within the UCD SNMP library


bool snmp_set_quick_print ( bool $quick_print )

Sets the value of quick_print within the UCD SNMP library. When this is set (1), the SNMP library will return 'quick printed' values. This means that just the value will be printed. When quick_print is not enabled (default) the UCD SNMP library prints extra information including the type of the value (i.e. IpAddress or OID). Additionally, if quick_print is not enabled, the library prints additional hex values for all strings of three characters or less.

By default the UCD SNMP library returns verbose values, quick_print is used to return only the value.

Currently strings are still returned with extra quotes, this will be corrected in a later release.



Return Values

No value is returned.


Setting quick_print is often used when using the information returned rather than displaying it.

Example #1 Using snmp_set_quick_print()

$a snmpget("""public"".");
$a snmpget("""public"".");

The above example will output something similar to:

'Timeticks: (0) 0:00:00.00'

See Also