Defining Command Aliases - Cisco MDS 9000 Series Configuration Manual

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

Advertisement

Defining Command Aliases

• You can use command aliases for show command searching and filtering.
Defining Command Aliases
You can define command aliases for commonly used commands.
SUMMARY STEPS
1. configure terminal
2. cli alias name alias-name alias-text
3. exit
4. (Optional) alias
5. (Optional) copy running-config startup-config
DETAILED STEPS
Command or Action
Step 1
configure terminal
Example:
switch# configure terminal
switch(config)#
Step 2
cli alias name alias-name alias-text
Example:
switch(config)# cli alias name ethint
interface ethernet
Step 3
exit
Example:
switch(config)# exit
switch#
Step 4
alias
Example:
switch# alias
Step 5
copy running-config startup-config
Example:
switch# copy running-config startup-config
Cisco MDS 9000 Family NX-OS Fundamentals Configuration Guide
50
Understanding the Command-Line Interface
Purpose
Enters global configuration mode.
Configures the command alias. The alias name is an
alphanumeric string that is not case sensitive and must begin
with an alphabetic character. The maximum length is 30
characters.
Exits global configuration mode.
(Optional)
Displays the command alias configuration.
(Optional)
Copies the running configuration to the startup configuration.
OL-29291-02

Advertisement

Table of Contents
loading

Table of Contents