Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

OID

Direct answer

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.

When to use this

Use it when polling a specific value, or decoding an OID from a trap.

First 30 seconds

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.

Operational verification

OID → agent lookup → value

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Protocol standard + deployed implementation
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformProtocol standard · Cisco IOS / IOS XE
Scope / prerequisiteUse it when polling a specific value, or decoding an OID from a trap.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

4 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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 references

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.

observation · 1
Command lookup Jump straight to Cisco syntax
Key points
  • 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.
Key checks
  • snmpget -v2c -c <community> <host> 1.3.6.1.2.1.1.3.0 — sysUpTime OID
  • snmptranslate -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.

PrefixBranch
1.3.6.1iso.org.dod.internet
1.3.6.1.2.1mib-2: standard MIBs (system, interfaces, IF-MIB, …)
1.3.6.1.4.1enterprises: vendor MIBs
1.3.6.1.4.1.9Cisco
1.3.6.1.6.3SNMPv3 framework objects

Common OIDs

ObjectOID
sysDescr.01.3.6.1.2.1.1.1.0
sysUpTime.01.3.6.1.2.1.1.3.0
sysName.01.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

PointDetail
64-bit countersUse ifHC* (IF-MIB) on fast links; 32-bit ifInOctets wraps in seconds at 10 Gb/s
ifIndex stabilityUse snmp-server ifindex persist so indexes survive reloads
MIB filesLoad the vendor MIBs into the NMS so it can translate numeric OIDs to names
Unsupported objectsThe 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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docProtocol standard + deployed implementation RFC 3411

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%
Confirmation

Confirm action

Continue?