Skip to main content
PacketMentor logo
← All topics
IP Services Foundational

SNMP: Simple Network Management Protocol

How monitoring systems pull metrics and receive alerts from network devices. Covers SNMPv1/v2c/v3, community strings, traps vs informs, MIB / OID navigation, and why SNMPv3 is the only one acceptable in 2026.

Quick summary
  • SNMP is the old-but-still-everywhere protocol for network monitoring. Manager polls agents (GET) or agents push alerts (TRAP).
  • Three versions: v1 (broken), v2c (community-string auth, plaintext), v3 (encryption + per-user auth).
  • In 2026 use v3 always for production. v2c only on isolated management networks where you accept the risk.

Studying for an exam? Get a free study plan from a Cisco NetAcad instructor. 20 minutes, no card.

SNMP · manager polls agents · agents send traps NMS Manager PRTG / SolarWinds R1 snmp agent SW1 snmp agent FW1 snmp agent GET · poll UDP 161 TRAP · UDP 162 Polling = manager-initiated reads · Traps = agent-initiated alerts on events
SNMP works two ways: the manager polls agents on a schedule (GET), and agents push urgent events to the manager (TRAP). Both flows are needed for proper monitoring.

Mental model

You manage 50 switches. You want to know: is each one up? CPU load? Interface utilization? Memory? Bandwidth on Gi0/24 over the last hour?

SNMP is the protocol that lets your monitoring system pull this info from every device on a schedule, and lets devices push critical events to your system in real time.

Two flows:

  • Polling (GET): manager asks agent: “what’s your CPU?” every 5 minutes.
  • Traps (asynchronous): agent pushes: “my interface just went down.” Immediately.

For over 30 years, SNMP has been the dominant network monitoring protocol. It’s being replaced by streaming telemetry (gRPC / NETCONF subscriptions, see NETCONF & YANG), but you’ll meet SNMP on every device for a long time yet.

Three versions: only v3 is OK for production

Version Auth Encryption Use?
v1 Community string (plain text) None Never
v2c Community string (plain text) None Only on isolated mgmt VLANs
v3 Username + password (hashed/encrypted) Optional AES encryption (AES-128 is the standard) Yes: production

Community strings in v1/v2c are essentially passwords sent in plain text. Anyone sniffing the management network can read them. Anyone reading them can poll your devices and read all configuration.

SNMPv3 uses real authentication (HMAC-SHA) and optional encryption (AES). It’s not perfect (still UDP, replay protection is finicky) but it’s the only acceptable choice for production.

SNMP messages

Message Direction Purpose
GET / GET-NEXT / GET-BULK Manager → Agent Read one or many values
SET Manager → Agent Write a value (rare in practice, usually monitoring is read-only)
RESPONSE Agent → Manager Reply to GET / SET
TRAP Agent → Manager Async alert. Fire-and-forget.
INFORM Agent → Manager Acknowledged alert (more reliable than trap)

For CCNA: know GET, TRAP, INFORM. TRAP vs INFORM: the difference is whether the manager acknowledges receipt. INFORM is retried if the manager doesn’t ACK. TRAP is sent once and forgotten.

Ports

  • UDP 161: agent (polled by manager)
  • UDP 162: manager (receives traps from agents)

Both UDP, so neither is guaranteed delivery. SNMP traps in particular can be lost.

MIB and OID: the data model

SNMP data lives in a MIB (Management Information Base), a hierarchical tree of values. Every node in the tree has a unique OID (Object Identifier), like 1.3.6.1.2.1.2.2.1.10.1 (which means interface Gi0/0 inbound octet count).

Real OIDs are unreadable. You’ll work with named MIBs:

ifInOctets.1            ← human form
1.3.6.1.2.1.2.2.1.10.1  ← OID form

Common MIBs you’ll touch:

  • IF-MIB: interface stats (counters, errors, status)
  • HOST-RESOURCES-MIB: CPU, memory, storage
  • CISCO-PROCESS-MIB: Cisco-specific CPU details
  • CISCO-MEMORY-POOL-MIB: Cisco memory details
  • BGP4-MIB, OSPF-MIB: routing protocol state

Monitoring systems (PRTG, SolarWinds, LibreNMS, Zabbix) ship with pre-built MIBs and templates. You rarely need to look up OIDs by hand.

! Create a view limiting what can be read (good practice)
SW1(config)# snmp-server view READ-VIEW iso included
SW1(config)# snmp-server view READ-VIEW 1.3.6.1.6.3 excluded     ! exclude SNMP config from view

! Create an SNMPv3 group
SW1(config)# snmp-server group ADMINS v3 priv read READ-VIEW

