snmp-server host
S e n d d o c u m e n t a t i o n c o m m e n t s t o m d s f e e d b a c k - d o c @ c i s c o . c o m
snmp-server host
To specify the recipient of an SNMP notification, use the snmp-server host global configuration
command. To remove the specified host, use the no form of the command.
Syntax Description
host-address
traps
informs
version
1
2c
3
auth
noauth
priv
community-string
udp-port port
Defaults
Sends SNMP traps.
Command Modes
Configuration mode.
Command History
Release
1.0(3)
Usage Guidelines
If you use the version keyword, one of the following must be specified: 1, 2c, or 3.
Examples
The following example specify the recipient of an SNMP notification.
switch# config terminal
Cisco MDS 9000 Family Command Reference
21-52
snmp-server host host-address [traps | informs] [version {1 | 2c | 3 [auth | noauth | priv]}]
community-string [udp-port port]
no snmp-server host host-address [traps | informs] [version {1 | 2c | 3 [auth | noauth | priv]}]
community-string [udp-port port]
Specifies the name or IP address of the host (the targeted recipient).
(Optional) Sends SNMP traps to this host.
(Optional) Sends SNMP informs to this host.
(Optional) Specifies the version of the Simple Network Management
Protocol (SNMP) used to send the traps. Version 3 is the most secure model,
as it allows packet encryption with the priv keyword.
SNMPv1 (default). This option is not available with informs.
SNMPv2C.
SNMPv3 has three optional keywords (auth, no auth (default), or priv).
(Optional) Enables Message Digest 5 (MD5) and Secure Hash Algorithm
(SHA) packet authentication
(Optional) Specifies the noAuthNoPriv security level.
(Optional) Enables Data Encryption Standard (DES) packet encryption
(privacy).
(Optional) Sends a password-like community string with the notification
operation.
(Optional) Specifies the port UDP port of the host to use. The default is 162.
Modification
This command was introduced.
Chapter 21
S Commands
OL-18089-01, Cisco MDS NX-OS Release 4.x