xStack
®
DGS-3400 Series Layer 2 Gigabit Ethernet Managed Switch CLI Manual
567
DGS-3450:admin# config log_save_timing on_demand
Command: config log_save_timing on_demand
Success.
DGS-3450:admin#
show log_save_timing
Purpose
Used to show the method for saving the log.
Syntax
show log_save_timing
Description
To show the method for saving the log.
Parameters
None.
Restrictions
None.
Example usage:
To show the timing method used for saving the log:
DGS-3450:admin# show log_save_timing
Command: show log_save_timing
Saving log method: on_demand
DGS-3450:admin#
show attack_log
Purpose
Displays the attack log messages.
Syntax
show attack_log {unit <unit_id 1-n>} {index <value_list>}
Description
Displays the attack log messages. The attack log message refers to log messages driven by
modules such as DOS and the IP-MAC-port binding module. This type of log message may
generate a large amount of messages and quickly cause the system to run out of system log
storage. Therefore, for this type of log messages only the first log that is generated each
minute can be stored in the system log, with the rest of them being stored in a separate table
named attack log.
When the attack log is empty, the prompt message, “Log is empty,” will be displayed.
Parameters
unit
- The attack log messages on the specified unit will be displayed.
If unit ID is specified, then this unit will be referred to as the master unit.
index
- The list of index numbers of the entries that need to be displayed. For example, show
attack_log index 1-5 will display the attack log messages from 1 to 5.
If no parameter is specified, all entries in the attack log will be displayed.
Restrictions
None.
Example usage:
To show dangerous messages on the master: