Manoj Reddy's Reference Guide

clear counters (async)

To clear the counters of a specified asynchronous interface or specified asynchronous interface group, as displayed by the show interface async command, enter the clear counters interface configuration command.

clear counters {async async-interface-number | group-async group-async-interface-number}

Syntax Description

async

Clears the counters in a specified asynchronous interface.

async-interface-numbe  

Required async interface number of the asynchronous interface that has been previously created with this number specification. The range is from 1 through 49.

group-async

Clears the counters in a specified asynchronous interface group.

group-async-interface-  number 

Required group-async interface number that has been previously created with this number specification. The range is from 0 through 49.

Defaults

Disabled

Command Modes

EXEC

Command History

ReleaseModification
12.0

This command was introduced.

Usage Guidelines

Before using this command, use the show interface async command to display the asynchronous related counters on the specified asynchronous interface.

Examples

The following example uses the show interface async command to display the asynchronous related counters on the asynchronous interface named 1. The example then uses the clear counters group-async command to clear the counters. After the counters are cleared, the configuration file for the interface is displayed.

as5300# show interface async 1
Async1 is down, line protocol is down
  modem(slot/port)=1/0, state=IDLE
  dsx1(slot/unit/channel)=NONE, status=VDEV_STATUS_UNLOCKED
  Hardware is Async Serial
  Interface is unnumbered.  Using address of Ethernet0 (1.18.31.9)
  MTU 1500 bytes, BW 115 Kbit, DLY 100000 usec, rely 255/255, load 1/255
  Encapsulation PPP, loopback not set, keepalive not set
  DTR is pulsed for 5 seconds on reset
  LCP Closed
  Closed: IPCP, CDPCP
  Last input never, output never, output hang never
  Last clearing of "show interface" counters 00:03:46
  Input queue: 0/10/0 (size/max/drops); Total output drops: 0/////
  Queueing strategy: weighted fair
  Output queue: 0/1000/64/0 (size/max total/threshold/drops)
     Conversations  0/0/256 (active/max active/max total)
     Reserved Conversations 0/0 (allocated/max allocated)
  5 minute input rate 0 bits/sec, 0 packets/sec
  5 minute output rate 0 bits/sec, 0 packets/sec
     0 packets input, 0 bytes, 0 no buffer
     Received 0 broadcasts, 0 runts, 0 giants, 0 throttles
     0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
     0 packets output, 0 bytes, 0 underruns
     0 output errors, 0 collisions, 0 interface resets
     0 output buffer failures, 0 output buffers swapped out
     0 carrier transitions
5300#
5300# clear counters group-async 1
Clear "show interface" counters on this interface [confirm]
5300# 
*Oct 17 00:42:27.083: %CLEAR-5-COUNTERS: Clear counter on interface Group-Asynce

Related Commands

CommandDescription
clear modem counters Clears the statistical counters on one or more manageable modems on access servers or routers.
show interface async Displays the asynchronous related counters on the specified asynchronous interface.

Printed for apswan@ctr.ap.nic.in on Wed Mar 5 22:32:57 PST 2003

All material in this document copyright 2000 Cisco Systems, Inc. All rights reserved. No material may be reproduced or distributed without written permission of Cisco Systems, Inc.