Send documentation comments to mdsfeedback-doc@cisco.com
4-85
Cisco MDS 9000 Family Command Reference
OL-8413-07, Cisco MDS SAN-OS Release 3.x
Chapter 4 C Commands
cli alias name
cli alias name
To define a command alias name, use the cli alias name command in configuration submode. To remove
the user-defined command alias, use the no form of the command.
cli alias name command definition
no cli alias name command
Syntax Description
Defaults alias command.
Command Modes Configuration submode.
Command History
Usage Guidelines Follow these guidelines when defining a command alias:
• Command aliases are global for all user sessions.
• Command aliases persist across reboots.
• Commands being aliased must be typed in full without abbreviation.
• Command alias translation always takes precedence over any keyword in any configuration mode or
submode.
• Command alias support is only available on the supervisor module, not the switching modules.
• Command alias configuration takes effect for other user sessions immediately.
• You cannot override the default command alias alias, which is an alias for show cli alias.
• Nesting of command aliases is permitted to a maximum depth of 1. One command alias can refer to
another command alias that refers to a valid command, not to another command alias.
• A command alias always replaces the first command keyword on the command line.
• You can define command aliases in either EXEC mode or configuration submode.
Examples The following example shows how to define command aliases in configuration submode.
switch# config t
switch(config)# cli alias name gigint interface gigabitethernet
switch(config)# cli alias name shintbr show interface brief
switch(config)# cli alias name shfcintup "shintbr| include up | include fc"
command Specifies an alias command name. The maximum size is 30 characters.
definition Specifies the alias command definition. The maximum size is 80
characters.
Release Modification
3.0(1) This command was introduced.