Manoj Reddy's Reference Guide

clear modem

To reset the hardware for one or more manageable modems on an access server or router, use the clear modem EXEC command.

clear modem {slot/port | all  | group group-number | at-mode slot/port | 
test }

Syntax Description

slot/port 

Clear the modem at the specified slot and modem port number. Remember to include the forward slash (/) when entering this variable. For example: 1/1. This variable can also be used with the subcommands clear modem at-mode and clear modem counters.

all

Clear all modems. This command disconnects any active calls.

group  group-number 

Clears the modem hardware for a group of modems. The modem group-number is the number of the group you have previously created.

at-mode  slot /  port 

Tears down an AT directly connected session. The variable, slot/port-number, is required. This EXEC command clears an attention (AT) directly connected session to a manageable Microcom modem from a second Telnet session.

test

Clears the log or test report that is displayed by the show modem testcommand. If you do not clear the test regularly, eventually the oldest test report will replace the current test report.

Defaults

Disabled

Command Modes

EXEC

Command History

ReleaseModification
11.2

This command was introduced.

Usage Guidelines

The modem hardware is reset for modems that are idle or busied out for long periods of time.

An AT directly connected session is usually initiated and closed from the same Telnet session by using the modem at-modecommand and Ctrl-C . However, you can clear an AT directly connected session that was mistakenly left open by enabling the clear modem at-mode command from a second Telnet session in to the access server.

Examples

The following example of the clear modem slot/port command resets the hardware for manageable
modem 1/1:

as5300# clear modem 1/1

The following is an example of using the clear modem all command:

as5300# clear modem all
This command will disconnect any active calls.
Clear (reset) all modems? [confirm]
Clearing modems................................................
Done
as5300#

The following examples of the clear modem group command clear the manageable modems in group 1:

clear modem group 1
clear modem group1

The following example executes the clear modem at-mode command from a Telnet session:

router# modem at-mode 1/1

The following example executes the clear modem at-mode command from a second Telnet session while the first Telnet session is connected to the modem:

router# clear modem at-mode 1/1
clear "modem at-mode" for modem 1/1 [confirm]
router#

The following output is displayed in the first Telnet session after the modem is cleared by the second Telnet session:

Direct connect session cleared by vty0 (171.69.1.164)

Related Commands

CommandDescription
clear modem counters Clears the statistical counters on one or more manageable modems on access servers or routers.
interface group-async Creates a group interface that will serve as master, to which asynchronous interfaces can be associated as members.
modem at-mode Opens a directly connected session and enters AT command mode, which is used for sending AT commands to Microcom manageable modems.

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.