Nortel Networks 2300 Switch User Manual


 
676 Appendix A:Troubleshooting a WSS
NN47250-500 (320657-F Version 02.01)
Logging to the console
By default, console logging is enabled and messages at the error level and higher are sent to the console.
To modify console logging, use the following command:
set log console severity severity-level
(See Table 3 on page 674 for information on severity levels.)
For example, to set logging to the console for events at the critical severity level and higher, type the following
command:
WSS# set log console severity critical
success: command accepted.
To disable console logging, type the following command:
WSS# set log console disable
success: change accepted.
The console is always available, but it has the following limitations:
Console logging is slow.
Messages logged to the console are dropped if the console output buffer overflows. WSS Software displays a
message indicating the number of messages dropped.
If you type anything to the console, the typing disables log output to the console until you press the Enter key.
Logging messages to a syslog server
To send event messages to a syslog server, use the following command:
set log server ip-addr [port port-number] severity severity-level [local-facility facility-level]
Use the IP address of the syslog server to which you want messages sent. (See Table 3 on page 674 for information
about severity levels.)
By default, WSS Software uses TCP port 514 for sending messages to the syslog server. You can use the optional port
keyword to specify a different port for syslog messages. You can specify a number from 1 to 65535.
Use the optional local-facility keyword to override the default WSS Software facility numbers and replace them with
one local facility number. Use the numbers 0 through 7 to map WSS Software event messages to one of the standard
local log facilities local0 through local7 specified by RFC 3164.
If you do not specify a local facility, WSS Software sends the messages with their default WSS Software facilities. For
example, AAA messages are sent with facility 4 and boot messages are sent with facility 20 by default.
For example, the following command sends all error-level event messages generated by a WSS to a server at IP address
192.168.153.09 and identifies them as facility 5 messages:
WSS# set log server 192.168.153.09 severity error local-facility 5
success: change accepted.
To stop sending log messages to a syslog server, use the following command:
clear log server ip-addr