Skip to main content
  • Place orders quickly and easily
  • View orders and track your shipping status
  • Create and access a list of your products
  • Manage your Dell EMC sites, products, and product-level contacts using Company Administration.

Dell EMC SmartFabric OS10 User Guide Release 10.5.0

Command alias

To create shortcuts for commonly used or long commands, use the alias command. A command alias executes long commands with parameters.
  • To create a command alias that is persistent and available in other OS10 sessions, create the alias in CONFIGURATION mode.
  • To create a command alias that is non-persistent and is used only in the current OS10 session, create the alias in EXEC mode. After you close the session, the alias is removed from the switch.
  • Create a command alias in EXEC or CONFIGURATION mode.
    alias alias-name alias-value
    • The alias-name is case-sensitive and has a maximum of 20 characters. It does not support existing keywords, parameters, and short form of keywords.
    • The alias-value is the CLI command executed by the alias name. To enter command parameters, enter $n, where n is a number from 1 to 9 or an asterisk (*). Enter $* to enter up to nine parameters with the alias name.
    • You cannot create a shortcut for the alias command.
    • To delete an alias, use the no alias alias-name command.
    • To view the currently configured aliases, use the show alias [brief | detail] command.
Create an alias
OS10# alias showint "show interface $*"
OS10(config)# alias goint "interface ethernet $1"
View alias output for showint
OS10# showint status
---------------------------------------------------------------------------------
Port            Description     Status   Speed    Duplex   Mode Vlan Tagged-Vlans
---------------------------------------------------------------------------------
Eth 1/1/1                       up       40G               A    1    -
Eth 1/1/2                       up       40G               A    1    -
Eth 1/1/3                       up       40G               A    1    -
Eth 1/1/4                       up       40G               A    1    -
Eth 1/1/5                       up       40G               A    1    -
Eth 1/1/6                       up       40G               A    1    -
Eth 1/1/7                       up       40G               A    1    -
Eth 1/1/8                       up       40G               A    1    -
Eth 1/1/9                       up       40G               A    1    -
Eth 1/1/10                      up       40G               A    1    -
...
View alias output for goint
OS10(config)# goint 1/1/1
OS10(conf-if-eth1/1/1)#
View alias information
OS10# show alias
Name                 Type
----                 ----
govlt                Config
goint                Config
shconfig             Local
showint              Local
shver                Local

Number of config aliases : 2
Number of local aliases : 3
View alias information brief. Displays the first 10 characters of the alias value.
OS10# show alias brief
Name                 Type        Value
----                 ----        -----
govlt                Config      "vlt-domain..."
goint                Config      "interface ..."
shconfig             Local       "show runni..."
showint              Local       "show inter..."
shver                Local       "show versi..."

Number of config aliases : 2
Number of local aliases : 3
View alias information in detail. Displays the entire alias value.
OS10# show alias detail
Name                 Type        Value
----                 ----        -----
govlt                Config      "vlt-domain $1"
goint                Config      "interface ethernet $1"
shconfig             Local       "show running-configuration"
showint              Local       "show interface $*"
shver                Local       "show version"

Number of config aliases : 2
Number of local aliases : 3

Rate this content

Accurate
Useful
Easy to understand
Was this article helpful?
0/3000 characters
  Please provide ratings (1-5 stars).
  Please provide ratings (1-5 stars).
  Please provide ratings (1-5 stars).
  Please select whether the article was helpful or not.
  Comments cannot contain these special characters: <>()\