Using Command Alias - D-Link xStack DGS-3610 Series Configuration Manual

Hide thumbs Also See for xStack DGS-3610 Series:
Table of Contents

Advertisement

Chapter 1 Command Line Interface Configuration
Caution
1.9

Using Command Alias

The system provides the command alias function, and can specify any word as the alias of
the command. For example, define the word ―mygateway‖ as the alias of ―ip route 0.0.0.0
0.0.0.0 192.1.1.1‖.
The input of this word is equal to enter the whole following string.
You can use one word to replace one command by configuring the alias of the command.
For example, create one alias to represent the front part of one command, and then you can
continue to enter the following part.
The command mode that the alias represents is the one which exists in current system. In
the global configuration mode, enter Alias? to list all command modes that can configure the
alias.
DGS-3610(config) #alias ?
aaa-gs
acl
bgp
config
......
The alias of command supports the help information, and it will show an asterisk (*) before
the alias in the following format:
*
command-alias=original-command
For example, in the EXEC mode, the default alias of command ―s‖ indicates the keyword
―show‖. Enter ―s?‖ to obtain the help information on the key word and alias beginning with ‗s'.
DGS-3610#s?
*s=show show start-chat start-terminal-service
If the command that the alias represents is more than one word, its command will be
included by the quotation marks. For example, in the EXEC mode, configure alais ―sv‖ to
replace the command ―show version‖:
DGS-3610#s?
*s=show *sv="show version" show start-chat
start-terminal-service
2-8
To look up and filter the output content from the show command, it is necessary
to input the pipeline sign (vertical line, ―|‖). After the pipeline character, you can
select the lookup and filtration rules and content (character or string). The content
for the lookup and filtration should be case sensitive.
AAA server group mode
acl configure mode
Configure bgp Protocol
globle configure mode
DGS-3610 Series Configuration Guide

Advertisement

Table of Contents
loading

Table of Contents