![](https://pdfstore-manualsonline.prod.a.ki/pdfasset/f/fa/ffa63819-0092-4e25-b43b-b3dd7442913c/ffa63819-0092-4e25-b43b-b3dd7442913c-bg4b.png)
xStack
®
DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
71
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. The port list is
specified by listing the lowest switch number and the beginning port number on that
switch, separated by a colon. Then the highest switch number, and the highest port
number of the range (also separated by a colon) are specified. The beginning and end of
the port list range are separated by a dash. For example, 1:3 specifies switch number 1,
port 3. 2:4 specifies switch number 2, port 4. 1:3–2:4 specifies all of the ports between
switch 1, port 3 and switch 2, port 4 − in numerical order. Non–contiguous portlist entries
are separated by a comma. (ex: 1:1–1:3,1:7–1:9)
Restrictions Only Administrator and Operator-level users can issue this command.
Example usage:
To clear the counters:
DGS–3426:5#clear counters ports 1:2–1:9
Command: clear counters ports 1:2–1:9
Success.
DGS–3426:5#
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 and Operator-level users can issue this command.
Example usage:
To clear the log information:
DGS–3426:5#clear log
Command: clear log
Success.
DGS–3426:5#
show log
Purpose Used to display the switch history log.
Syntax
show log {index <value_list>}
Description This command will display the contents of the Switch’s history log.
Parameters
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.