Networking · IP Services › SNMP
Trap
Cheat sheet · https://pcornel.dk/topic.php?topic=1230
Answer
An SNMP trap is an unsolicited message from agent to manager on UDP 162 when an event occurs, such as a link going down; traps are not acknowledged, informs are.
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
show snmp host— trap receiversshow snmp— traps sent- Receiver log shows trap — arrival
Commands
show snmp pending
Verify in this order
event → trap → manager → alert
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=1230