Using Command Aliases; Defining Command Aliases; About Flash Devices - Cisco MDS 9124 - Fabric Switch Reference

Cisco mds 9000 family command reference - cisco mds san-os release 3.0(1) through 3.3(1a) (ol-16217-01, april 2008)
Hide thumbs Also See for Cisco MDS 9124 - Fabric Switch:
Table of Contents

Advertisement

Using Command Aliases

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
Using Command Aliases
Command alias support has the following characteristics:

Defining Command Aliases

You can define command aliases using the cli alias name command in configuration mode.
This following example shows how to define command aliases.
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"
You can display the command aliases defined on the switch using the alias default command alias.
The following example shows how to display the command aliases defined on the switch.
switch# alias
CLI alias commands
==================
alias
gigint
shintbr
shfcintup

About Flash Devices

Every switch in the Cisco MDS 9000 Family contains one internal bootflash (see
MDS 9500 Series additionally contains one external CompactFlash called slot0 (see
Figure
Cisco MDS 9000 Family Command Reference
1-30
Command aliases are global for all user sessions.
Command aliases are 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 aliases the 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 must refer 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 for commands in any configuration submode or the EXEC mode.
:show cli alias
:interface gigabitethernet
:show interface brief
:shintbr | include up | include fc
1-3).
Chapter 1
CLI Overview
Figure
1-2). The Cisco
Figure 1-2
OL-16217-01, Cisco MDS SAN-OS Release 3.x
and

Advertisement

Table of Contents
loading

Table of Contents