August 2005
Intermediate to advanced
798 pages
31h 12m
English
autocommand — line
autocommand command-string
no autocommandAutomatic execution of a command upon connection
Disabled
This command forces a specified line command, given by command-string, to be executed automatically when a login session is started. The command string can be any valid command. Use the no form to delete the selected autocommand.
The following code starts PPP automatically after a successful login on line 5:
Router(config)#line tty 5Router(config-line)#autocommand ppp