Cisco Systems 2940 Switch User Manual


 
22-9
Catalyst 2940 Switch Software Configuration Guide
78-15507-02
Chapter 22 Configuring System Message Logging
Configuring System Message Logging
The software generates four other categories of messages:
Error messages about software or hardware malfunctions that appear at levels warnings through
emergencies. These messages mean that the functionality of the switch is affected. For information
on how to recover from these malfunctions, refer to the system message guide for this release.
Output from the debug commands that appear at the debugging level. Debug commands are
typically used only by the Technical Assistance Center.
Interface up or down transitions and system restart messages that appear at the notifications level.
This message is only for information; switch functionality is not affected.
Reload requests and low-process stack messages that appear at the informational level. This
message is only for information; switch functionality is not affected.
Limiting Syslog Messages Sent to the History Table and to SNMP
If you enabled syslog message traps to be sent to an SNMP network management station by using the
snmp-server enable trap global configuration command, you can change the level of messages sent and
stored in the switch history table. You also can change the number of messages that are stored in the
history table.
Messages are stored in the history table because SNMP traps are not guaranteed to reach their
destination. By default, one message of the level warning and numerically lower levels (see Table 22-3
on page 22-8) are stored in the history table even if syslog traps are not enabled.
Beginning in privileged EXEC mode, follow these steps to change the level and history table size
defaults:
critical 2 Critical conditions LOG_CRIT
errors 3 Error conditions LOG_ERR
warnings 4 Warning conditions LOG_WARNING
notifications 5 Normal but significant condition LOG_NOTICE
informational 6 Informational messages only LOG_INFO
debugging 7 Debugging messages LOG_DEBUG
Table 22-3 Message Logging Level Keywords (continued)
Level Keyword Level Description Syslog Definition
Command Purpose
Step 1
configure terminal Enter global configuration mode.
Step 2
logging history level
1
Change the default level of syslog messages stored in the history file and
sent to the SNMP server.
See Table 22-3 on page 22-8 for a list of level keywords.
By default, warnings, errors, critical, alerts, and emergencies messages
are sent.
Step 3
logging history size number Specify the number of syslog messages that can be stored in the history
table.
The default is to store one message. The range is 1 to 500 messages.