S Commands
snmp-server host
384
Cisco Nexus 7000 Series NX-OS System Management Command Reference
OL-25806-03
Defaults None
Command Modes Global configuration mode
Supported User Roles network-admin
vdc-admin
Command History
Usage Guidelines The source-interface configuration overrides the global source-interface configuration.
This command does not require a license.
Examples This example shows how to configure an SNMP server host:
switch(config)# snmp-server host 192.0.2.1 traps snmp1 udp-port 1
This example shows how to remove an SNMP server host:
switch(config)# no snmp-server host 192.0.2.1 traps snmp1 udp-port 1
switch(config)#
Related Commands
port-channel
number
Specifies the port-channel number and the subinterface number in this format: 1.1.
The range for the port-channel number is from 1 to 4096, and the range for the
subinterface number is from 1 to 4093.
vlan number Specifies the VLAN interface number. The range is from 1 to 4094.
traps Sends SNMP traps to this host.
use-vrf Specifies the name of the VRF on which notifications are to be sent.
udp-port port Specifies the User Datagram Protocol (UDP) port number of the notification host.
The range is from 0 to 65535.
Release Modification
4.2(1) This command was introduced.
Command Description
snmp-server
community
Configures the SNMP community string.
snmp-server contact Configures the SNMP contact information.