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 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.
Command
1.
configure terminal
2.
logging history level
3.
logging history size number
4.
end
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
1.
configure terminal
2.
archive
3.
log config
4.
logging enable
5.
logging size entries
6.
end
Configuring the UNIX System Logging Facility
When sending system log messages to an external device, you can cause the switch to identify its messages as
originating from any of the UNIX syslog facilities.
Purpose
Enters global configuration mode.
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.
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 messages.
Returns to privileged EXEC mode.
Purpose
Enters global configuration mode.
Enters archive configuration mode.
Enters configuration-change logger configuration mode.
Enables configuration change logging.
(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.
Returns to privileged EXEC mode.
523
Need help?
Do you have a question about the IE-4000 and is the answer not in the manual?
Questions and answers