HP UX 11i v2 Networking Software manual Exiting CLI Modes, Using Command Completion

Models: UX 11i v2 Networking Software

1 236
Download 236 pages 18.16 Kb
Page 76
Image 76

You enter the global-configuration mode from the privileged-execute mode. The global-configuration mode is used to configure everything except system interface cards and their ports. The global-configuration mode configures system-level attributes, such as SNMP, SNMP agents, and the networks. To enter the global-execute mode, enter the config keyword while in the privileged-execute mode.

HP-IB# configure

HP-IB(config)#

Going from the privileged-execute to global-configuration mode, the prompt changes from:

HP-IB#

to

HP-IB(config)#.

The final mode is sub-command mode. Anything to do with HP Fabric is done in this mode. This mode is used to assign IP addresses to interface ports, set connection speeds, set connection types, and other settings.

To enter the sub-command mode from the global-configuration mode, enter the interface keyword, the type of interface to be configured, and then identify the specific card or ports to be configured.

For example, to enter the sub-command mode for an Ethernet card, ports 1 through 4, type:

HP-IB(config)# interface ethernet 4/1-4/4

HP-IB(config-if-ether-4/1-4/4)#

The commands you enter when in the sub-command mode are applied to the specified cards and ports.

Exiting CLI Modes

Most commands are mode-dependent. For example, you can only configure clock settings in the global-configuration mode. To configure the system, you will have to enter and exit CLI modes. The exit command is used to return to the previous mode.

HP-IB(config-if-fc-5/1)# exit

HP-IB(config)# exit

HP-IB#

You may also enter the exit command with the all argument to return to the privileged-execute mode in one step.

To leave the global-configuration mode and return to the user-execute mode, enter the exit and the disable commands.

For example:

HP-IB(config)# exit

HP-IB# disable

HP-IB>

Using Command Completion

The system provides command completion by way of the [Tab] key. If you enter a partial command and press the [Tab] key, the CLI will complete the command and place the cursor at the end of the command.

To facilitate command entry, CLI commands do not have to be entered in their entirety. You may enter just enough of each command or argument to make it uniquely identifiable.

For example:

HP-IB(config)# trace ? app

HP-IB(config)# trace app ? app <1-28>

app numbers:

76 Administration and Management

Page 76
Image 76
HP UX 11i v2 Networking Software manual Exiting CLI Modes, Using Command Completion