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
How to Use in IPNetwork Monitor