snmp_set_quick_print(3) php man page | unix.com

Man Page: snmp_set_quick_print

Operating Environment: php

Section: 3

SNMP_SET_QUICK_PRINT(3) 						 1						   SNMP_SET_QUICK_PRINT(3)

snmp_set_quick_print - Set the value of$quick_printwithin the UCDSNMPlibrary

SYNOPSIS
bool snmp_set_quick_print (bool $quick_print)
DESCRIPTION
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.
PARAMETERS
o $quick_print -
RETURN VALUES
No value is returned.
EXAMPLES
Setting quick_print is often used when using the information returned rather than displaying it. Example #1 Using snmp_set_quick_print(3) <?php snmp_set_quick_print(0); $a = snmpget("127.0.0.1", "public", ".1.3.6.1.2.1.2.2.1.9.1"); echo "$a "; snmp_set_quick_print(1); $a = snmpget("127.0.0.1", "public", ".1.3.6.1.2.1.2.2.1.9.1"); echo "$a "; ?> The above example will output something similar to:
SEE ALSO
snmp_get_quick_print(3). PHP Documentation Group SNMP_SET_QUICK_PRINT(3)
Related Man Pages
snmpget(1) - centos
snmp(3) - php
snmp_set_oid_output_format(3) - php
snmp_set_enum_print(3) - php
snmpwalkoid(3) - php
Similar Topics in the Unix Linux Community
Please Welcome Don Cragun as Lead Moderator
Status of UNIX.COM Forum Transformation
Please Welcome Ravinder Singh to the Moderation Team
The Order of the Wizard's Hat - Lifetime Achievement Award 2019 - Congrats to Wolf Machowitsch
Denial Of Service Attack Update