ipNetToMediaIfIndex
IP-MIB ·
.1.3.6.1.2.1.4.22.1.1
Object
column deprecated
r/w
Integer32
The interface on which this entry's equivalence is
effective. The interface identified by a particular value
of this index is the same interface as identified by the
same value of the IF-MIB's ifIndex.
This object predates the rule limiting index objects to a
max access value of 'not-accessible' and so continues to use
a value of 'read-create'.
Context
- MIB
- IP-MIB
- OID
.1.3.6.1.2.1.4.22.1.1- Type
- column
- Access
- readwrite
- Status
- deprecated
- Parent
- ipNetToMediaEntry
- Groups
- 1
Net-SNMP examples
How SNMP and these commands workWalk the column to discover its indexed instances, or supply every index to read one instance.
Walk the column
/usr/bin/snmpbulkwalk -v2c -c '<community>' -Pud -Ir -OQUs -m 'IP-MIB' -M '/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'IP-MIB::ipNetToMediaIfIndex'
More examples
Read one indexed instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'IP-MIB' -M '/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'IP-MIB::ipNetToMediaIfIndex.<ipNetToMediaIfIndex>.<ipNetToMediaNetAddress>'
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'IP-MIB' -M '/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'IP-MIB::ipNetToMediaIfIndex'
Syntax
Integer32
Values & Constraints
Object Constraints
range: 1-2147483647
Conformance
Member of