Dell S5148F-ON OS10 Enterprise Edition User Guide Release 10.3.2E-R2 - Page 36
Alias command
![]() |
View all Dell S5148F-ON manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 36 highlights
except find grep no-more save Shows only text that does not match a pattern Searches for the first occurrence of a pattern and display all the subsequent configurations Shows only text that matches a pattern Does not paginate output Saves the output to a file Display all output OS10# show running-configuration | no-more Alias command The alias command allows you to create shortcuts for commonly used or long commands, and execute long commands along with their parameters. The alias supports the following modes: • Persistent mode - The alias is persistent and can be used in other sessions as well. The aliases created in the Configuration mode are persistent. • Non-persistent mode - The alias can be used only within the current session. Once the session is closed, the alias is removed from the system. The aliases created in Exec mode are non-persistent. NOTE: You cannot use existing keywords, parameters, and short form of keywords as alias names, nor can you create a shortcut for the alias command. • Create an alias in EXEC or CONFIGURATION mode - EXEC mode for non-persistent and CONFIGURATION mode for persistent aliases. The alias value is the actual command where you can use $n to enter the input parameters. You can substitute $n with either numbers ranging from 1 to 9 or with an asterisk (*) and enter the parameters while executing the commands using the alias. Use asterisk (*) to represent any number of parameters. The maximum number of input parameters is 9. alias alias-name alias-value • Execute the commands using the alias in the respective modes. • View the current aliases. show alias [brief | detail] • Use the no form of the command to delete an alias. no alias alias-name Create 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 - Eth 1/1/11 up 40G A 1 - 36 Getting Started
![](/manual_guide/products/dell-powerswitch-s5148fon-os10-enterprise-edition-user-guide-release-1032er2-5350827/36.png)