Chapter 28
Configuring System Message Logging
Table 28-3
the most severe level to the least severe level.
Table 28-3
Level Keyword
emergencies
alerts
critical
errors
warnings
notifications
informational
debugging
The software generates four other categories of messages:
•
•
•
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
on page
Beginning in privileged EXEC mode, follow these steps to change the level and history table size
defaults. This procedure is optional.
Command
Step 1
configure terminal
Step 2
logging history level
OL-23389-01
describes the level keywords. It also lists the corresponding UNIX syslog definitions from
Message Logging Level Keywords
Level
0
1
2
3
4
5
6
7
Error messages about software or hardware malfunctions, displayed at levels warnings through
emergencies. These types of messages mean that the functionality of the switch is affected. For
information on how to recover from these malfunctions, see the system message guide for this
release.
Output from the debug commands, displayed at the debugging level. Debug commands are
typically used only by the Technical Assistance Center.
Interface up or down transitions and system restart messages, displayed at the notifications level.
This message is only for information; switch functionality is not affected.
28-9) are stored in the history table even if syslog traps are not enabled.
Purpose
Enter global configuration mode.
1
Change the default level of syslog messages stored in the history file and
sent to the SNMP server.
See
By default, warnings, errors, critical, alerts, and emergencies messages
are sent.
Description
System unstable
Immediate action needed
Critical conditions
Error conditions
Warning conditions
Normal but significant condition
Informational messages only
Debugging messages
Table 28-3 on page 28-9
for a list of level keywords.
Catalyst 2928 Switch Software Configuration Guide
Configuring System Message Logging
Syslog Definition
LOG_EMERG
LOG_ALERT
LOG_CRIT
LOG_ERR
LOG_WARNING
LOG_NOTICE
LOG_INFO
LOG_DEBUG
Table 28-3
28-9