Cisco Catalyst 2950 Command Reference Manual page 263

Desktop switch
Hide thumbs Also See for Catalyst 2950:
Table of Contents

Advertisement

Chapter 2 Cisco IOS Commands
the snmp-server host command for that host must be enabled. Some notification types cannot be
controlled with the snmp-server enable traps command. For example, some notification types are
always enabled. Other notification types are enabled by a different command.
The no snmp-server host command with no keywords disables traps, but not informs, to the host. To
disable informs, use the no snmp-server host informs command.
Examples
This example shows how to configure a unique SNMP community string named comaccess for traps and
prevent SNMP polling access with this string through access-list 10:
Switch(config)# snmp-server community comaccess ro 10
Switch(config)# snmp-server host 172.20.2.160 comaccess
Switch(config)# access-list 10 deny any
This example shows how to send the SNMP traps to the host specified by the name myhost.cisco.com.
The community string is defined as comaccess:
Switch(config)# snmp-server enable traps
Switch(config)# snmp-server host myhost.cisco.com comaccess snmp
This example shows how to enable the switch to send all traps to the host myhost.cisco.com using the
community string public:
Switch(config)# snmp-server enable traps
Switch(config)# snmp-server host myhost.cisco.com public
Related Commands
Command
show running-config
snmp-server enable traps
78-11381-05
Description
Displays the running configuration on the switch.
For syntax information, select Cisco IOS
Configuration Fundamentals Command Reference
for Release 12.1 > Cisco IOS File Management
Commands > Configuration File Commands.
Enables SNMP notification for various trap types.
Catalyst 2950 Desktop Switch Command Reference
snmp-server host
2-239

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents