xStack
®
DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
62
DGS–3426:5#upload attack_log_toTFTP 10.53.13.23 c:\attacklog1 unit 1
Command: upload attack_log_toTFTP 10.53.13.23 c:\attacklog1 unit 1
Connecting to server................Done.
Upload attack log...................Done.
DGS–3426:5#
show attack_log
Purpose Used to display the switch history of attack log files.
Syntax
show attack_log {unit <unit_id 1–12>} {index <value_list>}
Description This command will display the contents of the attack log of the Switch. This log displays
the time and date of a possible attack on the switch, such as a spoofing attack.
Parameters unit <unit_id 1–12> – Select the switch in the switch stack for which to view attack log
files.
index <value list> – This command will display the history log, beginning at 1 and ending
at the value specified by the user in the <value_list> field.
If no parameter is specified, all history log entries will be displayed.
Restrictions None.
Example usage:
To display the attack log:
DGS–3426:5#show attack_log index 1–2
Command: show attack_log index 1–2
Index Date Time Log Text
––––– –––––––––– ––––––– ––––––––––––––––––––––––––––––––––––
2 2006–04–25 12:38:00 Possible spoofing attack fr
m 000d010023001 port
1:23
1 2006–04–25 12:37:42 Possible spoofing attack from 000d010023001 port
1:23
DGS–3426:5#
clear attack_log
Purpose Used to clear the switch history of attack log files.
Syntax
clear attack_log {[unit <unit_id 1–12> | all]}
Description This command will clear the contents of the attack log of the Switch.
Parameters unit <unit_id 1–12> – Select the switch in the switch stack for which to clear attack log
files.
all – Entering this parameter will clear all attack log files in the switch stack.
Restrictions Only Administrator and Operator-level users can issue this command.
Example usage:
To clear the attack log for all switches in the switch stack:
DGS–3426:5#clear attack_log all
Command: clear attack_log all
Success.