You can create aliases to execute any ExtremeXOS command, including any options, arguments, and redirection.
For example, you can create an alias called "download" to
substitute for "
download image 22.214.171.124". Now
you can now simply type "download" and then the image file name to download your ExtremeXOS image
from the 126.96.36.199 location, instead of typing
image 188.8.131.52 image_name.
Aliases are only available in the shell session in which they are created. When you exit the shell your aliases are lost. To create persistent aliases, you need to add the aliases to the script exshrc.xsf that you must create using the VI editor and save in the /usr/local/cfg folder.
To be recognized, the alias must be the first word in the command string typed at the prompt. Substitution does not occur if the alias name string occurs anywhere else.
Auto-completion works for aliases much as it does for ExtremeXOS commands (see Syntax Helper).
sh psat the prompt is not equivalent to entering “
show version process”.
To create an alias, use the command alias alias_name command
To view a list of current aliases, use the command alias (with no other arguments).
To display the command that will be substituted for alias_name, use the command alias alias_name.
To delete aliases, use the command unalias.