Chapter 26
Configuring System Message Logging
Step 3
Make sure the syslog daemon reads the new changes:
$ 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
Step 6
show running-config
Step 7
copy running-config startup-config
To remove a syslog server, use the no logging host global configuration command, and specify the syslog
server IP address. To disable logging to syslog servers, enter the no logging trap global configuration
command.
Table 26-4
facilities, consult the operator's manual for your UNIX operating system.
Table 26-4
Facility Type Keyword
auth
cron
daemon
kern
local0-7
lpr
78-17058-01
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 26-3 on page 26-9
Configure the syslog facility. See
facility-type keywords.
The default is local7.
Return to privileged EXEC mode.
Verify your entries.
(Optional) Save your entries in the configuration file.
lists the UNIX system facilities supported by the software. For more information about these
Logging Facility-Type Keywords
Description
Authorization system
Cron facility
System daemon
Kernel
Locally defined messages
Line printer system
Cisco ME 3400 Ethernet Access Switch Software Configuration Guide
Configuring System Message Logging
for level keywords.
Table 26-4 on page 26-11
for
26-11