
alias
Creates an alias to an existing command.
Syntax: alias mode shortform full-command
no alias mode shortform
mode
The command mode in which the alias is available for use. Valid values are:
shortform
Specifies the pseudonym to be used for the full-command.
Valid strings may:
full-command
Specifies the command the alias replaces.
The maximum length is 256 characters.
Description: The alias command creates a pseudonym or shorthand for a command.
Use the alias mode shortform full-command command to create an alias.
Use the no alias mode shortform command to delete an alias.
Factory Default: None.
Command Mode: Configuration.
Example 1: In the following example:
- The alias exec shldpentbr show mpls ldp entity interface pos brief command creates a new alias shldpentbr
- The show alias command lists the new alias
- The shldpentbr command demonstrates the new alias:
router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
router(config)#alias exec shldpentbr show mpls ldp entity interface pos brief
router(config)#end
router#show alias
List of aliases in the system:
shldpentbr show mpls ldp entity interface pos brief
router#shldpentbr
Interface/Egress LDP Id Status Neighbor
---------------- --------------------- --------- --------
.
.
.
Example 2: The following example removes the alias created in the previous example:
router(config)#no alias exec shldpentbr
Related Commands: show running-config
show alias
Copyright © 2005
Avici Systems Inc.
Avici® and TSR®
is a registered trademark of Avici Systems Inc.
IPriori, Composite Links, SSR, QSR, and NSR® are
trademarks of Avici Systems Inc.
Source
File Name: navigation.fm
HTML File Name: navigation2.html
Last Updated: 02/25/05 at 14:25:22