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.
B5(rw)->clear port counters ge.3.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),andtheapproximatelengthofthecableattachedtothe
port.Ifyourswitchplatformdoesnotsupport1GERJ45ports,thiscommandwillnotbe
available.
Ifnocableisattachedtotheport,thestatuswillbe“Open”andnoleng th willbeshown.Ifthe
portisnota1GERJ45port,thecommandwillreturnastatusof“N otSupported.”
port‐string (Optional)Specifiestheportorrangeofportstoclearportcounter
statistics.
port‐string (Optional)Specifiestheportorportstoshowstatusfor.