Logging Messages To A Unix Syslog Daemon - Cisco Catalyst 2960 series Configuration Manual

Consolidated platform configuration guide, ios release 15.2(4)e
Hide thumbs Also See for Catalyst 2960 series:
Table of Contents

Advertisement

How to Configure System Message Logs
Command or Action
Step 4
end
Example:
Switch(config)# end

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
Note
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.
Before You Begin
• Log in as root.
• Before you can send system log messages to a UNIX syslog server, you must configure the syslog
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
Command or Action
Step 1
Add a line to the file /etc/syslog.conf.
Example:
local7.debug /usr/adm/logs/
Step 2
Enter these commands at the UNIX shell prompt.
Example:
$ touch /var/log/
Consolidated Platform Configuration Guide, Cisco IOS Release 15.2(4)E (Catalyst 2960-X Switches)
1608
daemon on a UNIX server.
cisco.log
cisco.log
Purpose
Returns to privileged EXEC mode.
Purpose
• local7—Specifies the logging facility.
• 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.

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents