Command shortcuts, Command search, Command modes – HP Secure Key Manager User Manual

Page 265: Entering view mode, Entering configure mode, 265 command search

Advertising
background image

If the text you have entered can refer to multiple commands, tab completion will not work, but you
can press the return key to view the possible commands. For example, if you type show sys and press
the return key, the CLI displays the commands that begin with show sys.

Command shortcuts

Similar to tab completion, the CLI enables you to execute commands without typing the complete
command name. When you do not type the complete command name, the SKM attempts to match
the pattern you typed against all the commands available in the current mode (view, config, or script).
If there is only one command that matches, that command is executed.

If multiple commands match the pattern, those commands are displayed on the screen. For example,
if you type sh au lo on the command line, the SKM executes the show audit log command. However,
if you type sh au l on the command line, the SKM displays the commands that match that pattern.

Command search

To search for a command without executing it, type the command, or part of the command, and
include a question mark (?). The CLI displays the commands that match the pattern you typed. For
example, if you type sh au l ? on the command line, the CLI displays the commands that match that
pattern. If you type show audit level ?, the CLI will indicate that show audit level is a unique command.

NOTE:

Include a space before the question mark. Otherwise, the CLI interprets the punctuation as part of the
command, and returns an error.

Command modes

The privilege level configured for an HP user determines which commands are accessible to the user.
Users can be configured for one of three privilege levels: view mode, configure mode, and script
mode.

Entering view mode

This is the default mode. It allows viewing of current configuration and system status; you cannot write
to the system. View mode requires secure shell (SSH) administration privilege.

The view mode prompt is the hostname of the SKM followed by the number sign (#), as follows:

hostname#

Entering configure mode

Configure mode allows both viewing and configuration. The system is in configure mode when the
following prompt is available on the screen:

hostname (config)#

To enter configure mode, type configure terminal at the prompt:

hostname#

hostname (config)#

Secure Key Manager

265

Advertising