Specifications
IP Switching Commands
snmp-server host
ISW-340
Cisco IOS IP Switching Command Reference
May 2008
snmp-server host
To specify the recipient of a Simple Network Management Protocol (SNMP) notification operation, use
the snmp-server host command in global configuration mode. To remove the specified host from the
configuration, use the no form of this command.
snmp-server host {hostname | ip-address} [vrf vrf-name] [traps | informs] [version {1 | 2c | 3
[auth | noauth | priv]}] community-string [udp-port port] [notification-type]
no snmp-server host {hostname | ip-address} [vrf vrf-name] [traps | informs] [version {1 | 2c | 3
[auth | noauth | priv]}] community-string [udp-port port] [notification-type]
Syntax Description hostname The SNMP notification host is typically a network management station
(NMS) or SNMP manager. This host is the recipient of the SNMP traps or
informs.
ip-address Name, IP address, or IPv6 address of the SNMP notification host. The
ip-address can be an IP or IPv6 address.
vrf (Optional) Specifies that a Virtual Private Network (VPN) routing and
forwarding (VRF) instance should be used to send SNMP notifications.
vrf-name (Optional) VPN VRF instance used to send SNMP notifications.
traps (Optional) Specifies that notifications should be sent as traps. This is the
default.
informs (Optional) Specifies that notifications should be sent as informs.
version (Optional) Version of the SNMP that is used to send the traps or informs. The
default is 1.
If you use the version keyword, one of the following keywords must be
specified:
• 1—SNMPv1. This option is not available with informs.
• 2c—SNMPv2C.
• 3—SNMPv3. The most secure model because it allows packet
encryption with the priv keyword. The default is noauth.
One of the following three optional security level keywords can follow
the 3 keyword:
–
auth—Enables Message Digest 5 (MD5) and Secure Hash
Algorithm (SHA) packet authentication.
–
noauth—Specifies that the noAuthNoPriv security level applies to
this host. This is the default security level for SNMPv3.
–
priv—Enables Data Encryption Standard (DES) packet encryption
(also called “privacy”).