IF-MIB :: ifTestCode

MIB Reference — IPNetwork Monitor · Updated September 14, 2026

All MIBsIF-MIBifTestCode

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 OIDNameModule
1isoLANART-AGENT
1.3orgAirPair-MIB
1.3.6dodAirPair-MIB
1.3.6.1internetAirPair-MIB
1.3.6.1.2mgmtAXON-MIB
1.3.6.1.2.1mib_2AXON-MIB
Numeric OIDNameModule
1.3.6.1.2.1.31ifMIBIF-MIB
1.3.6.1.2.1.31.1ifMIBObjectsIF-MIB
1.3.6.1.2.1.31.1.3ifTestTableIF-MIB
1.3.6.1.2.1.31.1.3.1ifTestEntryIF-MIB
1.3.6.1.2.1.31.1.3.1.5ifTestCodeIF-MIB