Cisco Systems OL-6244-01 Switch User Manual


  Open as PDF
of 1438
 
Chapter 2 Catalyst 6500 Series Switch and ROM Monitor Commands
restore counters
2-235
Catalyst 6500 Series Switch Command Reference—Release 8.4
OL-6244-01
2F2
restore counters
To restore MAC and port counters, use the restore counters command.
restore counters [all | mod/ports]
restore counters channel {all | channel-id}
restore counters lacp-channel {all | channel-id}
Syntax Description
Defaults This command has no default settings.
Command Types Switch command.
Command Modes Privileged.
Usage Guidelines If you do not specify a range of ports to be restored, then all ports on the switch are restored.
To restore channel-based counters on a per-channel basis, use the channel ID number. Enter the show
port channel command to find the channel ID number for PAgP channels. Enter the show port
lacp-channel command to find the channel ID number for LACP channels.
Examples This example shows how to restore MAC counters and port counters:
Console> (enable) restore counters all
This command will restore all counter values reported by the CLI to the hardware counter
values.
Do you want to continue (y/n) [n]? y
MAC and Port counters restored.
Console> (enable)
all (Optional) Restores all ports.
mod/ports (Optional) Number of the module and the ports on the module.
channel Restores PAgP channel MAC and port counters.
all Restores MAC and port counters for all PAgP channels.
channel_id Number of a specific PAgP channel.
lacp-channel Restores LACP channel MAC and port counters.
all Restores MAC and port counters for all LACP channels.
channel_id Number of a specific LACP channel.