(PHP 5 >= 5.4.0, PHP 7, PHP 8)
Represents SNMP session.
$version,$hostname,$community,$timeout = -1,$retries = -1SNMP_VALUE_LIBRARY | The return values will be as returned by the Net-SNMP library. |
SNMP_VALUE_PLAIN | The return values will be the plain value without the SNMP type information. |
SNMP_VALUE_OBJECT |
The return values will be objects with the properties "value" and "type", where the latter
is one of the SNMP_OCTET_STR, SNMP_COUNTER etc. constants. The
way "value" is returned is based on which one of SNMP_VALUE_LIBRARY,
SNMP_VALUE_PLAIN is set
|
quick_print within the NET-SNMP library
Sets the value of quick_print within the NET-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 NET-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.
SNMP_OID_OUTPUT_FULL | .iso.org.dod.internet.mgmt.mib-2.system.sysUpTime.sysUpTimeInstance |
SNMP_OID_OUTPUT_NUMERIC | .1.3.6.1.2.1.1.3.0 |
SNMP_OID_OUTPUT_MODULE | DISMAN-EVENT-MIB::sysUpTimeInstance |
SNMP_OID_OUTPUT_SUFFIX | sysUpTimeInstance |
SNMP_OID_OUTPUT_UCD | system.sysUpTime.sysUpTimeInstance |
SNMP_OID_OUTPUT_NONE | Undefined |
false to disable this
check.
SNMP::ERRNO_* constants.
By default all SNMP exceptions are disabled.
SNMP::ERRNO_NOERRORSNMP::ERRNO_GENERICSNMP::ERRNO_TIMEOUTSNMP::ERRNO_ERROR_IN_REPLYSNMP::ERRNO_OID_NOT_INCREASINGSNMP::ERRNO_OID_PARSING_ERRORSNMP::ERRNO_MULTIPLE_SET_QUERIESSNMP::ERRNO_ANY