578Appendix A: Troubleshooting a WS Switch

Using Log Commands

To enable, disable, or modify system logging to the WSS switch’s log buffer, console, current Telnet session, or trace buffer, use the following command:

set log {buffer console current sessions trace} [severity severity-level] [enable disable]

To enable, disable, or modify system logging to a syslog server, use the following command:

set log server ip-addr[severity severity-level[local-facility facility-name]] [enable disable]

To view log entries in the system or trace buffer, use the following command:

show log buffer trace

To clear log messages from the system or trace buffer, use the following command:

clear log buffer trace

To stop sending messages to a syslog server, use the following command:

clear log server ip-addr

Logging to the Log Buffer

The system log consists of rolling entries stored as a last-in first-out queue maintained by the WSS. Logging to the buffer is enabled by default for events at the error level and higher.

To modify settings to another severity level, use the following command:

set log buffer severity severity-level

For example, to set logging to the buffer for events at the warning level and higher, type the following command:

23x0# set log buffer severity warning

success: change accepted.

To view log entries in the system log buffer, use the following command:

show log buffer [{+-}number-of-messages] [facility facility-name] [matching string] [severity severity-level]

You can display the most recent messages or the oldest messages:

Type a positive number (for example, +100) to display that number of log entries starting from the oldest in the log.

Type a negative number (for example, -100) to display that number of log entries starting from the newest in the log.

You can search for strings by using the keyword matching and typing any string, such as a username or IP address.

You can display event information at a particular severity level. (See Table 38 on page 576 for information on severity levels.)

For example, the following command displays all messages at the error severity level or higher:

23x0# show log buffer severity error

320657-A

Page 578
Image 578
Nortel Networks 2300 manual Using Log Commands, Logging to the Log Buffer