Troubleshooting

Debug/Syslog Operation

Syntax: [no] logging < syslog-ip-addr > [oobm]

Enables or disables Syslog messaging to the specified IP address. You can configure up to six addresses. If you configure an address when none are already configured, this command enables destination logging (Syslog) and the Event debug type. Therefore, at a minimum, the switch begins sending Event Log messages to configured Syslog servers. The IP-OSPF and/or IP-RIP message types will also be sent to the Syslog server(s) if they are currently enabled as debug types. (Refer to “Debug Messages” on page C-45.)

For switches that have a separate out-of-band management (OOBM) port, specifying the oobm parameter causes logging traffic to go through the OOBM port. Refer to Appendix G, “Network Out-of-Band Management” in this guide for more information on out-of-band management.

no logging removes all currently configured Syslog logging destinations from the running configuration.

no logging < syslog-ip-address > logging destination from the

removes only the specified Syslog running configuration.

If you use the “no” form of the command to delete the only remaining Syslog server address, debug destination logging is disabled on the switch, but the default Event debug type is not changed.

Also, removing all configured Syslog destinations with the no logging command (or a specified Syslog server destination with the no logging < syslog-ip-address> command) does not delete the Syslog server IP addresses stored in the startup configuration. To delete Syslog addresses in the startup configuration, you must enter a no logging command followed by the write memory command. To verify the deletion of a Syslog server address, display the startup configuration by entering the show config command.

To block the messages sent to configured Syslog servers from the currently configured debug message type, enter the no debug < debug-type> command. (See “Debug Messages” on page C-45.)

C-50