
alias
2-2
PACSystems* RX3iPROFINET Controller Command Line Interface Manual
– July 2011
GFK-2572
2
alias
Global Command
This command provides a mechanism for assigning a name to a string, which allows
replacement of a word or string with another string. This is useful for abbreviating a command,
or for adding default arguments
to a regularly used command. For example, the command
alias
sh show
sets up the alias
sh
for
show
, which may be used to issue subsequent commands, for
example
sh time
for the
show time
command. Alias strings that include a space must be
enclosed with quotations (for example,
alias scfg “show config”).
Aliases may be deleted by
entering
alias
followed by the alias value. For example
alias sh
deletes the
sh
alias. Entering
alias
with no parameters shows all the currently defined aliases. Alias definitions do not persist
between Command Line Interface sessions or across power cycles.
alias Command Format
alias [Replacement Text> [<CommandCommand Name>]]
<Replacement Text>
Any string using alphanumeric values. If a space is desired
within the string, the
aliasValue
must be enclosed in quotations
(single or double).
<Command Name>
Typically a string containing any valid Command Line Interface
command or parameter combinations. If the string contains
spaces, the string must be enclosed within quotations (single or
double).
Example
Screen Display
device-name> alias sh show
device-name> alias shcfg "show config"
device-name> alias 'sho ip' 'show config ip'
device-name> alias his history
device-name> alias
sh show
shcfg show config
sho ip show config ip
his history
device-name> his
1. alias sh show
2. alias shcfg "show config"
3. alias 'sho ip' 'show config ip'
4. alias his history
5. alias
6. his