
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
clear counters
Purpose
Used to clear the Switch’s statistics counters.
Syntax
clear counters
{ports<portlist>}
Description
This command will clear the counters used by the Switch to compile
statistics.
Parameters
ports <portlist>
−
Specifies a port or range of ports to be displayed.
Restrictions Only
administrator-level users can issue this command.
Example usage:
To clear the counters:
DGS-3400:4#clear counters ports 2-9
Command: clear counters ports 2-9
Success.
DGS-3400:4#
clear log
Purpose
Used to clear the Switch’s history log.
Syntax
clear log
Description
This command will clear the Switch’s history log.
Parameters None.
Restrictions Only
administrator-level users can issue this command.
Example usage:
To clear the log information:
DGS-3400:4#clear log
Command: clear log
Success.
DGS-3400:4#
show log
Purpose
Used to display the switch history log.
Syntax
show log {index <value>}
Description
This command will display the contents of the Switch’s history log.
Parameters
index <value 1-65535>
−
This command will display the history log,
beginning at 1 and ending at the value specified by the user in the
<value 1-65535>
field.
If no parameter is specified, all history log entries will be displayed.
Example usage:
To display the switch history log
:
57