ifSpeed

OBS ✓
IF-MIB · .1.3.6.1.2.1.2.2.1.5

Object

An estimate of the interface's current bandwidth in bits
per second.  For interfaces which do not vary in bandwidth
or for those where no accurate estimation can be made, this
object should contain the nominal bandwidth.  If the
bandwidth of the interface is greater than the maximum value
reportable by this object then this object should report its
maximum value (4,294,967,295) and ifHighSpeed must be used
to report the interace's speed.  For a sub-layer which has
no concept of bandwidth, this object should be zero.
Observium directly uses this object
This object is referenced by an Observium discovery or polling workflow.
Used in: Ports
Explore Observium network monitoring

Context

MIB
IF-MIB
OID
.1.3.6.1.2.1.2.2.1.5
Type
column
Access
readonly
Status
current
Parent
ifEntry
Groups
2

Walk 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 'IF-MIB' -M '/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'IF-MIB::ifSpeed'
More examples
Read one indexed instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'IF-MIB' -M '/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'IF-MIB::ifSpeed.<ifIndex>'
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'IF-MIB' -M '/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'IF-MIB::ifSpeed'

Syntax

Source
SNMPv2-SMIGauge32
Base type
Unsigned32

Values & Constraints

Type Constraints
range: 0..4294967295