Skip to content

SNMP

SNMP (Simple Network Management Protocol) provides network monitoring and management capabilities on NX-OS devices. Configuration includes system contact and location information, SNMPv3 user authentication and privacy settings with group assignments, trap host destinations with version and security options, source interface selection for trap messages, global trap enablement with granular per-category trap control, packet size tuning, TCP session authentication, logging level, global privacy enforcement, host VRF selection, and RMON event definitions for threshold-based monitoring.

Diagram
NameTypeConstraintMandatoryDefault Value
snmpClass[snmp]No

NameTypeConstraintMandatoryDefault Value
contactStringNo
locationStringNo
engine_idStringNo
global_enforce_privBooleantrue, falseNo
logging_levelChoiceemergencies, alerts, critical, errors, warnings, notifications, information, debuggingNo
packetsizeIntegermin: 484, max: 17382No
tcp_session_authBooleantrue, falseNo
source_interface_typeChoiceethernet, loopback, mgmt, port-channel, vlan, vniNo
source_interface_idStringNo
enable_trapsBooleantrue, falseNo
trapsClass[traps]No
usersList[users]No
hostsList[hosts]No
rmon_eventsList[rmon_events]No

NameTypeConstraintMandatoryDefault Value
aaa_server_state_changeBooleantrue, falseNo
bfd_session_downBooleantrue, falseNo
bfd_session_upBooleantrue, falseNo
bridge_newrootBooleantrue, falseNo
bridge_topology_changeBooleantrue, falseNo
callhome_event_notifyBooleantrue, falseNo
callhome_smtp_send_failBooleantrue, falseNo
cfs_state_change_notifBooleantrue, falseNo
cfs_merge_failureBooleantrue, falseNo
config_ccm_cli_running_config_changedBooleantrue, falseNo
entity_mib_changeBooleantrue, falseNo
entity_cefc_mib_enable_status_notificationBooleantrue, falseNo
entity_fan_status_changeBooleantrue, falseNo
entity_module_insertedBooleantrue, falseNo
entity_module_removedBooleantrue, falseNo
entity_module_status_changeBooleantrue, falseNo
entity_power_out_changeBooleantrue, falseNo
entity_power_status_changeBooleantrue, falseNo
entity_sensorBooleantrue, falseNo
entity_unrecognised_moduleBooleantrue, falseNo
fcdomain_domain_id_not_assignedBooleantrue, falseNo
fcdomain_fabric_changeBooleantrue, falseNo
fcdomain_new_principal_switchBooleantrue, falseNo
feature_control_feature_op_status_changeBooleantrue, falseNo
feature_control_cisco_feat_op_status_changeBooleantrue, falseNo
generic_cold_startBooleantrue, falseNo
generic_warm_startBooleantrue, falseNo
hsrp_state_changeBooleantrue, falseNo
license_notify_license_expiryBooleantrue, falseNo
license_notify_license_expiry_warningBooleantrue, falseNo
license_notify_license_file_missingBooleantrue, falseNo
license_notify_no_license_for_featureBooleantrue, falseNo
link_cie_link_downBooleantrue, falseNo
link_cie_link_upBooleantrue, falseNo
link_cisco_xcvr_mon_status_chgBooleantrue, falseNo
link_cmn_mac_move_notificationBooleantrue, falseNo
link_delayed_link_state_changeBooleantrue, falseNo
link_extended_link_downBooleantrue, falseNo
link_extended_link_upBooleantrue, falseNo
link_link_downBooleantrue, falseNo
link_link_upBooleantrue, falseNo
link_err_disable_interface_event_rev1Booleantrue, falseNo
lldp_rem_tables_changeBooleantrue, falseNo
mmode_cse_maint_mode_change_notifyBooleantrue, falseNo
mmode_cse_normal_mode_change_notifyBooleantrue, falseNo
mpls_ldpBooleantrue, falseNo
mpls_ldp_session_downBooleantrue, falseNo
mpls_ldp_session_upBooleantrue, falseNo
mpls_vpnBooleantrue, falseNo
mpls_vpn_vrf_max_thresh_clearedBooleantrue, falseNo
mpls_vpn_vrf_max_thresh_exceededBooleantrue, falseNo
mpls_vpn_vrf_mid_thresh_exceededBooleantrue, falseNo
mpls_vpn_vrf_downBooleantrue, falseNo
mpls_vpn_vrf_upBooleantrue, falseNo
msdp_backward_transitionBooleantrue, falseNo
pim_neighbor_lossBooleantrue, falseNo
port_security_access_secure_mac_violationBooleantrue, falseNo
port_security_trunk_secure_mac_violationBooleantrue, falseNo
rf_redundancy_frameworkBooleantrue, falseNo
rmon_rising_alarmBooleantrue, falseNo
rmon_falling_alarmBooleantrue, falseNo
rmon_hc_rising_alarmBooleantrue, falseNo
rmon_hc_falling_alarmBooleantrue, falseNo
snmp_authenticationBooleantrue, falseNo
storm_control_cpsc_event_rev1Booleantrue, falseNo
stpx_inconsistencyBooleantrue, falseNo
stpx_loop_inconsistencyBooleantrue, falseNo
stpx_root_inconsistencyBooleantrue, falseNo
syslog_message_generatedBooleantrue, falseNo
sysmgr_cse_fail_sw_core_notify_extendedBooleantrue, falseNo
system_clock_change_notificationBooleantrue, falseNo
upgrade_job_status_notifyBooleantrue, falseNo
upgrade_op_notify_on_completionBooleantrue, falseNo
vtp_notifsBooleantrue, falseNo
vtp_vlan_createBooleantrue, falseNo
vtp_vlan_deleteBooleantrue, falseNo

