Use it when polling a specific value, or decoding an OID from a trap.
OID
An Object Identifier (OID) is the dotted numeric path to one MIB object, for example 1.3.6.1.2.1.2.2.1.10 for ifInOctets; managers request values by OID.
1. An OID is a numeric object identifier in the MIB tree.
2. Tables add index suffixes (ifIndex).
3. Use 64-bit counters (ifHCInOctets) for fast links.
4. ifIndex can change after reloads unless persistent.
5. Translate names to OIDs for clarity.
OID → agent lookup → value
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Verification and what it shows Verify boundary
Query the numeric OID and, when applicable, walk the parent table to show the intended instance/index exists. Compare the raw value with MIB type/units and a second device or local state source. A successful GET shows the agent returned that value for that OID/context at that time, but it does not show the manager interpreted it correctly or the service is healthy.
Step 2 Verification & troubleshooting Narrow the fault
1. Verify manager-to-agent routing and UDP 161.
2. Verify version, credentials/user, view and ACL.
3. Poll one known OID.
4. Verify notification destination and UDP 162.
5. Correlate device and manager logs.
Step 3 Observation → implication → next check Narrow the fault
Observation → implication → next check: timeout stays with reachability/agent/security exchange; noSuchObject points to unsupported or wrong object; noSuchInstance points to index/instance context; authorization errors point to view/security policy. A returned value that looks wrong requires validating units, type and index before device-state conclusions.
Step 4 Common mistakes Narrow the fault
- 32-bit counters on fast links.
- Typo in OID copied from forums.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- Polling and traps/informs are independent paths
- An OID identifies an object; the MIB describes structure and semantics
- SNMPv2c community strings are not equivalent to SNMPv3 authentication/privacy
- Restrict management sources and grant the minimum required view/access.
snmpget -v2c -c <community> <host> 1.3.6.1.2.1.1.3.0— sysUpTime OIDsnmptranslate -On IF-MIB::ifInOctets— name to OID
ReferenceWhy it matters2 sections · depth on demand
When to use it
Use it for inventory, counters, state monitoring and event notification with a defined MIB/OID and security model.
How it works in operation
An OID identifies a node/object in the SNMP object tree, while an instance suffix identifies the concrete scalar or table row being queried. Correct syntax alone is insufficient: agent implementation, context, indexes and VACM/view authorization determine whether a value can be returned.
ReferenceImportant terms & boundaries2 sections · depth on demand
In depth
An OID identifies one object in the MIB tree
The Catalyst 9300 SNMP guide describes the MIB as the collection of objects an agent exposes, read by managers with get, get-next and get-bulk. Each object has an object identifier (OID): a dotted path through a global tree.
| Prefix | Branch |
|---|---|
| 1.3.6.1 | iso.org.dod.internet |
| 1.3.6.1.2.1 | mib-2: standard MIBs (system, interfaces, IF-MIB, …) |
| 1.3.6.1.4.1 | enterprises: vendor MIBs |
| 1.3.6.1.4.1.9 | Cisco |
| 1.3.6.1.6.3 | SNMPv3 framework objects |
Common OIDs
| Object | OID |
|---|---|
| sysDescr.0 | 1.3.6.1.2.1.1.1.0 |
| sysUpTime.0 | 1.3.6.1.2.1.1.3.0 |
| sysName.0 | 1.3.6.1.2.1.1.5.0 |
| ifDescr (table) | 1.3.6.1.2.1.2.2.1.2 |
| ifHCInOctets (table) | 1.3.6.1.2.1.31.1.1.1.6 |
Scalar objects end in .0. Table objects end in an index, such as the ifIndex of an interface.
nms$ snmpget -v3 -l authPriv -u nms-poller -a SHA -A '<auth>' -x AES -X '<priv>' 10.20.0.2 1.3.6.1.2.1.1.5.0
SNMPv2-MIB::sysName.0 = STRING: C9300-A
nms$ snmpwalk -v3 -l authPriv -u nms-poller -a SHA -A '<auth>' -x AES -X '<priv>' 10.20.0.2 1.3.6.1.2.1.31.1.1.1.6
IF-MIB::ifHCInOctets.8 = Counter64: 8823341129
IF-MIB::ifHCInOctets.9 = Counter64: 112934
C9300# show snmp mib ifmib ifindex GigabitEthernet1/0/10
GigabitEthernet1/0/10: Ifindex = 18
Practical points
| Point | Detail |
|---|---|
| 64-bit counters | Use ifHC* (IF-MIB) on fast links; 32-bit ifInOctets wraps in seconds at 10 Gb/s |
| ifIndex stability | Use snmp-server ifindex persist so indexes survive reloads |
| MIB files | Load the vendor MIBs into the NMS so it can translate numeric OIDs to names |
| Unsupported objects | The guide notes that ciscoFlashFileDate is published but not supported |
A walk (get-next or get-bulk repeated) returns every object below an OID. Walking large tables such as routing tables loads the device's CPU, so poll only what you need.
Documented example, not captured output.
Quick reference
An OID (object identifier) is the numeric address of a single value in the MIB tree. SNMP queries use OIDs, so knowing a few common ones and how to translate between names and numbers makes troubleshooting monitoring problems much faster. One practical detail matters on modern links: use the 64-bit counters, because the old 32-bit ones wrap too quickly to give correct rates.
OIDs are dotted numeric paths in the MIB tree, e.g. 1.3.6.1.2.1.1.3.0 = sysUpTime.0, 1.3.6.1.2.1.31.1.1.1.6.<ifIndex> = ifHCInOctets.
snmpget -v3 -l authPriv -u nms -a SHA -A $AUTH -x AES -X $PRIV 10.0.0.1 1.3.6.1.2.1.1.5.0
snmpwalk -v3 … 10.0.0.1 IF-MIB::ifName
show snmp mib ifmib ifindex Gi1/0/1
Use 64-bit counters (ifHC*) on links ≥ 1 Gb/s — 32-bit ifInOctets wraps in about 34 seconds at 1 Gb/s.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in IP Services → SNMP → OID. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.rfc-editor.org/rfc/rfc3411.html · confidence 94%