ifIndex

IF-TRAP · .1.3.6.1.4.1.42359.2.2.2.1.3.1.1

Object

scalar Integer32
A unique value, greater than zero, for each interface.
It is recommended that values are assigned contiguously
starting from 1.  The value for each interface sub-layer
must remain constant at least from one re-initialization of
the entity's network management system to the next re-
initialization

Context

MIB
IF-TRAP
OID
.1.3.6.1.4.1.42359.2.2.2.1.3.1.1
Type
scalar
Access
notifyonly
Status
current
Parent
ifEntities

Scalars have one instance, identified by the .0 suffix.

Read the scalar instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'IF-TRAP' -M '/opt/observium/mibs/versa:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'IF-TRAP::ifIndex.0'
More examples
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'IF-TRAP' -M '/opt/observium/mibs/versa:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'IF-TRAP::ifIndex'

Syntax

Source
SNMPv2-SMIInteger32
Base type
Integer32

Values & Constraints

Type Constraints
range: -2147483648..2147483647