xStack
®
DGS-3120 Series Managed Switch CLI Reference Guide
695
Chapter 76
System Log Command List
clear log
show log
{[index <value_list> | severity {module <module_list>} {emergency | alert | critical | error |
warning | notice | informational | debug | <level_list 0-7>} | module<module_list>]}
show log_software_module
enable syslog
disable syslog
show syslog
create syslog host
<index 1-4> ipaddress [<ipaddr> | <ipv6addr>] {severity [emergency | alert |
critical | error | warning | notice | informational | debug | <level 0-7>] | facility [local0 | local1 |
local2 | local3 | local4 | local5 | local6 | local7] | udp_port <udp_port_number> | state [enable |
disable]}
config syslog host
[<index 1-4> | all] {severity [emergency | alert | critical | error | warning | notice
| informational | debug| <level 0-7>] | facility [local0 | local1 | local2 | local3 | local4 | local5 |
local6 | local7] | udp_port <udp_port_number> | ipaddress [<ipaddr> | <ipv6addr>] | state
[enable | disable]}
delete syslog host
[<index 1-4> | all]
show syslog host
{<index 1-4>}
config log_save_timing
[time_interval <min 1-65535> | on_demand | log_trigger]
show log_save_timing
show attack_log
{unit <unit_id 1-12} {index <value_list>}
clear attack_log
{unit <unit_id 1-12> | all}
76-1
clear log
Description
This command is used to clear the Switch’s history log.
Format
clear log
Parameters
None.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example
To clear the Switch’s history log: