Command search, Command modes, Entering view mode – HP Secure Key Manager User Manual
Page 243: Entering configure mode, Entering script mode
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)#
To exit configure mode and go to view mode, type exit at the prompt:
hostname (config)# exit
hostname#
Entering script mode
Script mode allows you to create and run scripts containing “show” and/or “configure” mode CLI
commands. To enter script mode, you must first enter configure mode, then type script at the command
prompt. The system is in script mode when the following prompt is displayed:
hostname (script)#
To enter script mode, type script at the prompt:
hostname (config)# script
To exit script mode and go to configure mode, type exit at the prompt:
hostname (script)# exit
Secure Key Manager
243