Cisco ASR 14000 Series Management Command Reference page 671

Router system
Hide thumbs Also See for ASR 14000 Series:
Table of Contents

Advertisement

Terminal Services Commands on Cisco IOS XR Software
C i s c o C o n f i d e n t i a l - B e t a R e v i e w R 3 . 7. 1
autocommand
To automatically run one or more commands after a user logs in to a vty terminal session, use the
autocommand command in line default or line template configuration mode. To remove the
autocommand command from the configuration file and restore the system to its default condition, use
the no form of this command.
Syntax Description
command
Defaults
No default behavior or values
Command Modes
Line template configuration
Line default configuration
Command History
Release
Release 3.7.1
Usage Guidelines
To use this command, you must be in a user group associated with a task group that includes the proper
task IDs.
Use the autocommand command to automatically run a command or command alias when a user logs
in to a vty session. To run multiple commands, use a command alias for the command argument. When
the user logs in, the commands included in the alias are run sequentially.
Note
The autocommand command is supported on vty connections only; it is not supported on console or aux
line connections. Use this command to automatically run a command after user login.
Task ID
Task ID
tty-access
Examples
The following example shows how to use the autocommand command to automatically run the show ip
interface brief command when a user logs in to a default vty session:
RP/0/RP0/CPU0:router# configure terminal
RP/0/RP0/CPU0:router(config)# line default
RP/0/RP0/CPU0:router(config-line)# autocommand show ip interface brief
RP/0/RP0/CPU0:router(config-line)# end
Uncommitted changes found, commit them before exiting(yes/no/cancel)? [cancel]:yes
OL-17231-01
autocommand command
no autocommand command
Command or command alias to be executed on user login to a vty session.
Modification
This command was introduced on the Cisco ASR 14000 Series Router.
Operations
read, write
Cisco ASR 14000 Series Router System Management Command Reference
autocommand
SMR-669

Advertisement

Table of Contents
loading

Table of Contents