35-9
Cisco IE 2000 Switch Software Configuration Guide
OL-25866-01
Chapter 35 Configuring System Message Logging
How to Configure System Message Logging
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 35-2
on page 35-3) are stored in the history table even if syslog traps are not enabled.
When the history table is full (it contains the maximum number of message entries specified with the
logging history size global configuration command), the oldest message entry is deleted from the table
to allow the new message entry to be stored.
Enabling the Configuration-Change Logger
You can enable a configuration logger to keep track of configuration changes made with the
command-line interface (CLI). When you enter the logging enable configuration-change logger
configuration command, the log records the session, the user, and the command that was entered to
change the configuration. You can configure the size of the configuration log from 1 to 1000 entries (the
default is 100).
Command Purpose
Step 1 configure terminal Enters global configuration mode.
Step 2 logging history level Changes the default level of syslog messages stored in the history file and
sent to the SNMP server.
By default, warnings, errors, critical, alerts, and emergencies messages
are sent.
Step 3 logging history size number Specifies the number of syslog messages that can be stored in the history
table.
The default is to store one message. The range is 0 to 500 me ssages.
Step 4 end Returns to privileged EXEC mode.
Command Purpose
Step 1 configure terminal Enters global configuration mode.
Step 2 archive Enters archive configuration mode.
Step 3 log config Enters configuration-change logger configuration mode.
Step 4 logging enable Enables configuration change logging.
Step 5 logging size entries (Optional) Configures the number of entries retained in the configuration
log. The range is from 1 to 1000. The default is 100.
Note When the configuration log is full, the oldest log entry is removed
each time a new entry is entered.
Step 6 end Returns to privileged EXEC mode.