Using the Command Line Interface (CLI)

Using the Command Line Interface (CLI)

Using the CLI

As mentioned above, if you type part of a command word and press [Tab], the CLI completes the current word (if you have typed enough of the word for the CLI to distinguish it from other possibilities), including hyphenated exten- sions. For example:

HP2512(config)# port[Tab]

HP2512(config)# port-security _

Pressing [Tab] after a completed command word lists the further options for that command.

HP2512(config)# stack [Tab] commander <commander-str> join <mac-addr> auto-join transmission-interval <integer> <cr>

HP2512(config)# stack

Command Option Displays

Conventions for Command Option Displays. When you use the CLI to list options for a particular command, you will see one or more of the following conventions to help you interpret the command data:

Braces ( < > ) indicate a required choice.

Square brackets ([ ]) indicate optional elements.

Vertical bars ( ) separate alternative, mutually exclusive options in a command.

The braces (< >) show that the trunk command requires all three parameters.

The vertical bar ( ) shows that either trunk or lacp must be included.

The square brackets ([ ]) show that ethernet is optional.

Figure 3-5.Example of Command Option Conventions

3-10