Command Aliases; About Command Aliases - Cisco MDS 9000 Series Configuration Manual

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

Advertisement

Understanding the Command-Line Interface
Command or Action
Step 3
exit
Example:
switch(config)# exit
switch#
Step 4
show cli variables
Example:
switch# show cli variables
Step 5
copy running-config startup-config
Example:
switch(config)# copy running-config
startup-config

Command Aliases

This section provides information about command aliases.

About Command Aliases

You can define command aliases to replace frequently used commands. The command aliases can represent
all or part of the command syntax.
Command alias support has the following characteristics:
• Command aliases are global for all user sessions.
• Command aliases persist across reboots if you save them to the startup configuration.
• Command alias translation always takes precedence over any keyword in any configuration mode or
• Command alias configuration takes effect for other user sessions immediately.
• The Cisco NX-OS software provides one default alias, alias, which is the equivalent to the show cli
• You cannot delete or change the default command alias alias.
• You can nest aliases to a maximum depth of 1. One command alias can refer 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 command mode.
• If you reference a CLI variable in a command alias, the current value of the variable appears in the alias,
OL-29291-02
submode.
alias command that displays all user-defined aliases.
that must refer to a valid command, not to another command alias.
not the variable reference.
Purpose
Exits global configuration mode.
(Optional)
Displays the CLI variable configuration.
(Optional)
Copies the running configuration to the startup
configuration.
Cisco MDS 9000 Family NX-OS Fundamentals Configuration Guide
Command Aliases
49

Advertisement

Table of Contents
loading

Table of Contents