set log

Enables or disables logging of DWS-1008 and AP events to the log buffer or other logging destination and sets the level of the events logged. For logging to a syslog server only, you can also set the facility logged.

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

set log server ip-addr [port port-number] severity severity-level [local-facilityfacility-level]

buffer

Sets log parameters for the log buffer in nonvolatile storage.

console

Sets log parameters for console sessions.

current

Sets log parameters for the current Telnet or console session. These

 

settings are not stored in nonvolatile memory.

server ip-addr

Sets log parameters for a syslog server. Specify an address in dotted

 

decimal notation.

sessions

Sets the default log values for Telnet sessions. You can set defaults for

 

the following log parameters:

 

• Severity

 

• Logging state (enabled or disabled)

 

To override the session defaults for an individual session, type the set

 

log command from within the session and use the current option.

trace

Sets log parameters for trace files.

port port-number

Sets the TCP port for sending messages to the syslog server. You can

 

specify a number from 1 to 65535. The default syslog port is 514.

severity severity-levelLogs events at a severity level greater than or equal to the level specified. Specify one of the following:

emergency—The switch is unusable.

alert—Action must be taken immediately.

critical—You must resolve the critical conditions. If the conditions are not resolved, the switch can reboot or shut down.

error—The switch is missing data or is unable to form a connection.

warning—A possible problem exists.

notice—Events that potentially can cause system problems have occurred. These are logged for diagnostic purposes. No action is required.

info—Informational messages only. No problem exists.

debug—Output from debugging.

D-Link DWS-1008 CLI Manual

506

Page 509
Image 509
D-Link dws-1008 manual Set log, Buffer, Current, Sessions, Port port-number