Lesson Overview
Simple Network Management Protocol (SNMP) and Syslog are essential network monitoring and management technologies used to monitor device performance, collect operational information, detect faults, and troubleshoot network issues.
SNMP enables network administrators to monitor routers, switches, firewalls, servers, and other network devices by collecting information such as interface status, CPU utilization, memory usage, and network traffic statistics. Syslog provides a standardized mechanism for collecting and analyzing event messages generated by network devices.
This lesson covers SNMP architecture, SNMP versions, Management Information Base (MIB), Object Identifiers (OIDs), SNMP operations, Syslog severity levels, Cisco IOS configuration, verification commands, troubleshooting techniques, security best practices, and real-world network monitoring scenarios.
Learning Objectives
By the end of this lesson, learners will be able to:
Understand the purpose and importance of SNMP and Syslog.
Explain SNMP architecture, including managers, agents, MIBs, and OIDs.
Compare SNMPv1, SNMPv2c, and SNMPv3.
Understand SNMP Get, GetNext, GetBulk, Set, Trap, and Inform operations.
Explain Syslog message structure, facilities, and severity levels.
Configure SNMP monitoring and Syslog logging on supported Cisco routers and switches.
Verify SNMP and Syslog operations using Cisco IOS commands.
Compare SNMP and Syslog based on functionality and applications.
Troubleshoot common network monitoring and logging problems.
Apply security best practices for enterprise network monitoring.
1. Introduction to Network Monitoring
Modern enterprise networks consist of interconnected routers, switches, firewalls, wireless controllers, access points, servers, and cloud infrastructure.
Network administrators must continuously monitor these devices to maintain availability, performance, and security.
Without centralized monitoring, identifying network problems can become difficult and time-consuming.
Two widely used technologies for network monitoring are:
SNMP (Simple Network Management Protocol): Used to retrieve management information and receive notifications from network devices.
Syslog: Used to collect and analyze event and diagnostic messages generated by network devices.
Although both technologies support network monitoring, they perform different functions.
SNMP primarily provides access to structured management data, while Syslog records events and operational messages.
2. SNMP Overview and Purpose
Simple Network Management Protocol (SNMP) is an application-layer management protocol used by monitoring platforms to retrieve operational information from network devices and to receive event notifications. Routers, switches, firewalls, wireless systems, servers, power devices, and many other platforms can expose standardized or vendor-specific management objects through SNMP.
SNMP is not a routing protocol and does not carry user traffic. It provides a management plane mechanism that lets an NMS observe device state, interface status, utilization counters, errors, system identity, environmental values, and other supported data. In selected environments, SNMP SET operations can also change writable objects, although many enterprises deliberately use read-only monitoring and perform configuration through other management systems.
SNMP is commonly used to monitor:
Interface status and utilization
CPU utilization
Memory consumption
Network traffic counters
Device uptime
Interface errors and discards
Hardware and environmental conditions
Device availability
SNMP generally uses UDP for communication.
SNMP Function | UDP Port |
|---|---|
SNMP Requests and Responses | 161 |
SNMP Traps and Informs | 162 |
|
CCNP mental model Think of SNMP as three cooperating pieces: the NMS/manager asks questions or receives notifications; the agent on the device processes SNMP messages; and the MIB/OID structure defines exactly what information is being referenced. |
2.1 Why Enterprises Use SNMP
Availability monitoring: determine whether devices and interfaces are reachable and operational.
Capacity monitoring: collect interface octet counters, bandwidth utilization, queue statistics, CPU, memory, and other platform metrics.
Fault monitoring: receive interface up/down notifications and other event-driven traps.
Inventory and identification: collect hostnames, software/platform data, interface descriptions, and device metadata.
Trend analysis: poll the same counters over time and graph changes to support capacity planning and troubleshooting.
Alerting: combine thresholds from polling with event notifications to create alarms in the NMS.
2.2 SNMP Versions at a Glance
|
Version |
Identity / Security |
Operational Notes |
Recommended Use |
|
SNMPv1 |
Community string; no encryption |
Legacy operations; limited counters/features. |
Only where legacy equipment requires it. |
|
SNMPv2c |
Community string; no encryption |
Adds GETBULK and improved protocol behavior; still sends community string and data without SNMP-layer encryption. |
Legacy monitoring when v3 cannot be used; restrict tightly. |
|
SNMPv3 |
User-based security with selectable authentication and privacy |
Supports noAuthNoPriv, authNoPriv, and authPriv security levels; access can be limited with views/groups. |
Preferred for modern enterprise monitoring, especially authPriv. |
3. SNMP Architecture
Figure 1 - Enterprise SNMP architecture and management traffic flow
The manager-agent design separates monitoring logic from the device being monitored. The NMS runs the management application. Each managed device runs an SNMP agent. The agent maps internal device information into MIB objects and answers requests for supported OIDs. The same agent can generate asynchronous notifications when configured events occur.
3.1 Core Components
|
Component |
Role |
Example in Topology |
|
SNMP Manager / NMS |
Initiates queries, receives responses, stores time-series data, receives traps/informs, evaluates thresholds, and presents dashboards/alerts. |
NMS at 10.10.100.50 |
|
SNMP Agent |
Software process on the managed device that receives SNMP requests, reads/writes supported objects, returns responses, and generates notifications. |
Agent on R1, R2, SW1, and SW2 |
|
MIB |
Structured description of management objects exposed by the agent. Standard and vendor MIBs define object names, syntax, and relationships. |
SNMPv2-MIB, IF-MIB, vendor MIBs |
|
OID |
Numeric object identifier that uniquely addresses a management object or table entry. |
sysName.0 = 1.3.6.1.2.1.1.5.0 |
|
Managed device |
The router, switch, server, firewall, AP, or other element being monitored. |
R1 10.10.100.1 |
3.2 Management Plane Reachability
Before SNMP can work, the NMS must have IP reachability to the device address that receives SNMP. Enterprises commonly use a dedicated management VLAN, management VRF, loopback, or out-of-band management network. ACLs and firewalls should allow only the required NMS addresses and UDP flows.
Polling: NMS sends requests to the agent, typically destination UDP port 161.
Traps/informs: the managed device sends notifications toward the manager, typically destination UDP port 162.
The return traffic for a request follows normal UDP request/response behavior; stateful firewalls should permit the response to the NMS.
4. SNMP Manager / Network Management System
The SNMP manager is the monitoring application that coordinates requests and interprets returned objects. Products differ, but the management workflow is similar: define a device, choose SNMP version and credentials, select OIDs or monitoring templates, set polling intervals, configure thresholds, and define notification handling.
4.1 Typical Manager Functions
- Device discovery and inventory.
- Periodic polling and storage of counters.
- Rate calculation from counter deltas, such as interface bits per second.
- Threshold evaluation for CPU, memory, errors, utilization, or environmental metrics.
- Trap/inform reception and event correlation.
- Dashboards, graphs, reports, alert escalation, and ticket integration.
- MIB loading or…
