Cisco IOS SNMP & Syslog Monitoring
SNMP v2c and v3 configuration with trap hosts, syslog remote logging, and NetFlow/IP SLA stubs for Cisco IOS/IOS-XE.
What is it?
SNMP (Simple Network Management Protocol) lets your NMS (Network Management System) like SolarWinds, PRTG, or Zabbix poll network devices for metrics (CPU, memory, interface stats, errors) and receive trap alerts when events occur. Syslog sends event messages (link up/down, authentication failures, config changes) to a central log server (Splunk, Graylog, ELK). Both are essential for network visibility — without them, you're flying blind when something goes wrong. SNMPv3 is required for production (v2c sends community strings in plaintext).
When to use
- ·Every production network device should have SNMP and syslog configured — no exceptions
- ·Before deploying a device to production — monitoring should be configured before, not after, issues occur
- ·When using a network management platform (SolarWinds NPM, PRTG, Zabbix, LibreNMS)
- ·For compliance — PCI-DSS, HIPAA, and SOC 2 all require centralized logging of network events
When NOT to use
- ·SNMPv2c with RW community strings in production — an attacker with the RW community can reconfigure your entire network. Use SNMPv3 or restrict to RO.
- ·Syslog without NTP — log timestamps are useless for incident correlation if devices have different clocks
How it compares
Prerequisites
- →NTP must be configured and synchronized BEFORE enabling syslog — timestamps are critical for log correlation
- →NMS (SolarWinds, PRTG, Zabbix) or syslog server (Splunk, Graylog) must be running and reachable
- →SNMPv3 requires pre-configuring the user on the NMS before the router will respond
- →Firewall rules allowing: SNMP UDP 161 (polling), UDP 162 (traps), Syslog UDP 514
Config Generator
Verification commands
show snmpShow SNMP statistics and confirm SNMP is active
ExpectedShows input/output packets, traps sent. 'SNMP agent enabled' should appear.
show snmp userList SNMPv3 users and their auth/priv settings
ExpectedShows username, auth protocol (SHA), priv protocol (AES), and engine ID
show loggingShow current logging configuration and recent syslog messages
ExpectedShows syslog hosts, trap level, and buffered log. Check 'Logging to <IP>' entries.
show ntp statusVerify NTP sync — essential for accurate log timestamps
ExpectedClock is synchronized, stratum should be 2-5. Unsynchronized = your logs will have wrong timestamps.
Debug commands
debug snmp packetsDebug SNMP polling and trap traffic in real time
WarningCan generate significant output on busy devices. 'undebug all' after troubleshooting.
Common mistakes & fixes
Further learning
Recommended books to go deeper on this topic.
CCNP Enterprise Core ENCOR 350-401 Official Cert Guide
Brad Edgeworth et al. · Cisco Press · Network management: SNMP v1/v2c/v3, syslog levels, NTP, NetFlow