25-21
Cisco ME 3800X and 3600X Switch Software Configuration Guide
OL-23400-01
Chapter 25 Configuring SNMP
Configuring SNMP
SNMP Examples
This example shows how to enable all versions of SNMP. The configuration permits any SNMP manager
to access all objects with read-only permissions using the community string public. This configuration
does not cause the switch to send any traps.
Switch(config)#
snmp-server community public
This example shows how to permit any SNMP manager to access all objects with read-only permission
using the community string public. The switch also sends MAC notification traps to the hosts
192.180.1.111 and 192.180.1.33 using SNMPv1 and to the host 192.180.1.27 using SNMPv2C. The
community string public is sent with the traps.
Switch(config)#
snmp-server community public
Switch(config)#
snmp-server enable traps mac-notification
Switch(config)#
snmp-server host 192.180.1.27 version 2c public
Switch(config)#
snmp-server host 192.180.1.111 version 1 public
Switch(config)#
snmp-server host 192.180.1.33 public
This example shows how to allow read-only access for all objects to members of access list 4 that use
the comaccess community string. No other SNMP managers have access to any objects. SNMP
Authentication Failure traps are sent by SNMPv2C to the host cisco.com using the community string
public.
Switch(config)#
snmp-server community comaccess ro 4
Switch(config)#
snmp-server enable traps snmp authentication
Switch(config)#
snmp-server host cisco.com version 2c public
This example shows how to send Entity MIB traps to the host cisco.com. The community string is
restricted. The first line enables the switch to send Entity MIB traps in addition to any traps previously
enabled. The second line specifies the destination of these traps and overwrites any previous
snmp-server host commands for the host cisco.com.
Switch(config)#
snmp-server enable traps entity
Step 3
process cpu threshold type {total | process |
interrupt} rising percentage interval
seconds [falling percentage interval
seconds]
Set CPU threshold notification types and values.
•
Set the threshold type to total CPU utilization, CPU process
utilization, or CPU interrupt utilization.
•
For rising percentage, enter the percentage (1 to 100) of CPU
resources that triggers a CPU threshold notification when
exceeded.
•
For interval seconds, enter the duration of the CPU threshold
violation in seconds (5 to 86400) that must be met to trigger a
CPU threshold notification. The default is 5 seconds.
•
(Optional) Set a falling percentage interval seconds that,
when usage falls below this level for the configured interval,
triggers a CPU threshold notification. The percentage must be
equal to or less than the rising percentage. The default is for the
falling percentage to be the same value as the rising
percentage.
Step 4
end
Return to privileged EXEC mode.
Step 5
copy running-config startup-config
(Optional) Save your entries in the configuration file.
Command
Purpose