xStack
®
DGS-3120 Series Managed Switch CLI Reference Guide
705
Parameters
unit
- (Optional) The attack log messages on the specified unit will be displayed. If unit ID is
specified, then it will be referred to as the master unit.
<unit_id 1-12>
- Enter the unit ID value here. This value must be between 1 and n.
index
- (Optional) 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.
<value_list>
- Enter the index numbers of the entries that needs to be displayed here.
If no parameter is specified, all entries in the attack log will be displayed.
Restrictions
None.
Example
To show dangerous messages on the master:
DGS-3120-24TC:admin# show attack_log index 1
Command: show attack_log index 1
Index Date Time Level Log Text
----- ---------- -------- -------- ---------------------------------------------
1 2008-10-17 15:00:14 CRIT(2) Possible spoofing attack from IP: , MAC:
0A-00-00-5A-00-01, port: 1:3
DGS-3120-24TC:admin#
76-14
clear attack_log
Description
This command is used to clear the attack log.
Format
clear attack_log {unit <unit_id 1-12> | all}
Parameters
unit
- (Optional) The attack log messages on the specified unit will be cleared. If specified, it will
be referred to as the master unit.
<unit_id 1-12>
- Enter the unit ID number here.
all
- Specify that all the unit ID's information will be used.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example
To clear the master’s attack log: