Configuring SNMP
• Destination port
• Protocol (UDP or TCP)
Procedure
Step 1
Step 2
Step 3
Configuring SNMP Notification Receivers
You can configure Cisco NX-OS to generate SNMP notifications to multiple host receivers.
Procedure
Step 1
Step 2
Step 3
Command or Action
configure terminal
Example:
switch# configure terminal
switch(config)#
snmp-server community name [use-acl acl-name]
Example:
switch(config)# snmp-server community public
use-acl myacl
copy running-config startup-config
Example:
switch(config)# copy running-config
startup-config
Command or Action
configure terminal
Example:
switch# configure terminal
switch(config)#
snmp-server host ip-address traps version
1 community [udp_port number]
Example:
switch(config)# snmp-server host
192.0.2.1 traps version 1 public
snmp-server host ip-address {traps |
informs} version 2c community [udp_port
number]
Cisco Nexus 9000 Series NX-OS System Management Configuration Guide, Release 6.x
Configuring SNMP Notification Receivers
Purpose
Enters global configuration mode.
Assigns an IPv4 ACL to an SNMPv3
community to filter SNMP requests.
(Optional)
Copies the running configuration to the
startup configuration.
Purpose
Enters global configuration mode.
Configures a host receiver for SNMPv1 traps. The
ip-address can be an IPv4 or IPv6 address. The
community can be any alphanumeric string up to 255
characters. The UDP port number range is from 0 to
65535.
Configures a host receiver for SNMPv2c traps or
informs. The ip-address can be an IPv4 or IPv6
address. The community can be any alphanumeric
string up to 255 characters. The UDP port number
range is from 0 to 65535.
119