Understanding the Command-Line Interface
• You can use command aliases for show command searching and filtering.
Defining Command Aliases
You can define command aliases for commonly used commands.
Procedure
Step 1
Step 2
Step 3
Step 4
Step 5
Configuring Command Aliases for a User Session
You can create a command alias for the current user session that is not available to any other user on the Cisco
NX-OS device. You can also save the command alias for future use by the current user account.
Command or Action
configure terminal
Example:
switch# configure terminal
switch(config)#
cli alias name alias-name alias-text
Example:
switch(config)# cli alias name ethint
interface ethernet
exit
Example:
switch(config)# exit
switch#
alias
Example:
switch# alias
copy running-config startup-config
Example:
switch# copy running-config
startup-config
Cisco Nexus 9000 Series NX-OS Fundamentals Configuration Guide, Release 7.x
Defining Command Aliases
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.
57