385
DWS-1008 User’s Manual
D-Link Systems, Inc.
Appendix A - Troubleshooting
Logging Messages to a Syslog Server
To send event messages to a syslog server, use the following command:
set log server
ip-addr
severity
severity-level
[
local-facility
facility-name
]
enable
Use the IP address of the syslog server to which you want messages sent.
Use the optional
local-facility
keyword to override the default MSS facility numbers and
replace them with one local facility number. Use the numbers 0 through 7 to map MSS
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, MSS sends the messages with their default MSS 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
switchto a server at IP address 192.168.153.09 and identifies them as facility 5 messages:
DWS-1008#
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
To disable logging to the server, use the following command:
set log server
ip-addr
disable
Setting Telnet Session Defaults
Session logging is disabled by default, and the event level is set to information (info) or higher.
To enable event logging to Telnet sessions and change the default event severity level, use
the following command:
set log sessions severity
severity-level
enable
To disable session logging, use the following command:
set log sessions disable