Command Aliases
DETAILED STEPS
Command or Action
Step 1
configure terminal
Example:
switch# configure terminal
switch(config)#
Step 2
cli var name variable-name variable-text
Example:
switch(config)# cli var name testinterface
ethernet 2/1
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.
Cisco Nexus 5500 Series NX-OS Fundamentals Configuration Guide, Release 7.x
56
submode.
Understanding the Command-Line Interface
Purpose
Enters global configuration mode.
Configures the CLI persistent variable. The variable name
is a case-sensitive, alphanumeric string and must begin
with an alphabetic character. The maximum length is 31
characters.
Exits global configuration mode.
(Optional)
Displays the CLI variable configuration.
(Optional)
Copies the running configuration to the startup
configuration.
OL-30890-01