Use it when setting up monitoring on a device, and when graphs have gaps, logs are missing, or timestamps on two devices disagree.
SNMP, Syslog & NTP Operations Reference
1. show ntp status — "Clock is synchronized"?
2. Not → server reachable from the device's source address or VRF? UDP 123 permitted?
3. show logging — is the syslog host listed, and are messages counted as sent?
4. show snmp — do request counters rise when the monitoring system polls? Errors?
5. Stopped after a change → the source address changed; set the source interface.
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
show ntp statusVerification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Operational verification Verify boundary
show ntp status
show ntp associations
show clock detail
show logging
show snmp
show snmp user
show snmp host
show ntp status states whether the clock is synchronised, to which server and at what stratum; the associations view lists each server with reachability and offset, the chosen one marked with an asterisk. show logging shows the logging configuration — hosts, levels, message counts — followed by the local buffer. show snmp shows counters of requests received and of errors such as unknown community names; the user and host views show the configured users and notification targets.
Then check from the other side: the monitoring system can poll the device, a test log message arrives at the server, and timestamps on two devices agree.
Known-good: the clock is synchronised, log messages carry correct timestamps and reach the server, and the monitoring system gets answers.
Step 2 Typical faults & boundaries Narrow the fault
- The clock is unsynchronised. The NTP server is unreachable from the device's source address or VRF, an access list blocks UDP 123, or not enough time has passed since configuration.
- Log timestamps are wrong or lack a date.
service timestampsis not set to datetime, the timezone is missing, or the clock is not synchronised. - No messages at the syslog server. The server is unreachable, the source address is not the one the server expects, or the trap level filters the messages out.
- Events from two devices cannot be put in order. Their clocks differ; fix NTP first.
- SNMP polls time out. A wrong community or user, the access list on the device, a firewall blocking UDP 161, or the request arriving in a different VRF.
- Polls work, traps do not arrive. No host is configured for notifications, or UDP 162 is blocked towards the monitoring system.
- It all stopped after a renumbering or a new uplink. The device now sources from a different address; set the source interface.
- Debug messages flood the server. The trap level is set to debugging.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
show ntp status/show ntp associations— synchronised, to which server.show clock detail— the time and its source.show logging— hosts, levels, counts, and the local buffer.show snmp— requests and errors such as unknown community names.show snmp user/show snmp host— users and notification targets.
ReferenceWhat it is1 section · depth on demand
ReferenceWhy it matters1 section · depth on demand
Why it matters operationally
When something fails at night, these are what is left to work from: the graphs, the logs, and timestamps that agree between devices. They are also quietly fragile — each depends on the device reaching a server from the right source address, and nothing in normal operation shows that it has stopped working until the data is needed.
ReferenceHow it works1 section · depth on demand
How it works
SNMP — a monitoring system asks; the device answers.
- Polls go to UDP port 161 on the device. The device can also send unsolicited notifications — traps, or acknowledged informs — to UDP port 162 on the monitoring system.
- Version 2c authenticates with a community string sent in clear text. Version 3 uses a user name with authentication and encryption, and is the one to use.
- Access should be read-only and restricted by an access list to the monitoring systems.
snmp-server group MONITOR v3 priv
snmp-server user nms MONITOR v3 auth sha <key> priv aes 128 <key>
snmp-server host 10.0.0.50 version 3 priv nms
Syslog — the device sends its log messages as they occur.
- Sent to UDP port 514 on the server by default, without acknowledgment.
- Every message has a severity from 0 (emergency) to 7 (debugging). The device sends messages at the configured level and all more severe ones.
service timestamps log datetime msec localtime show-timezone
logging host 10.0.0.60
logging trap informational
logging buffered 64000
The local buffer keeps recent messages on the device itself, which is what remains when the server was unreachable.
NTP — the device asks a time server and adjusts its clock.
- UDP port 123. Servers are ranked by stratum: 1 is directly attached to a reference clock, each step away adds one.
- Synchronising takes several minutes after configuration; the device compares several exchanges before trusting a server.
ntp server 10.0.0.1
ntp server 10.0.0.2
clock timezone CET 1
What all three have in common. The device originates or answers traffic from one of its own addresses, and the server usually accepts only a known address. Setting the source explicitly — logging source-interface, snmp-server trap-source, ntp source, normally a loopback — keeps it stable. Where management runs in a separate VRF, each server must be configured with that VRF.
ReferenceImportant terms & boundaries1 section · depth on demand
In depth
Three protocols make a network observable. SNMP reads counters and state and receives notifications. Syslog records events. NTP makes the timestamps on both comparable. RFC 3411 describes how SNMPv3 is organised:
- Each SNMP entity has an engine with a dispatcher, message processing, a security subsystem (such as the user-based security model) and access control (such as VACM).
- Applications act as command generators and notification receivers (the manager) or command responders and notification originators (the agent).
- Security levels increase from noAuthNoPriv through authNoPriv to authPriv.
SNMPv3 security levels (RFC 3411)
| Level | Authentication | Encryption | Use |
|---|---|---|---|
| noAuthNoPriv | No | No | Never in production |
| authNoPriv | Yes | No | Only where encryption isn't available |
| authPriv | Yes | Yes | The standard choice |
How the three protocols work together
| Protocol | Answers | Depends on |
|---|---|---|
| SNMP polling | How much, how often, over time | Reachability, credentials, views |
| SNMP traps and informs | Something happened (link down, threshold) | The receiver's address and credentials |
| Syslog | What happened, in detail | The collector, severity levels, source interface |
| NTP | When it happened | Upstream servers, authentication |
A management baseline
R1(config)# ntp server 10.99.0.10
R1(config)# ntp server 10.99.0.11
R1(config)# service timestamps log datetime msec localtime show-timezone
R1(config)# logging host 10.99.0.20
R1(config)# logging trap notifications
R1(config)# logging source-interface Loopback0
R1(config)# snmp-server group NMS v3 priv read NMS-VIEW access SNMP-MGMT
R1(config)# snmp-server user nms-poller NMS v3 auth sha <auth-pass> priv aes 256 <priv-pass>
R1(config)# snmp-server host 10.99.0.30 informs version 3 priv nms-poller
R1(config)# snmp-server trap-source Loopback0
R1# show ntp status | include synchronized
R1# show logging | include Trap logging|Logging to
R1# show snmp engineID
R1# show snmp group
Engine IDs (RFC 3411)
Each SNMP engine has a unique snmpEngineID. SNMPv3 users are tied to it. Changing the engine ID, for example when replacing hardware or restoring a configuration onto another device, invalidates the stored users. That is a common reason why polling suddenly fails after a device swap.
Checks when monitoring goes quiet
| Symptom | Check |
|---|---|
| Polls time out | ACL on the SNMP group, the view, reachability from the NMS |
| Traps missing | Trap source interface; host and user configuration; firewalls |
| Logs missing on the collector | Logging trap level; source interface; UDP 514 path |
| Times don't line up | NTP status; time zone settings in timestamps |
Documented example, not captured output.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Network & Protocols → SNMP, Syslog & NTP Operations Reference. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.rfc-editor.org/rfc/rfc5905.html · confidence 94%What changed and what may be affected
Recent technical edits are separated from ordinary page timestamps. Relationship impact is advisory: it identifies nearby canonical references to review, not automatic breakage.
Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Operational notes
Former standalone Cheat Sheet content now lives directly inside the Topic where it belongs.