Defining Command Aliases - Cisco Nexus 5500 Series Configuration Manual

Nx-os fundamentals configuration guide, release 7.x
Hide thumbs Also See for Nexus 5500 Series:
Table of Contents

Advertisement

Understanding the Command-Line Interface
• 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,
• 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#
OL-30890-01
alias command that displays all user-defined aliases.
that must refer to a valid command, not to another command alias.
not the variable reference.
Cisco Nexus 5500 Series NX-OS Fundamentals Configuration Guide, Release 7.x
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.
Defining Command Aliases
57

Advertisement

Table of Contents
loading

Table of Contents