Pcornel
Networking · IP Services › SNMP

OID

Cheat sheet · https://pcornel.dk/topic.php?topic=1228

Back to the Topic

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.

Remember

  • 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.

First 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

Verify in this order

OID → agent lookup → value

Where it usually breaks

local configuration → reachability/transport → request/negotiation → server or policy decision → response/state installation → client-visible result

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=1228

Confirmation

Confirm action

Continue?