Cli Alias Name - Cisco MDS 9000 series Command Reference Manual

Hide thumbs Also See for MDS 9000 series:
Table of Contents

Advertisement

Chapter 4
C Commands
S e n d d o c u m e n t a t i o n c o m m e n t s t o m d s f e e d b a c k - d o c @ c i s c o . c o m

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.
Syntax Description
command
definition
Defaults
alias command.
Command Modes
Configuration submode.
Command History
Release
3.0(1)
Usage Guidelines
Follow these guidelines when defining a command alias:
The following example shows how to define command aliases in configuration submode.
Examples
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"
OL-8413-07, Cisco MDS SAN-OS Release 3.x
cli alias name command definition
no cli alias name command
Modification
This command was introduced.
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.
Specifies an alias command name. The maximum size is 30 characters.
Specifies the alias command definition. The maximum size is 80
characters.
Cisco MDS 9000 Family Command Reference
cli alias name
4-85

Advertisement

Table of Contents
loading

Table of Contents