24-11
Cisco ME 3800X and 3600X Switch Software Configuration Guide
OL-23400-01
Chapter 24 Configuring System Message Logging
Configuring System Message Logging
This example shows how to enable the configuration-change logger and to set the number of entries in
the log to 500.
Switch(config)#
archive
Switch(config-archive)#
log config
Switch(config-archive-log-cfg)#
logging enable
Switch(config-archive-log-cfg)#
logging size 500
Switch(config-archive-log-cfg)#
end
This is an example of output for the configuration log:
Switch#
show archive log config all
idx sess user@line Logged command
38 11 unknown user@vty3 |no aaa authorization config-commands
39 12 unknown user@vty3 |no aaa authorization network default group radius
40 12 unknown user@vty3 |no aaa accounting dot1x default start-stop group
radius
41 13 unknown user@vty3 |no aaa accounting system default
42 14 temi@vty4 |interface GigabitEthernet4/0/1
43 14 temi@vty4 | switchport mode trunk
44 14 temi@vty4 | exit
45 16 temi@vty5 |interface FastEthernet5/0/1
46 16 temi@vty5 | switchport mode trunk
47 16 temi@vty5 | exit
Configuring UNIX Syslog Servers
The next sections describe how to configure the UNIX server syslog daemon and how to define the UNIX
system logging facility.
Logging Messages to a UNIX Syslog Daemon
Before you can send system log messages to a UNIX syslog server, you must configure the syslog
daemon on a UNIX server. This procedure is optional.
Log in as root, and perform these steps:
Note
Some recent versions of UNIX syslog daemons no longer accept by default syslog packets from the
network. If this is the case with your system, use the UNIX man syslogd command to decide what
options must be added to or removed from the syslog command line to enable logging of remote syslog
messages.
Step 1
Add a line such as the following to the file /etc/syslog.conf:
local7.debug /usr/adm/logs/
cisco.log
Step 6
end
Return to privileged EXEC mode.
Step 7
show archive log config
Verify your entries by viewing the configuration log.
Command Purpose