Configuring The Unix System Logging Facility - Cisco Catalyst 3750-X Software Configuration Manual

Hide thumbs Also See for Catalyst 3750-X:
Table of Contents

Advertisement

Chapter 34
Configuring System Message Logging
Log in as root, and perform these steps:
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.
Add a line such as the following to the file /etc/syslog.conf:
Step 1
local7.debug /usr/adm/logs/
The local7 keyword specifies the logging facility to be used; see
information on the facilities. The debug keyword specifies the syslog level; see
page 34-10
a more severe level to the file specified in the next field. The file must already exist, and the syslog
daemon must have permission to write to it.
Create the log file by entering these commands at the UNIX shell prompt:
Step 2
$ touch /var/log/
$ chmod 666 /var/log/
Make sure the syslog daemon reads the new changes:
Step 3
$ kill -HUP `cat /etc/syslog.pid`
For more information, see the man syslog.conf and man syslogd commands on your UNIX system.

Configuring the UNIX System Logging Facility

When sending system log messages to an external device, you can cause the switch to identify its
messages as originating from any of the UNIX syslog facilities.
Beginning in privileged EXEC mode, follow these steps to configure UNIX system facility message
logging. This procedure is optional.
Command
Step 1
configure terminal
Step 2
logging host
Step 3
logging trap level
Step 4
logging facility facility-type
Step 5
end
OL-21521-01
cisco.log
for information on the severity levels. The syslog daemon sends messages at this level or at
cisco.log
cisco.log
Purpose
Enter global configuration mode.
Log messages to a UNIX syslog server host by entering its IP address.
To build a list of syslog servers that receive logging messages, enter this
command more than once.
Limit messages logged to the syslog servers.
Be default, syslog servers receive informational messages and lower. See
Table 34-3 on page 34-10
Configure the syslog facility. See
facility-type keywords.
The default is local7.
Return to privileged EXEC mode.
for level keywords.
Table 34-4 on page 34-14
Catalyst 3750-X and 3560-X Switch Software Configuration Guide
Configuring System Message Logging
Table 34-4 on page 34-14
Table 34-3 on
for
for
34-13

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Catalyst 3560-x

Table of Contents