S Commands
snmp-server host
383
Cisco Nexus 7000 Series NX-OS System Management Command Reference
OL-25806-03
snmp-server host
To specify the server host to receive Simple Network Management Protocol (SNMP) notifications, use
the snmp-server host command. To remove the SNMP server configuration, use the no form of this
command.
snmp-server host host-name {snmp-name | filter-vrf {vrf-name | default | management}} |
informs {snmp-name | version {1 snmp-name | 2c snmp-name | 3 {auth snmp-name | noauth
snmp-name | priv snmp-name}}} | source-interface {ethernet number | loopback number |
mgmt number | port-channel number | vlan number} | traps {snmp-name | version {1
snmp-name | 2c snmp-name | 3 {auth snmp-name | noauth snmp-name | priv snmp-name}} |
use-vrf {vrf-name | default |
management} | version {1 snmp-name | 2c snmp-name | 3 {auth
snmp-name | noauth snmp-name | priv snmp-name}} udp-port port
no snmp-server host host-name {snmp-name | filter-vrf {vrf-name | default | management}} |
informs {snmp-name | version {1 snmp-name | 2c snmp-name | 3 {auth snmp-name | noauth
snmp-name | priv snmp-name}}} | source-interface {ethernet number | loopback number |
mgmt number | port-channel number | vlan number} | traps {snmp-name | version {1
snmp-name | 2c snmp-name | 3 {auth snmp-name | noauth snmp-name | priv snmp-name}} |
use-vrf {vrf-name | default | management} |
version {1 snmp-name | 2c snmp-name | 3 {auth
snmp-name | noauth snmp-name | priv snmp-name}} udp-port port
Syntax Description host-name IP4 or IPv6 address or name of the host.
snmp-name SNMP community string or SNMPv3 username. The maximum number of
alphanumeric characters is 32.
filter-vrf Specifies the virtual routing and forwarding (VRF) instance whose notifications
are to be filtered.
vrf-name Name of the VRF. The maximum number of alphanumeric characters is 32.
default Specifies the default VRF.
management Specifies the management VRF.
informs Sends SNMP information to this host.
version Specifies the SNMP version used to send notifications.
1 Specifies SNMPv1.
2c Specifies SNMPv2c.
3 Specifies SNMPv3.
auth Specifies the SNMPv3 authNoPriv security level.
noauth Specifies the SNMPv3 noAuthNoPriv security level.
priv Specifies the SNMPv3 authPriv security level.
source-interface Specifies the source interface used to send SNMP notifications to this host.
ethernet number Specifies the Ethernet IEEE 802.3z slot number and port number in this format:
1/1. The range for the slot number is from 1 to 18, and the range for the port
number is from 1 to 128.
loopback number Specifies the virtual interface number. The range is from 0 to 1023.
mgmt number Specifies the management interface number. The value is 0.