Pcornel
Networking · Network & Protocols › IP Services & Monitoring

SNMP PDU Evidence

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

Back to the Topic

Answer

An SNMP message is a wrapper — version, and a community string or SNMPv3 user and security data — around a PDU: a request, response or notification carrying object identifiers and values.

Remember

A wrong v2c community gets no answer at all — only a counter on the device. SNMPv3 problems come back as a Report naming the cause: unknown user, wrong digest, not in time window. Right credentials with a restricted view give "no such object". Polls use UDP 161, notifications UDP 162.

First checks

  • show snmp — packets received, unknown community names, requests processed, traps sent.
  • show snmp user / show snmp group / show snmp view — SNMPv3 users, their security level and what they may read.
  • show snmp engineID — the device's engine ID.
  • debug snmp packets — requests and responses; use briefly.
  • Capture filter snmp.

Commands

show snmp

Verify in this order

request reaches UDP 161 on the device → community or SNMPv3 user accepted → object within the permitted view → Response with error status 0 and a value → reply reaches the monitoring system

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=332

Confirmation

Confirm action

Continue?