Specifications

2-259
Catalyst 2950 and Catalyst 2955 Switch Command Reference
78-15304-01
Chapter 2 Cisco IOS Commands
snmp-server host
Defaults This command is disabled. No notifications are sent.
If you enter this command with no keywords, the default is to send all trap types to the host. No informs
are sent to this host.
If no version keyword is present, the default is version 1.
If version 3 is selected and no authentication keyword is entered, the default is the noauth
(noAuthNoPriv) security level.
Note If the community-string is not defined by using the snmp-server community global configuration
command before using this command, the default form of the snmp-server community command is
automatically inserted into the configuration. The password (community-string) used for this automatic
configuration of the snmp-server community will be the same as that specified in the snmp-server host
command.
Command Modes Global configuration
Command History
Usage Guidelines SNMP notifications can be sent as traps or inform requests. Traps are unreliable because the receiver
does not send acknowledgments when it receives traps. The sender cannot determine if the traps were
received. However, an SNMP entity that receives an inform request acknowledges the message with an
SNMP response PDU. If the sender never receives the response, the inform request can be sent again.
Thus, informs are more likely to reach their intended destinations.
However, informs consume more resources in the agent and in the network. Unlike a trap, which is
discarded as soon as it is sent, an inform request must be held in memory until a response is received or
the request times out. Traps are also sent only once, but an inform might be retried several times. The
retries increase traffic and contribute to a higher overhead on the network.
tty (Optional) Send Transmission Control Protocol (TCP) connection traps.
udp-port (Optional) Send notification hosts User Datagram Protocol (UDP) port
number.
vlan-membership (Optional) Send SNMP VLAN membership traps.
vtp (Optional) Send VLAN Trunking Protocol (VTP) traps.
Release Modification
12.0(5.2)WC(1) This command was first introduced.
12.1(6)EA2 The cluster, mac-notification, and rtr keywords were added.
12.1(9)EA1 The vlan-membership keyword was added.
12.1(11)EA1 The version 3 option was added, with the auth and noauth keywords.
12.1(12c)EA1 The envmon and priv keywords were added. The alarms keyword was
added for Catalyst 2955 switches only.