! Create an SNMPv3 user (auth + privacy)
SW1(config)# snmp-server user monitor ADMINS v3 auth sha auth-password priv aes 128 priv-password

! Where to send traps
SW1(config)# snmp-server host 10.0.99.5 version 3 priv monitor

! Enable trap types
SW1(config)# snmp-server enable traps
SW1(config)# snmp-server enable traps snmp linkdown linkup coldstart warmstart
SW1(config)# snmp-server enable traps config
SW1(config)# snmp-server enable traps cpu threshold

Commands: SNMPv2c (only on isolated networks)

! Read-only community
SW1(config)# snmp-server community public RO

! Read-write: basically gives full control. Use sparingly.
SW1(config)# snmp-server community secret RW

! ACL restricting which IPs can query
SW1(config)# ip access-list standard SNMP-ALLOWED
SW1(config-std-nacl)# permit host 10.0.99.5
SW1(config)# snmp-server community public RO SNMP-ALLOWED

! Trap host
SW1(config)# snmp-server host 10.0.99.5 version 2c public

Verification

SW1# show snmp
SW1# show snmp user
SW1# show snmp host
SW1# show snmp group
SW1# show snmp view

From your laptop (Linux/macOS), test with snmpwalk:

$ snmpwalk -v3 -l authPriv -u monitor -a SHA -A auth-password \
    -x AES -X priv-password 10.0.0.1 ifDescr

If you get back the list of interface descriptions, SNMPv3 is working.

Related reading: in CCNA v2.0, SNMP moves into the new AI, and Network Operations and Management domain. See the CCNA v2.0 AI domain guide.

Common mistakes

  1. Using v2c with default communities (public / private). Anyone on the management VLAN can poll your devices. Always set unique community strings, or better, use v3.

  2. Read-write community enabled with default password. An attacker who guesses the community can reconfigure everything via SNMP SET. Use RO only unless you actively need writes; if you do, use SNMPv3 with authPriv and a restricted write view.

  3. No ACL on SNMP. Polling can come from anyone if no ACL is set. Always restrict by source IP.

  4. Traps over UDP, no fallback. UDP traps can be lost. For critical alerts, use INFORM (acknowledged) instead.

  5. Polling too aggressively. 1-second polls on 500 devices = constant CPU on devices. Match polling rate to monitoring need (1-5 min is typical).

  6. Confusing community string with username. v2c uses a community string (one “password” shared by everyone). v3 uses per-user credentials. v3 is properly authenticated; v2c is not.

  7. Forgetting snmp-server enable traps. Configured a trap host but no events arriving? Probably forgot to enable specific trap types globally.

Lab to try tonight

  1. Install LibreNMS, PRTG, or any SNMP monitoring tool (free tier available for most).
  2. Configure SNMPv3 on a Cisco router using the commands above. Use strong passwords.
  3. Add the device to your monitoring tool with SNMPv3 credentials.
  4. Verify metrics appear (CPU, interface utilization, uptime).
  5. shutdown an interface: verify a trap arrives in the monitoring tool.
  6. From CLI: snmpwalk -v3 ... against the device. Match the values to what the GUI shows.
  7. Bonus: install a v2c community and try snmpwalk -v2c -c public .... Notice the plain-text community in tcpdump capture.

Cheat strip

Concept Plain English
SNMPv1 / v2c Community-string auth, plain text. Don’t use in 2026.
SNMPv3 Per-user, hashed auth, optional AES encryption. Use this.
Manager The polling / receiving system
Agent The device being polled
GET Manager reads from agent
TRAP Agent pushes event to manager (UDP, no ACK)
INFORM Agent pushes event, waits for ACK (more reliable)
OID Object Identifier: tree path like 1.3.6.1.2.1.2.2.1.10.1
MIB Module defining a chunk of OIDs (IF-MIB, etc.)
UDP 161 Polling (agent listening)
UDP 162 Traps (manager listening)
Read-only / read-write RO is safe; RW = remote config. Limit RW carefully.
Master this on a real network

Want this drilled into reflex?

1:1 weekly sessions, live feedback on your labs, and US interview prep: built around the CCNA® exam blueprint. Free first session. No card on file until you decide.

Claim my free session →
Free first session

Stuck on SNMP: Simple Network Management Protocol?

Walk your plan with a Cisco NetAcad instructor in a free 20 minute call. We find the one thing blocking you and name the next step. No card. No pitch.

  • 20 minutes, 1:1 with a Cisco NetAcad instructor
  • No card, no obligation, no sales pitch
  • You pick the slot that fits your week
Book free session
Free first session

Get your study plan in a free 20-minute call

  • ✓ 1:1 with a senior network engineer, by video
  • ✓ You leave with a written study plan and a realistic exam date
  • ✓ No card, no sign-up, no sales pitch