beautypg.com

Command modes, Entering view mode, Escaping characters using backslash – HP Secure Key Manager User Manual

Page 242: Tab completion, Command shortcuts

background image

new cert “new cert request”
is treated as three separate arguments:

new

cert

new cert request

Escaping characters using backslash

You can include a quote character (“ or ‘) within an argument by putting a backslash (\) in front of

it. Thus, the command
new cert ‘new cert \‘request’
is treated as three separate arguments:

new

cert

new cert ‘request

Similarly
new cert newcert\“request
is treated as three separate arguments:

new

cert

newcert“request

The backslash character can also be used to escape itself. Thus, the string “\\” is treated as just a single

backslash character. Except for the cases when it appears before a single quote (‘), double quote (“), or

a backslash (\), the backslash character behaves normally. Thus the command
new cert “new cert \\reques\t”
is treated as three separate arguments:

new

cert

new cert \reques\t

Tab completion

The tab completion feature allows you to type part of a command and use the tab key to fill in the

remainder. If the command is unambiguous, the CLI will fill in the rest of the command up until the next

point of ambiguity. For example, if you type sh, the CLI will complete the word show, as this is the only

possible ending to that word.
Because the majority of commands include multiple words, you will most likely type the beginning of

one word, press tab to complete the word, start another word, and press tab again. Tab completion is

available as long as the CLI knows you can only be referring to one word or command.
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.

242

Using the Command Line Interface