All MIBs › IF-MIB › ifTestCode
ifTestCode
Module: IF-MIB
OID (symbolic): IF-MIB::ifTestCode
OID (numeric): 1.3.6.1.2.1.31.1.3.1.5
Node type: OBJECT-TYPE
Type: OBJECT IDENTIFIER
Access: read-only
Description: This object contains a code which contains more specific information on the test result, for example an error-code after a failed test. Error codes and other values this object may take are specific to the type of interface and/or test. The value may have the semantics of either the AutonomousType or InstancePointer textual conventions as defined in RFC 2579. The identifier:
testCodeUnknown OBJECT IDENTIFIER ::= { 0 0 }
is defined for use if no additional result code is available.
What is ifTestCode?
This deprecated read-only OBJECT IDENTIFIER carries a more specific result or error code from the most recent interface test, with the identifier testCodeUnknown reserved for when no specific code applies. Admins used it to get detail beyond a simple pass/fail from ifTestStatus, such as which stage of a loopback test failed. For example, after a failed cable test the agent might return a vendor-specific OID under this object indicating 'open circuit detected' rather than the generic testCodeUnknown.
Examples
Walk all instances (SNMPv2c):
snmpwalk -v2c -c public <target> 1.3.6.1.2.1.31.1.3.1.5 snmpwalk -v2c -c public <target> IF-MIB::ifTestCode
Get a specific instance (index 1):
snmpget -v2c -c public <target> 1.3.6.1.2.1.31.1.3.1.5.1 snmpget -v2c -c public <target> IF-MIB::ifTestCode.1
Start monitoring SNMP-managed network devices with a free 30-day trial of IPNetwork Monitor. Create custom SNMP monitor using the IF-MIB::ifTestCode OID value, configure state conditions and alerts, and monitor any SNMP-managed network devices from a single console.
OID Breakdown
Upper-level ancestors (6 from the standard OID tree / other modules)
| Numeric OID | Name | Module |
|---|---|---|
| 1 | iso | LANART-AGENT |
| 1.3 | org | AirPair-MIB |
| 1.3.6 | dod | AirPair-MIB |
| 1.3.6.1 | internet | AirPair-MIB |
| 1.3.6.1.2 | mgmt | AXON-MIB |
| 1.3.6.1.2.1 | mib_2 | AXON-MIB |
| Numeric OID | Name | Module |
|---|---|---|
| 1.3.6.1.2.1.31 | ifMIB | IF-MIB |
| 1.3.6.1.2.1.31.1 | ifMIBObjects | IF-MIB |
| 1.3.6.1.2.1.31.1.3 | ifTestTable | IF-MIB |
| 1.3.6.1.2.1.31.1.3.1 | ifTestEntry | IF-MIB |
| 1.3.6.1.2.1.31.1.3.1.5 | ifTestCode | IF-MIB |