ifNumber
Module: IF-MIB
OID (symbolic): IF-MIB::ifNumber
OID (numeric): 1.3.6.1.2.1.2.1
Node type: OBJECT-TYPE
Type: Integer32
Access: read-only
Description: The number of network interfaces (regardless of their current state) present on this system.
What is ifNumber?
This read-only object indicates the total number of network interfaces on the device, regardless of whether they are currently active or idle. It provides a quick inventory count of all ports and logical interfaces present in the system. An operator uses this to verify the device configuration and understand the maximum capacity for assigning traffic policies or monitoring.
Examples
Walk all instances (SNMPv2c):
snmpwalk -v2c -c public <target> 1.3.6.1.2.1.2.1 snmpwalk -v2c -c public <target> IF-MIB::ifNumber
Get a specific instance (index 1):
snmpget -v2c -c public <target> 1.3.6.1.2.1.2.1.1 snmpget -v2c -c public <target> IF-MIB::ifNumber.1
Start monitoring SNMP-managed network devices with a free 30-day trial of IPNetwork Monitor. Create custom SNMP monitor using the IF-MIB::ifNumber OID value, configure state conditions and alerts, and monitor any SNMP-managed network devices from a single console.
How to Use in IPNetwork Monitor
OID Breakdown
Upper-level ancestors (7 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 |
| 1.3.6.1.2.1.2 | interfaces | CHECKPOINT-MIB-2 |
| Numeric OID | Name | Module |
|---|---|---|
| 1.3.6.1.2.1.2.1 | ifNumber | IF-MIB |