
70
TimeProvider 2300/2700 User’s Guide
098-00564-000 Revision A3 – July, 2013
Chapter 3
TimeProvider 2300/2700 CLI Command Set
alias
This command is used to assign an alias for a CLI command (or any character
string). The alias can then be used as a convenient substitution for the CLI
command to which it has been assigned.
The alias command can also be used to display all defined aliases and the
commands to which they have been assigned.
Command Syntax:
To assign an alias name to a command (or any portion of a command):
alias <user-defined-alias> “<character-string>”
To display all defined aliases and the commands to which they have been
assigned:
alias
Example 1:
To set the alias “abc” for the command
show ip status mgmt
. The command string
must be contained within double quote marks (“”)
tp2700> alias abc “show ip status mgmt”
Example 1a:
To use the alias “abc” to execute the command
show ip status mgmt
:
tp2700> abc
Response 1a:
MGMT Link encap:Ethernet HWaddr 00:B0:AE:00:00:05
inet addr:192.168.5.14 Bcast:192.168.5.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:70867 errors:0 dropped:0 overruns:0 frame:0
TX packets:1986 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:4511319 (4.3 MiB) TX bytes:162895 (159.0 KiB)
Interrupt:21 Base address:0xe000
Example 2:
To display the aliases assigned for the TP 2300/2700:
tp2700> alias
Response 2: