Typing Incomplete Keywords; Configuring Command Aliases - HP A-F1000-E Getting Started Manual

High-end firewalls
Table of Contents

Advertisement

Key
Tab

Typing incomplete keywords

You can input a command comprising incomplete keywords that can uniquely identify the complete
command.
In user view, for example, commands starting with an s include startup saved-configuration and
system-view.
To enter system view, type sy.
To set the configuration file to be used at the next startup, type st s.
You can also press Tab to have an incomplete keyword automatically completed.

Configuring command aliases

The command alias function allows you to replace the first keyword of a command with your preferred
keyword. For example, if you configure show as the replacement for the display keyword, then to execute
the display xx command, you can input the command alias show xx.
Note the following guidelines when configuring command aliases:
When you input a command alias, the system displays and saves the command in its original
format instead of its alias. In other words, you can define and use a command alias but the
command is not restored in its alias format.
When you define a command alias, the cmdkey and alias arguments must be in their complete
form.
When you input an incomplete keyword that partially matches both a defined alias and the
keyword of a command and the command alias function is enabled, the alias wins. To execute the
command whose keyword partially matches your input, input the complete keyword. When you
input a character string that partially matches multiple aliases, the system gives you prompts.
If you press Tab after you input the keyword of an alias, the original format of the keyword is
displayed.
You can replace only the first keyword of a non-undo command instead of the complete command;
and you can replace only the second keyword of undo commands.
Function
If you press Tab after entering part of a keyword, the system automatically
completes the keyword:
If finding a unique match, the system substitutes the complete keyword for the
incomplete one and displays it in the next line.
If there is more than one match, you can press Tab repeatedly to display in
cycles all the keywords starting with the character string that you typed.
If there is no match, the system does not modify the incomplete keyword and
displays it again in the next line.
122

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

A-f5000

Table of Contents