Cisco Systems How to Clear Counters on Cisco Interfaces: Reset Statistics Effectively

Page 43

Statistics Commands

clear counters

Syntax:

clear counters {stack hub [hub id] port [hub id] [port id] }

Mode: Administrator

Description: Clears all accrued statistics for the specified stack, hub, or port, or a combination of these.

Command Keyword Definitions

stack—Clears statistics for all ports on all hubs in the stack.

hub—Clears statistic for the specified hub. If no hub is specified, statistics are cleared for all hubs in the stack.

port—Clears statistics for the specified port on the specified hub. If no port is specified, statistic are cleared for all ports in the stack.

hub id—(Optional) Number used to identify the hub in a stack. An integer between 1 and 5. Read the section “Hub ID Numbers” earlier in this chapter for information about how to determine hub ID numbers.

port id—(Optional) Port number that is shown on the rear panel of the hub. A value from 1 to 8.

Using Your Hub Software 3-43

Image 43
Contents Direct Connection through the Console Port Using Your Hub SoftwareConfiguration Using a PC Connection Using TelnetHub enable Command ConventionsHub# password Configuration ModesSetting the Administrator Password Hub enable Password enablepasswordPress Ctrl-C Forgot Your Password?Hub ID Numbers Configuring the Hub1illustrates these rules Entering Administrator Mode Hub# ip address 172.16.10.2 255.255.255.0 Configuring IP and Snmp ParametersHub# snmp community 1 private rw Hub# ip trap-manager 1 Configuring the Snmp Management StationCommand Summary Show hub Info Show hub informationHelp System Help CommandsSyntax help Mode Guest Syntax ModeEnable User Interface CommandsCommand Mode Access Commands DisableShow console lockout info Console Access CommandsSyntax exit Mode Guest ExitSyntax console-lockout Console-lockoutNo console lockout Console-lockout timeSyntax password Administrator Password CommandsPassword No passwordNo telnet-session password Telnet-session passwordTelnet-session Terminal no history History CommandsShow history Terminal historyTerminal editing Editing CommandsSyntax Terminal history size size Mode Terminal history sizeNo bootup-option Firmware Load and Restart CommandsBootup Option Commands Bootup-optionHub show tftp-download info Tftp Download CommandsShow tftp-download information Tftp-downloadSyntax Start tftp-download Xmodem Download CommandStart tftp-download Start xmodem-downloadRestart Restart CommandSyntax restart Show system information System Information CommandsHub show system information No system name System nameSystem contact System location No system contactNo system location Hub show management information Show management informationHub show ip configuration Management Configuration CommandsIP Parameter Commands Show ip configurationNo ip address Ip addressShow snmp communities Snmp Communities CommandsHub show snmp communities Snmp community Snmp community disableSyntax Snmp community index string ro rw Snmp trap-authentication Snmp community enableNo snmp trap-authentication Show ip trap-managers Configuring Trap ManagersIp trap-managers Ip trap-manager Ip trap-manager enableIp trap-manager disable Syntax Ip trap-manager disable indexShow hub information Hub Configuration CommandHub show hub information Show port information Port Configuration CommandsPort operation Show system statistics Statistics CommandsHub show system statistics Hub show hub statistics Show hub statisticsHub show port statistics 1 Show port statistics42Cisco Micro Hub User Guide Syntax Clear counters stack hub hub id port hub id port id Clear countersShow chassis information Chassis Information CommandsHub show chassis information Show card table Syntax Show card table Mode GuestHub show card table Stack name Show stack informationHub show stack information Stack ip address Syntax Stack ip address ip address ModeClear stack table 48Cisco Micro Hub User Guide