Cisco WS-C4003 Software Guide - Page 467
Configuring the syslog Daemon on a UNIX syslog Server, Configuring syslog Servers
View all Cisco WS-C4003 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 467 highlights
Chapter 33 Configuring System Message Logging 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: 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 entries in the /etc/syslog.conf file for further examples. Step 2 Step 3 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: $ 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: $ 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 "Configuring the syslog Daemon on a UNIX syslog Server" section on page 33-7. To configure the switch to log messages to a syslog server, perform this task in privileged mode: Step 1 Step 2 Task Specify the IP address of one or more syslog servers1. Set the facility and severity levels for syslog server messages. Step 3 Step 4 Enable system message logging to configured syslog servers. Verify the configuration. 1. You can configure a maximum of three syslog servers. 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] 78-12647-02 Software Configuration Guide-Catalyst 4000 Family, Catalyst 2948G, Catalyst 2980G, Releases 6.3 and 6.4 33-7