beautypg.com

Amer Networks E5Web GUI User Manual

Page 41

background image

pressing the up arrow key once will make the last command executed appear at the current CLI
prompt. After a command appears it can be re-executed in its original form or changed first
before execution.

Tab Completion

Remembering all the commands and their options can be difficult. cOS Core provides a feature
called tab completion which means that pressing the tab key will cause automatically completion
of the current part of the command. If completion is not possible then pressing the tab key will
alternatively display the possible command options that are available.

Optional Parameters Are Tab Completed Last

Tab completion does not work with optional parameters until all the mandatory parameters
have been entered.

For example, when creating an IP rule for a particular IP rule set, the command line might begin:

Device:/> add IPRule

If the tab key is now pressed, the mandatory parameters are displayed by cOS Core:

A value is required for the following properties:

Action

DestinationNetwork

SourceInterface

DestinationInterface

Service

SourceNetwork

The Name parameter is not in this list since it is not mandatory because rules can be referenced
with their index number. Similarly, the following might be entered:

Device:/> add IPRule Na

If the tab key is now pressed, the letters Na will not be completed to be Name= because Name is
optional and all the mandatory parameters must be entered before tab completion works for
optional parameters.

Note: CLI commands in this guide are reformatted

In order to make the individual elements of CLI commands in this guide clearer, they are
broken into indented separate lines. In a console window they would appear as a single
continuous line which folds at the right margin.

For example, if the following command is typed:

Device:/> add IPRule

SourceInterface=If2
SourceNetwork=all-nets
DestinationInterface=If2
DestinationNetwork=all-nets
Action=Allow
Service=all_services
Na

If the tab key is now pressed, the letters Na will now be completed to be Name= because all the
mandatory parameters have already been entered.

Note: Rule names are recommended

Even when it is optional, it is recommended that a Name value is assigned to a rule. This

Chapter 2: Management and Maintenance

41

This manual is related to the following products: