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
For example, to set logging to the console for events at the critical severity level and higher, type the
following command:
DWS-1008# set log console severity critical
success: command accepted.
To disable console logging, type the following command:
DWS-1008# 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. MSS
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.
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.
By default, MSS 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 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.
D-Link DWS-1008 User Manual
Logging to the Console
Logging Messages to a Syslog Server
1