Cisco NX-OS SNMP & Syslog
SNMPv3 and syslog configuration for Cisco Nexus switches, including trap hosts, NTP, and NXOS-specific logging features.
What is it?
NX-OS SNMP and syslog configuration follows the same principles as IOS but with important VRF differences. Because NX-OS has a dedicated 'management' VRF, all monitoring traffic (SNMP polls, traps, syslog) must be directed to use 'use-vrf management' — otherwise the switch tries to reach your NMS via the data plane (default VRF) which usually doesn't have a route to management servers. NX-OS also supports 'logging timestamp milliseconds' for precise event correlation in high-speed data center environments.
When to use
- ·Every production Nexus switch — monitoring is not optional
- ·Before deploying to production — configure SNMP and syslog as part of day-0 setup
- ·When integrating with data center monitoring tools (SolarWinds, PRTG, Zabbix, Prometheus)
- ·For compliance — PCI-DSS, HIPAA, SOC 2 all require centralized logging
When NOT to use
- ·Never use SNMPv2c with an RW community in production — it allows unauthenticated device reconfiguration
How it compares
Prerequisites
- →NTP must be configured and synchronized (with 'use-vrf management') before enabling syslog
- →NMS server must be reachable via mgmt0 interface (management VRF)
- →SNMPv3 user must be configured on the NMS before the switch will respond to polls
- →Firewall rules: UDP 161 (SNMP polling), UDP 162 (traps), UDP 514 (syslog) from/to management subnet
Config Generator
Verification commands
show snmpShow SNMP counters and confirm SNMP is active
ExpectedShows input/output packets. If all zeros, SNMP is not receiving requests.
show logging serverShow configured syslog servers and their status
ExpectedShows each server IP, severity level, and VRF. Verify 'use-vrf management' appears.
show ntp statusVerify NTP synchronization — critical for log timestamps
ExpectedClock is synchronized. If unsynchronized, all log timestamps will be wrong.
Debug commands
show snmp userShow SNMPv3 users and their auth/priv configuration
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