Configuring The Syslog Daemon On A Unix Syslog Server; Configuring Syslog Servers - Cisco WS-C4003 - Catalyst 4000 Chassis Switch Software Configuration Manual

Software guide
Table of Contents

Advertisement

Chapter 33
Configuring System Message Logging

Configuring the syslog Daemon on a UNIX syslog Server

Before you can send 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 messages according to specified facility types and severity levels. The user keyword
specifies the UNIX logging facility used. The messages from the switch are generated by user processes.
The debug keyword specifies the severity level of the condition being logged. You can set UNIX systems
to receive all messages from the switch.
Create the log file by entering these commands at the UNIX shell prompt:
Step 2
$ touch /var/log/
$ chmod 666 /var/log/
Step 3
Make sure that the syslog daemon reads the new changes by entering this command:
$ kill -HUP `cat /etc/syslog.pid

Configuring syslog Servers

Note
Before you can send system log messages to a UNIX syslog server, you must configure the syslog
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 system message logging to configured
syslog servers.
Step 4
Verify the configuration.
1.
78-12647-02
There must be five tab characters between user.debug and /var/log/myfile.log. Refer to entries
in the /etc/syslog.conf file for further examples.
myfile.log
myfile.log
33-7.
1
.
You can configure a maximum of three syslog servers.
Software Configuration Guide—Catalyst 4000 Family, Catalyst 2948G, Catalyst 2980G, Releases 6.3 and 6.4
myfile.log
/var/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]
Configuring System Message Logging
33-7

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Catalyst 4000 seriesCatalyst 2948gCatalyst 2980g

Table of Contents