• Configure the switch to send Event Log messages to one or more Syslog servers. In addition, you can
configure the messages to be sent to the User log facility (default) or to another log facility on configured
Syslog servers.
• Configure the switch to send Event Log messages to the current management- access session (serial-connect
CLI, Telnet CLI, or SSH).
• Disable all Syslog debug logging while retaining the Syslog addresses from the switch configuration. This
allows you to configure Syslog messaging and then disable and re-enable it as needed.
• Display the current debug configuration. If Syslog logging is currently active, the list f configured Syslog
servers is displayed.
• Display the current Syslog server list when Syslog logging is disabled.
Configuring debug/syslog operation
Procedure
1. To use a syslog server as the destination device for debug messaging, follow these steps:
a. Enter the logging <syslog-ip-addr> command at the global configuration level to configure the
syslog server IP address and enable syslog logging. Optionally, you may also specify the destination
subsystem to be used on the syslog server by entering the logging facility command.If no other
syslog server IP addresses are configured, entering the logging command enables both debug
messaging to a syslog server and the event debug message type. As a result, the switch automatically
sends Event Log messages to the syslog server, regardless of other debug types that may be configured.
b. Re-enter the logging command in Step 1a to configure additional syslog servers. You can configure up to
a total of six servers. (When multiple server IP addresses are configured, the switch sends the debug
message types that you configure in
Step 3 to all IP addresses.)
2. To use a CLI session on a destination device for debug messaging:
a. Set up a serial, Telnet, or SSH connection to access the switch's CLI.
b. Enter the debug destination session command at the manager level.
3. Enable the types of debug messages to be sent to configured syslog servers, the current session device, or
both by entering the debug <debug-type> command and selecting the desired options.
Repeat this step if necessary to enable multiple debug message types.
By default, Event Log messages are sent to configured debug destination devices. To block Event Log
messages from being sent, enter the no debug event command.
4. If necessary, enable a subset of Event Log messages to be sent to configured syslog servers by specifying a
severity level, a system module, or both using the following commands:
switch(config)# logging severity <debug | major | error | warning | info>
switch(config)# logging system-module <system-module>
To display a list of valid values for each command, enter logging severity or logging system-module
followed by ? or pressing the Tab key.
Chapter 16 Troubleshooting 351