Pcornel
Networking · IP Services › SNMP

SNMPv2c

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

Back to the Topic

Answer

SNMPv2c adds getbulk and informs but still authenticates with a plaintext community string; restrict it with ACLs or use SNMPv3 instead.

Remember

The community string is sent in clear text and works as a password — anyone who captures it can read (or, for RW, change) the device. If v2c must be used: read-only, a long random community, restricted with an ACL (snmp-server community <c> RO <acl>), and never RW. Prefer SNMPv3 authPriv.

First checks

  • show snmp — packets in/out and errors (bad community, unknown user, ACL drops).
  • show snmp user / show snmp group — SNMPv3 users and security levels.
  • show snmp host — trap and inform receivers.
  • show running-config | include snmp-server — communities, views, ACLs.
  • From the manager: snmpwalk -v3 -l authPriv -u <user> -a SHA -A <pw> -x AES -X <pw> <device> 1.3.6.1.2.1.1 — test a read.

Commands

show snmp community

Verify in this order

community configured RO with an ACL → only monitoring servers allowed → manager polls with the community → agent answers

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

Confirmation

Confirm action

Continue?