Manoj Reddy's Reference Guide

autocommand

To configure the Cisco IOS software to automatically execute a command when a user connects to a particular line, use the autocommand line configuration command. Use the no form of this command to disable the automatic execution.

autocommand command

no autocommand command

Syntax Description

command 

Any appropriate EXEC command, including the host name and any switches that occur with the EXEC command.

Defaults

No commands are configured to automatically execute.

Command Modes

Line configuration

Command History

ReleaseModification
10.0

This command was introduced.

Usage Guidelines

This command enables you to automatically execute an EXEC command when a user connects to a line.

Examples

The following example forces an automatic connection to a host named host21 (which could be an IP address):

line vty 4 autocommand connect host21

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.