DIS-200G Series Gigabit Ethernet Switch CLI Reference Guide
215
The content of the logging messages will be saved to the FLASH immediately such that the message can be
restored on reboot.
The content of the logged messages in the FLASH will be reloaded into the logging buffer on reboot.
Example
This example shows how to enable the logging of messages .
Switch# config terminal
Switch(config)# logging buffered
Switch(config)#
38-3
logging server
This command is used to create a SYSLOG server host to log the system messages or debug output. Use the
no
form of this command to remove a SYSLOG server host.
logging server {
IP-ADDRESS
} [severity {
SEVERITY-LEVEL
|
SEVERITY-NAME
}] [facility
FACILITY-
TYPE
] [port
UDP-PORT
]
no logging server {
IP-ADDRESS
}
Parameters
IP-ADDRESS
Specifies the IP address of the SYSLOG server host.
SEVERITY-LEVEL
(Optional) Specifies the severity level of system messages. The
messages at that severity level or a more severe level will be logged
to the log server. This value must be between 3 and 6. 0 is the most
severe level. If not specified, the default severity level is
informational (6).
SEVERITY-NAME
(Optional) Specifies the severity level of system messages by one
of the following names: errors, warnings, notifications,
informational.
facility
FACILITY-TYPE
(Optional) Specifies the facility type as a decimal value from 16 to
23. If not specified, the default facility is local7 (23).
port
UDP-PORT
(Optional) Specifies the UDP port number to be used for the
SYSLOG server. Valid values are 514 (the IANA well-known port)
or any value from 1024 to 65535. If not specified, the default UDP
port is 514.
Default
None.
Command Mode
Global Configuration Mode.
Command Default Level
Level: 15.
Usage Guideline
System messages can be logged to the local message buffer or remote hosts. Messages must enter the local
message buffer first before it can be further dispatched to logging server.