Switch User Manual
clear port counters
7-6 Port Configuration
clear port counters
Usethiscommandtoclearportcounterstatisticsforaportorrangeofports.
Syntax
clear port counters [port-string]
Parameters
Defaults
Ifnoport‐stringisspecified,portcountersareclearedforallports.
Mode
Switchcommand,read‐write
Example
Thisexampleclearstheportcountersforge.3.1.
C3(rw)->clear port counters ge3.1
show port cablestatus
Usethiscommandtotroubleshootandlocatefaultsincoppercableconnectionsonaperport
basis.Thiscommandisonlyavailableonswitchplatformsthatprovide1GigabitEthernetRJ45
ports.
Syntax
show port cablestatus [port-string]
Parameters
Defaults
Ifnoportisspecified,informationaboutallportswillbedisplayed.
Mode
Switchcommand,read‐only.
Usage
For1GigabitEthernetRJ45portsonly,thiscommandwilldisplaythestatusoftheport’scable
connection(describedinTable 7‐3below),andtheapproximate lengthofthecableattachedtothe
port.Ifyourswitchplatformdoesnotsupport1GERJ45ports,thiscommandwillnotbe
available.
Ifnocableisattachedtotheport,thestatuswillbe“Open”andnolengthwillbeshown.Ifthe
portisnota1GERJ45port,thecommandwillreturnastatusof“N otSupported.”
port‐string (Optional)Specifiestheportorrangeofportstoclearportcounter
statistics.
port‐string (Optional)Specifiestheportorportstoshowstatusfor.