NameTypeConstraintMandatoryDefault Value
nameStringYes
groupsListStringNo
authentication_typeChoicemd5, sha, sha-256, sha-224, sha-384, sha-512No
authentication_passwordStringNo
privacy_typeChoicedes, aes128, aes256No
privacy_passwordStringNo
enforce_privacyBooleantrue, falseNo
localized_keyBooleantrue, falseNo
localized_v2_keyBooleantrue, falseNo
engine_idStringNo
ipv4_aclStringNo
ipv6_aclStringNo

NameTypeConstraintMandatoryDefault Value
hostStringYes
udp_portIntegermin: 0, max: 65535No
versionChoicev1, v2c, v3No
notification_typeChoicetraps, informsNo
communityStringNo
security_levelChoicenoauth, auth, privNo
vrfStringNo

rmon_events (nxos.devices.configuration.snmp)

Section titled “rmon_events (nxos.devices.configuration.snmp)”
NameTypeConstraintMandatoryDefault Value
numberIntegermin: 1, max: 65535Yes
descriptionStringNo
logBooleantrue, falseNo
ownerStringNo
trapStringNo

Example 1: Basic SNMP with system info and a v2c trap host

nxos:
devices:
- name: LEAF1
configuration:
snmp:
contact: noc@example.com
location: DC1-Room42-Rack5
enable_traps: true
hosts:
- host: 10.50.100.10
version: v2c
community: public

Example 2: SNMPv3 user with authentication and privacy

nxos:
devices:
- name: SPINE1
configuration:
snmp:
contact: netops@example.com
location: DC1-Room42
engine_id: "00:00:00:63:00:01:00:10:20:15:10:03"
enable_traps: true
source_interface_type: loopback
source_interface_id: "0"
users:
- name: snmpv3user
groups:
- network-operator
authentication_type: sha
authentication_password: AuthP@ss123
privacy_type: aes128
privacy_password: PrivP@ss456
hosts:
- host: 10.50.100.10
version: v3
notification_type: traps
community: snmpv3user
security_level: priv

Example 3: Multiple trap hosts with RMON events

nxos:
devices:
- name: BORDER-LEAF1
configuration:
snmp:
contact: noc@example.com
location: DC2-Room10
packetsize: 8192
tcp_session_auth: true
enable_traps: true
hosts:
- host: 10.50.100.10
version: v3
notification_type: traps
community: snmpv3user
security_level: auth
- host: 10.50.100.11
udp_port: 1162
version: v2c
notification_type: informs
community: public
rmon_events:
- number: 1
description: High CPU alert
log: true
owner: admin
trap: public

Example 4: SNMPv3 user with ACL filtering

nxos:
devices:
- name: LEAF1
configuration:
ip_access_lists:
- name: SNMP-ACL-V4
entries:
- sequence_number: 10
action: permit
protocol: ip
source_address: 10.50.100.0
source_wildcard: 0.0.0.255
snmp:
contact: noc@example.com
location: DC1-Room42
enable_traps: true
users:
- name: monitoruser
groups:
- network-operator
authentication_type: sha-256
authentication_password: StrongAuth!99
privacy_type: aes256
privacy_password: StrongPriv!99
enforce_privacy: true
ipv4_acl: SNMP-ACL-V4

Example 5: Granular trap enablement with per-category controls

nxos:
devices:
- name: LEAF1
configuration:
snmp:
contact: noc@example.com
location: DC1-Room42
enable_traps: true
traps:
link_link_down: true
link_link_up: true
bridge_topology_change: true
bridge_newroot: true
stpx_inconsistency: true
entity_fan_status_change: true
entity_power_status_change: true
entity_sensor: true
syslog_message_generated: true
snmp_authentication: true
hsrp_state_change: true
config_ccm_cli_running_config_changed: true

Example 6: SNMP host with VRF selection and global privacy enforcement

nxos:
devices:
- name: SPINE1
configuration:
snmp:
contact: netops@example.com
location: DC2-Room10
global_enforce_priv: true
logging_level: warnings
enable_traps: true
hosts:
- host: 10.50.100.10
version: v3
notification_type: traps
community: snmpv3user
security_level: priv
vrf: management
- host: 10.50.200.10
version: v3
notification_type: informs
community: snmpv3user
security_level: priv
vrf: management