Defining Command Aliases; About Flash Devices - Cisco MDS 9000 series Command Reference Manual

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

Advertisement

Chapter 1
CLI Overview
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

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
Figure 1-2
OL-8413-07, Cisco MDS SAN-OS Release 3.x
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).
Flash Devices in the Cisco MDS 9000 Supervisor Module
Internal
bootflash
Cisco MDS 9216 Switch
Internal
bootflash
External
CompactFlash
Slot 0
Cisco MDS 9500 Series Director
Cisco MDS 9000 Family Command Reference
About Flash Devices
Figure
1-2). The Cisco
Figure 1-2
and
1-31

Advertisement

Table of Contents
loading

Table of Contents