phpday 2027 - Call for Papers

The Snmp\OidOutput Enum

(PHP 8 >= 8.6.0)

Introduzione

The Snmp\OidOutput enum lists the formats in which the Net-SNMP library prints an OID. It is accepted by snmp_set_oid_output_format() and SNMP::setOidOutputFormat(). Each case is equivalent to the SNMP_OID_OUTPUT_* constant of the same name.

The descriptions below show how the OID .1.3.6.1.2.1.1.3.0 is printed in each format.

Sommario dell'enumerazione

namespace Snmp;
enum OidOutput
{
case Suffix ; // Only the name of the MIB object, plus any instance sub-identifiers: sysUpTimeInstance. Equivalent to SNMP_OID_OUTPUT_SUFFIX.

case Module ; // The name of the MIB module and of the object: DISMAN-EVENT-MIB::sysUpTimeInstance. Equivalent to SNMP_OID_OUTPUT_MODULE.

case Full ; // The full list of MIB object names: .iso.org.dod.internet.mgmt.mib-2.system.sysUpTime.sysUpTimeInstance. Equivalent to SNMP_OID_OUTPUT_FULL.

case Numeric ; // The numeric OID: .1.3.6.1.2.1.1.3.0. Equivalent to SNMP_OID_OUTPUT_NUMERIC.

case Ucd ; // The traditional UCD-style output, which removes a series of standard prefixes from the OID: system.sysUpTime.sysUpTimeInstance. Equivalent to SNMP_OID_OUTPUT_UCD.

case None ; // The OID is not printed, so the keys of the arrays returned by the walk functions are undefined. Equivalent to SNMP_OID_OUTPUT_NONE.

}
+add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top