29-8
Catalyst 6500 Series Switch Software Configuration Guide—Release 8.7
OL-8978-04
Chapter 29 Configuring System Message Logging
Configuring the System Message Logging on the Switch
Configuring the syslog Daemon on a UNIX syslog Server
Before you can send the system log messages to a UNIX syslog server, you must configure the syslog
daemon on a UNIX server. Log in as root, and perform these steps:
Step 1
Add a line such as the following to the file /etc/syslog.conf:
user.debug
/var/log/
myfile.log
Note
There must be five tab characters between
user.debug
and
/var/log/
myfile.log. Refer to the
entries in the /etc/syslog.conf file for further examples.
The switch sends the messages according to the specified facility types and severity levels. The
user
keyword specifies the UNIX logging facility that is used. The messages from the switch are generated
by the user processes. The
debug
keyword specifies the severity level of the condition being logged. You
can set the UNIX systems to receive all the messages from the switch.
Step 2
Create the log file by entering these commands at the UNIX shell prompt:
$
touch /var/log/
myfile.log
$
chmod 666 /var/log/
myfile.log
Step 3
Make sure that the syslog daemon reads the new changes by entering this command:
$
kill -HUP `cat /etc/syslog.pid
Configuring the syslog Servers
Note
Before you can send the system log messages to a UNIX syslog server, you must configure the syslog
daemon on the UNIX server as described in the
“Configuring the syslog Daemon on a UNIX syslog
Server” section on page 29-8
.
To configure the switch to log messages to a syslog server, perform this task in privileged mode:
Task
Command
Step 1
Specify the IP address of one or more syslog
servers
1
.
1.
You can configure a maximum of three syslog servers.
set logging server
ip_addr
Step 2
Set the facility and severity levels for syslog
server messages.
set logging server facility
server_facility_parameter
set logging server severity
server_severity_level
Step 3
Enable the system message logging to the
configured syslog servers.
set logging server enable
Step 4
Verify the configuration.
show logging
[
noalias
]