Configuring The Syslog Daemon On A Unix Syslog Server; Configuring The Syslog Servers - Cisco WS-C6506 Software Manual

Catalyst 6500 series switch
Hide thumbs Also See for WS-C6506:
Table of Contents

Advertisement

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:
Add a line such as the following to the file /etc/syslog.conf:
Step 1
user.debug
Note
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.
Create the log file by entering these commands at the UNIX shell prompt:
Step 2
$ touch /var/log/myfile.log
$ chmod 666 /var/log/myfile.log
Make sure that the syslog daemon reads the new changes by entering this command:
Step 3
$ kill -HUP `cat /etc/syslog.pid

Configuring the syslog Servers

Before you can send the system log messages to a UNIX syslog server, you must configure the syslog
Note
daemon on the UNIX server as described in the
Server" section on page
To configure the switch to log messages to a syslog server, perform this task in privileged mode:
Task
Step 1
Specify the IP address of one or more syslog
servers
Step 2
Set the facility and severity levels for syslog
server messages.
Step 3
Enable the system message logging to the
configured syslog servers.
Step 4
Verify the configuration.
1.
Catalyst 6500 Series Switch Software Configuration Guide—Release 8.7
29-8
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.
29-8.
1
.
You can configure a maximum of three syslog servers.
/var/log/myfile.log
"Configuring the syslog Daemon on a UNIX syslog
Command
set logging server ip_addr
set logging server facility
server_facility_parameter
set logging server severity server_severity_level
set logging server enable
show logging [noalias]
Chapter 29
Configuring System Message Logging
OL-8978-04

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Catalyst 6506Catalyst 6509Catalyst 6513

Table of Contents