php man page for snmp_set_enum_print

Query: snmp_set_enum_print

OS: php

Section: 3

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

SNMP_SET_ENUM_PRINT(3)							 1						    SNMP_SET_ENUM_PRINT(3)

snmp_set_enum_print - Return all values that are enums with their enum value instead of the raw integer

SYNOPSIS
bool snmp_set_enum_print (int $enum_print)
DESCRIPTION
This function toggles if snmpwalk/snmpget etc. should automatically lookup enum values in the MIB and return them together with their human readable string.
PARAMETERS
o $enum_print - As the value is interpreted as boolean by the Net-SNMP library, it can only be "0" or "1".
EXAMPLES
Example #1 Using snmp_set_enum_print(3) <?php snmp_set_enum_print(0); echo snmpget('localhost', 'public', 'IF-MIB::ifOperStatus.3') . " "; snmp_set_enum_print(1); echo snmpget('localhost', 'public', 'IF-MIB::ifOperStatus.3') . " "; ?> The above would return INTEGER: up(1) INTEGER: 1
NOTES
Note snmp_set_enum_print(3) is only available when using the UCD SNMP library. This function is not available when using the Windows SNMP library. PHP Documentation Group SNMP_SET_ENUM_PRINT(3)
Related Man Pages
snmpget(1) - mojave
snmpget(1) - opensolaris
snmp_set_enum_print(3) - php
snmpget(1) - v7
snmpget(1) - x11r4
Similar Topics in the Unix Linux Community
snmpget/snmpwalk for dskPercent not working.
Net-SNMP v5.4 - sub-id not found in log, but can query with snmpget and snmpwalk
snmpget not working on AIX shared wpar
snmpget not working on AIX shared wpar
Convert ssRawInterrupts into Interrupts Per Sec