supports. If the
snmp-server host
command does not specify the SNMP
version, the default is to send SNMP version 1 notifications.
If you specify an SNMP Version 3 h ost, th en the com mu nity s tring i s
interpreted as an SNMP user name. If you use the V3 “auth” or “priv ” option s,
the user name must first be defined with the
snmp-server user
command.
Otherwise, the authentication password and/or privacy password will not
exist, and the switch will not authorize SNMP access for the host. However, if
you specify a V3 host with the “noauth” option, an SNMP user account wil l be
generated, and the switch will authorize SNMP access for the host.
Example
Console(config)#snmp-server host 10.1.19.23 batman
Console(config)#
Related Commands
snmp-server enable traps (24-7)
snmp-server enable traps
This command enables this device to send Simple Network Management Protocol
traps or informs (i.e., SNMP notifications). Use the
no
form to disable SNMP
notifications.
Syntax
[
no
]
snmp-server enable traps
[
authentication
|
link-up-down
]
authenticatio n - Keyword to issue authentication failur e notif ications.
link-up-down - Ke yword to is sue li nk-u p or link -dow n notif icati ons.
Default Setting
Issue authentication and link-up-d own traps.
Command Mode
Global Configuration
Command Usage
If you do not enter an snmp-server enable traps command, no notification s
controlled by this command are sent. In order to configure this d ev ic e to s end
SNMP notifications, you must enter at least one
snmp-server enable traps
command. If you enter the command with no keyword s, both auth entication
and link-up-down notifications are enabled. If you enter the comm and with a
keyword, only the notification type related to that keyword is ena bled.
• The snmp-server enable traps command is used in conj unction wi th the
snmp-server host
command. Use the
snmp-server host
command to
specify which host or hosts receive SNM P notificat ions. In order to send
notifications, you must configure at least one
snmp-server host
command.
The authentication, link-up, a nd link-down tra ps are lega cy notification s, and
therefore when used for SNMP Version 3 hosts, they must be enabled in
24-7snmp-server enable traps
24