Cisco ASR 14000 Series Management Command Reference page 672

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

Advertisement

autocommand
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
RP/0/RP0/CPU0:router# exit
<Your 'TELNET' connection has terminated>
The following example shows how the show ip interface brief command is automatically run when the
user logs on to a vty session:
User Access Verification
Username: lab
Password:
Executing Autocommand 'show ip interface brief'
RP/0/RP0/CPU0:router# show ip interface brief
Interface
MgmtEth0/RP0/CPU0/0
POS0/0/0/0
POS0/0/0/1
POS0/0/0/2
POS0/0/0/3
POS0/3/0/0
POS0/3/0/1
POS0/3/0/2
POS0/3/0/3
The following example shows how to disable the autocommand feature using the no autocommand
command. In this example, the autocommand for the show ip interface brief command is disabled.
When the user logs out, and logs back in, the autocommand does not run.
RP/0/RP0/CPU0:router# configure terminal
RP/0/RP0/CPU0:router(config)# line default
RP/0/RP0/CPU0:router(config-line)# no autocommand ?
LINE
RP/0/RP0/CPU0:router(config-line)# no 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
RP/0/RP0/CPU0:router# exit
<Your 'TELNET' connection has terminated>
User Access Verification
Username:
Username: lab
Password:
RP/0/RP0/CPU0:router#
The following example shows how to a command alias with the autocommand feature to run more than
one command when a user logs in to a default vty session. In this example, the alias "test" is created to
include the show ip interface brief command and the show users command. The autocommand feature
is then used to run the "test" alias when a user logs in to the vty terminal:
RP/0/RP0/CPU0:router# configure terminal
RP/0/RP0/CPU0:router(config)# alias test show ip interface brief; show users
RP/0/RP0/CPU0:router(config)# line default
RP/0/RP0/CPU0:router(config-line)# autocommand test
RP/0/RP0/CPU0:router(config-line)# end
Uncommitted changes found, commit them before exiting(yes/no/cancel)? [cancel]:yes
RP/0/RP0/CPU0:router# exit
Cisco ASR 14000 Series Router System Management Command Reference
SMR-670
Appropriate EXEC command
Terminal Services Commands on Cisco IOS XR Software
IP-Address
Status
172.16.0.0
Up
unassigned
Up
unassigned
Up
unassigned
Up
unassigned
Up
unassigned
Up
unassigned
Up
unassigned
Up
unassigned
Up
Protocol
Up
Up
Up
Up
Up
Up
Up
Up
Up
OL-17231-01

Advertisement

Table of Contents
loading

Table of Contents