Using the Command Line Interface (CLI)

Using the CLI

Changing Interfaces. If you change from the CLI to the menu interface, or the reverse, you will remain at the same privilege level. For example, entering the menu command from the Operator level of the CLI takes you to the Operator privilege level in the menu interface.

Table 3-1. Privilege Level Hierarchy

Privilege

Example of Prompt and Permitted Operations

 

Level

 

 

 

 

 

 

Operator Privilege

 

 

Operator Level

HPswitch>

show <command>

View status and configuration information.

 

 

setup

 

 

 

ping <argument>

Perform connectivity tests.

 

 

link-test <argument>

 

 

 

enable

Move from the Operator level to the Manager

 

 

 

level.

 

 

menu

Move from the CLI interface to the menu interface.

 

 

logout

Exit from the CLI interface and terminate the

 

 

exit

console session.

 

 

Terminate the current session (same as logout).

 

 

 

 

 

 

Manager Privilege

 

 

Manager Level

HPswitch#

Perform system-level actions such as system control, monitoring, and

 

 

diagnostic commands, plus any of the Operator-level commands. For a list

 

 

of available commands, enter ? at the prompt.

Global

HPswitch(config)#

Execute configuration commands, plus all Operator and Manager

Configuration

 

commands. For a list of available commands, enter ? at the prompt.

Level

 

 

 

Context

HPswitch(eth-5)#

Execute context-specific configuration commands, such as a particular

Configuration

HPswitch(vlan­

VLAN or switch port. This is useful for shortening the command strings you

Level

100)#

type, and for entering a series of commands for the same context. For a list

 

 

of available commands, enter ? at the prompt.

 

 

 

 

3-6