Allied Telesis SwitchBlade x3100 Series Manual page 45

Release 14.2 - issue 2
Table of Contents

Advertisement

Configuring an Alias
Nesting of alias commands is not supported within commands with aliases.
Alias command strings must substitute a CLI command string from the root of the command. For instance,
the user may set a command string "ge1prof" to be equivalent to "SHOW PROFILE NAMES GE1" (the
entire command string) by creating the alias:
1.4.6.3 Configuration Procedure
The following procedure shows the commands used to create an Alias
TABLE 1-4
Step
Action or State
Create an alias
1
CREATE ALIAS=dm STRING="disable more"
CREATE ALIAS=shsys STRING="show system"
Use an alias
2
dm
shsys
Show the alias string
3
SHOW ALIAS=dm
dm="disable more"
Create an alias command with input variables
4
CREATE ALIAS=shcard STRING="SHOW CARD=$1"
Use this alias to view the information about card 4
5
shcard 4
Software Reference for SwitchBlade x3100 Series Switches (Setting Up the Switch)
Configure a Command Alias
Introduction
Details
The output of the actual
string appears.
1-15

Advertisement

Table of Contents
loading

Table of Contents