30-13
Catalyst 3750 Switch Software Configuration Guide
OL-8550-02
Chapter 30 Configuring System Message Logging
Configuring System Message Logging
Note
Some recent versions of UNIX syslog daemons no longer accept by default syslog packets from the
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.
Step 1
Add a line such as the following to the file /etc/syslog.conf:
local7.debug /usr/adm/logs/
cisco.log
The
local7
keyword specifies the logging facility to be used; see
Table 30-4 on page 30-14
for
information on the facilities. The
debug
keyword specifies the syslog level; see
Table 30-3 on
page 30-10
for information on the severity levels. The syslog daemon sends messages at this level or at
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.
Step 2
Create the log file by entering these commands at the UNIX shell prompt:
$
touch /var/log/
cisco.log
$
chmod 666 /var/log/
cisco.log
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
Purpose
Step 1
configure terminal
Enter global configuration mode.
Step 2
logging
host
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.
Step 3
logging trap
level
Limit messages logged to the syslog servers.
Be default, syslog servers receive informational messages and lower. See
Table 30-3 on page 30-10
for
level
keywords.
Step 4
logging facility
facility-type
Configure the syslog facility. See
Table 30-4 on page 30-14
for
facility-type
keywords.
The default is
local7
.
Step 5
end
Return to privileged EXEC mode.
Step 6
show running-config
Verify your entries.
Step 7
copy running-config startup-config
(Optional) Save your entries in the configuration file.
Содержание 3750G - Catalyst Integrated Wireless LAN Controller
Страница 80: ...1 28 Catalyst 3750 Switch Software Configuration Guide OL 8550 02 Chapter 1 Overview Where to Go Next ...
Страница 606: ...27 8 Catalyst 3750 Switch Software Configuration Guide OL 8550 02 Chapter 27 Configuring UDLD Displaying UDLD Status ...
Страница 670: ...31 18 Catalyst 3750 Switch Software Configuration Guide OL 8550 02 Chapter 31 Configuring SNMP Displaying SNMP Status ...
Страница 1048: ...41 20 Catalyst 3750 Switch Software Configuration Guide OL 8550 02 Chapter 41 Configuring MSDP Monitoring and Maintaining MSDP ...
Страница 1086: ...43 26 Catalyst 3750 Switch Software Configuration Guide OL 8550 02 Chapter 43 Troubleshooting Using the crashinfo Files ...
Страница 1104: ...B 4 Catalyst 3750 Switch Software Configuration Guide OL 8550 02 Appendix B Supported MIBs Using FTP to Access the MIB Files ...