Create Alias String - Allied Telesis SwitchBlade x3100 Series Manual

Release 14.2 - issue 2
Table of Contents

Advertisement

Configuring an Alias

CREATE ALIAS STRING

Syntax
CREATE ALIAS=aliasname STRING=substitution
Creates a command alias. The list of alias commands is available for all users in the sys-
Description
tem. Validation is done on the alias name and its definition to ensure that the alias name
has not already been created and that the definition does not reference itself.
The following table gives the range of values for each option that can be specified with
Options
this command and a default value (if applicable).
Option
ALIAS
STRING
Example
CREATE ALIAS=su STRING="show user $1;show sys userconfig"
Software Reference for SwitchBlade x3100 Series Switches (Setting Up the Switch)
Description
The name of the alias for the command string.
An alias name may not match all or part of existing CLI
command root keywords.
The alias name string specifies the case-insensitive literal
string which will be used in place of the CLI string pro-
vided in the STRING=substitution string parameter.
An alias string may consist of one or more valid CLI
commands or other previously defined alias commands,
separated by semicolons. The string may contain argu-
ments, identified with a '$' and number, such as "$1 $2"
etc. These arguments indicate placeholders where
tokens will be substituted once the alias command is
executed.
The substitution string value may not be the same as
an existing CLI command ROOT keyword, such as
, etc. This command may be
ADD, DELETE, SHOW, SET
executed by users with a MANAGER privilege
level or higher.
Introduction
Default Value
1-17

Advertisement

Table of Contents
loading

Table of Contents