Troubleshooting guide
A-9
ATM and Layer 3 Switch Router Troubleshooting Guide
OL-1969-01
Appendix
Enabling Message Logging
Logging Messages to a UNIX Syslog Server
The logging command identifies a syslog server host to receive logging messages. The ip-address
argument is the IP address of the host. By issuing this command more than once, you build a list of syslog
servers that receive logging messages.
The no logging command deletes the syslog server with the specified address from the list of syslogs.
Example
The following example configures syslog server host diablo.cisco.com to receive the logging messages:
Switch(config)# logging diablo.cisco.com
Example of Setting Up a UNIX Syslog Daemon
To set up the syslog daemon on a 4.3 BSD UNIX system, include a line such as the following in the
file /etc/syslog.conf:
local7.debugging /usr/adm/logs/tiplog
The local7 keyword specifies the logging facility to be used. The debugging keyword specifies the
syslog level. See Table A-1 for other keywords that can be listed.
The UNIX system sends messages at or above this level to the specified file, in this case
/usr/adm/logs/tiplog. The file must already exist, and the syslog daemon must have permission to write
to the specific file. For System V UNIX systems, the line should read as follows:
local7.debug /usr/admin/logs/cisco.log
Limiting Messages to a Syslog Server
The logging trap command limits the logging messages sent to syslog servers to messages with a level
up to and including the specified level argument. The level argument is one of the keywords listed
in Table A-1.
To send logging messages to a syslog server, specify its host address with the logging command. The
default trap level is the informational level. The no logging trap command disables logging to
syslog servers.
Example
The following example configures traps sent to the syslog server as informational:
Switch(config)# logging trap informational
Displaying the Logging Configuration
To display the logging configuration, use the following command in user EXEC mode:
Command Purpose
show logging Displays the logging configuration.