Purpose
Command or Action
Example:
Switch(config)#
snmp-server user Pat
public v2c
Configures an SNMP group.
snmp-server group group-name
{
v1
|
v2c
|
v3
{
auth
|
noauth
|
priv
}} [
read readview
] [
write
writeview
] [
notify notifyview
] [
access access-list
]
Step 5
Example:
Switch(config)#
snmp-server group public
v2c access lmnop
Specifies the recipient of an SNMP trap operation.
snmp-server host host-addr
[
informs
|
traps
]
[
version
{
1
|
2c
|
3
{
auth
|
noauth
|
priv
}}]
community-string
[
notification-type
]
Step 6
For
host-addr
, specify the name or Internet address of the host (the
targeted recipient).
Example:
Switch(config)#
snmp-server host
203.0.113.1 comaccess snmp
(Optional) Specify
traps
(the default) to send SNMP traps to the
host.
(Optional) Specify
informs
to send SNMP informs to the host.
(Optional) Specify the SNMP
version
(
1
,
2c
, or
3
). SNMPv1 does
not support informs.
(Optional) For Version 3, select authentication level
auth
,
noauth
,
or
priv
.
The
priv
keyword is available only when the cryptographic
software image is installed.
Note
For
community-string
, when
version 1
or
version 2c
is specified,
enter the password-like community string sent with the notification
operation. When
version 3
is specified, enter the SNMPv3 username.
The @ symbol is used for delimiting the context information. Avoid
using the @ symbol as part of the SNMP community string when
configuring this command.
(Optional) For
notification-type
, use the keywords listed in the table
above. If no type is specified, all notifications are sent.
Enables the switch to send traps or informs and specifies the type of
notifications to be sent. For a list of notification types, see the table
above, or enter
snmp-server enable traps ?
snmp-server enable traps notification-types
Example:
Switch(config)#
snmp-server enable traps
snmp
Step 7
To enable multiple types of traps, you must enter a separate
snmp-server enable traps
command for each trap type.
When you configure a trap by using the notification type
port-security
, configure the port security trap first, and
then configure the port security trap rate:
Note
1
snmp-server enable traps port-security
2
snmp-server enable traps port-security trap-rate rate
Consolidated Platform Configuration Guide, Cisco IOS Release 15.2(4)E (Catalyst 2960-X Switches)
462
How to Configure SNMP
Содержание Catalyst 2960 Series
Страница 78: ...Consolidated Platform Configuration Guide Cisco IOS Release 15 2 4 E Catalyst 2960 X Switches lxxviii Contents ...
Страница 96: ......
Страница 184: ...Consolidated Platform Configuration Guide Cisco IOS Release 15 2 4 E Catalyst 2960 X Switches 102 Additional References ...
Страница 195: ...P A R T II IP Multicast Routing Configuring IGMP Snooping and Multicast VLAN Registration page 115 ...
Страница 196: ......
Страница 250: ......
Страница 292: ......
Страница 488: ......
Страница 589: ...P A R T VI Cisco Flexible NetFlow Configuring NetFlow Lite page 509 ...
Страница 590: ......
Страница 619: ...P A R T VII QoS Configuring QoS page 539 Configuring Auto QoS page 645 ...
Страница 620: ......
Страница 749: ...P A R T VIII Routing Configuring IP Unicast Routing page 669 Configuring IPv6 First Hop Security page 677 ...
Страница 750: ......
Страница 796: ...Consolidated Platform Configuration Guide Cisco IOS Release 15 2 4 E Catalyst 2960 X Switches 714 Additional References ...
Страница 856: ...Consolidated Platform Configuration Guide Cisco IOS Release 15 2 4 E Catalyst 2960 X Switches 774 Additional References ...
Страница 1400: ...Consolidated Platform Configuration Guide Cisco IOS Release 15 2 4 E Catalyst 2960 X Switches 1318 Additional References ...
Страница 1546: ...Consolidated Platform Configuration Guide Cisco IOS Release 15 2 4 E Catalyst 2960 X Switches 1464 Auto Identity ...
Страница 1596: ...Consolidated Platform Configuration Guide Cisco IOS Release 15 2 4 E Catalyst 2960 X Switches 1514 Additional References ...
Страница 1604: ......
Страница 1740: ......
Страница 1764: ...Consolidated Platform Configuration Guide Cisco IOS Release 15 2 4 E Catalyst 2960 X Switches 1682 Additional References ...
Страница 1942: ...Consolidated Platform Configuration Guide Cisco IOS Release 15 2 4 E Catalyst 2960 X Switches 1860 cli_write ...
Страница 1950: ...Consolidated Platform Configuration Guide Cisco IOS Release 15 2 4 E Catalyst 2960 X Switches 1868 context_save ...
Страница 2058: ...Consolidated Platform Configuration Guide Cisco IOS Release 15 2 4 E Catalyst 2960 X Switches 1976 event_register_wdsysmon ...
Страница 2076: ...Consolidated Platform Configuration Guide Cisco IOS Release 15 2 4 E Catalyst 2960 X Switches 1994 smtp_subst ...
Страница 2090: ...Consolidated Platform Configuration Guide Cisco IOS Release 15 2 4 E Catalyst 2960 X Switches 2008 sys_reqinfo_syslog_history ...
Страница 2104: ...Consolidated Platform Configuration Guide Cisco IOS Release 15 2 4 E Catalyst 2960 X Switches 2022 unregister_counter ...
Страница 2105: ...P A R T XII Configuring Cisco IOS IP SLAs Configuring Cisco IP SLAs page 2025 ...
Страница 2106: ......
Страница 2118: ......
Страница 2164: ......