PurposeCommand or Action
Returns to privileged EXEC mode.end
Example:
Switch(config)# end
Step 4
Logging Messages to a UNIX Syslog Daemon
This task is optional.
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.
Note
Before You Begin
•
Log in as root.
•
Before you can send system log messages to a UNIX syslog server, you must configure the syslog
daemon on a UNIX server.
SUMMARY STEPS
1.
Add a line to the file /etc/syslog.conf.
2.
Enter these commands at the UNIX shell prompt.
3.
Make sure the syslog daemon reads the new changes.
DETAILED STEPS
PurposeCommand or Action
Add a line to the file /etc/syslog.conf.
Step 1
•
local7—Specifies the logging facility.
Example:
local7.debug /usr/adm/logs/cisco.log
•
debug—Specifies the syslog level. The file must already
exist, and the syslog daemon must have permission to
write to it.
Creates the log file. The syslog daemon sends messages at this
level or at a more severe level to this file.
Enter these commands at the UNIX shell prompt.
Example:
$ touch /var/log/cisco.log
Step 2
Consolidated Platform Configuration Guide, Cisco IOS Release 15.2(4)E (Catalyst 2960-X Switches)
1608
How to Configure System Message Logs