217
9.5.
System log
9.5.1.
Introduction
The syslog function records some of system information for debugging purpose. Each log
message recorded with one of these levels,
Alert / Critical / Error / Warning / Notice /
Information.
The syslog function can be enabled or disabled. The default setting is disabled.
The log message is recorded in the Switch file system. If the syslog server’s IP address has been
configured, the Switch will send a copy to the syslog server.
The log message file is limited in 4KB size. If the file is full, the oldest one will be replaced.
9.5.2.
CLI Configuration
Node
Command
Description
enable
show syslog
The command displays the entire log message recorded
in the Switch.
enable
show syslog level
LEVEL
The command displays the log message with the
LEVEL recorded in the Switch.
enable
show syslog server
The command displays the syslog server configurations.
configure clear syslog
The command clears the syslog message.
configure syslog-server
(disable|enable)
The command disables / enables the syslog server
function.
configure syslog-server ipv4-ip
IPADDR
The command configures the syslog server’s IP address
in IPv4 format.
configure syslog-server ipv6-ip
IPADDR
The command configures the syslog server’s IP address
in IPv6 format.
configure syslog-server facility
The command configures the syslog facility level.
Example:
L2SWITCH#configure terminal
L2SWITCH(config)#syslog-server ipv4-ip 192.168.200.106
L2SWITCH(config)#syslog-server enable