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
command  Any appropriate EXEC command, including the host name and any switches that occur with the EXEC command.
No commands are configured to automatically execute.
Line configuration
Release | Modification | 10.0 | This command was introduced. |
---|
This command enables you to automatically execute an EXEC command when a user connects to a line.
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.