Checking Command Line Errors; Using Command History; Accessing History Commands - HP 5800 Series Configuration Manual

Hide thumbs Also See for 5800 Series:
Table of Contents

Advertisement

Checking command line errors

If a command contains syntax errors, the CLI reports error information.
Table 4 Common command line errors
Error information
% Unrecognized command found at '^' position.
% Incomplete command found at '^' position.
% Ambiguous command found at '^' position.
Too many parameters
% Wrong parameter found at '^' position.

Using command history

The CLI automatically saves the commands recently used in the history command buffer. Access and execute
them again.

Accessing history commands

Task
Display history commands.
Display the previous history
command.
Display the next history command.
NOTE:
Use arrow keys to access history commands in Windows 200X and XP Terminal or Telnet. However, the
up and down arrow keys are invalid in Windows 9X HyperTerminal, because they are defined differently.
Use Ctrl+P or Ctrl+N instead.
The commands saved in the history command buffer are in the same format in which you entered the
commands. If you enter an incomplete command, the command saved in the history command buffer
is also an incomplete one.
If you execute the same command repeatedly, the switch saves only the earliest record. However, if you
execute the same command in different formats, the system saves them as different commands. For
example, if you run display cu repeatedly, the system saves only one command in the history command
buffer. If you execute the command in the format of display cu and display current-configuration
respectively, the system saves them as two commands.
By default, the CLI can save up to 10 commands for each user. To set the capacity of the history
command buffer for the current user interface, use history-command max-size. (For more information
about history-command max-size, see "Logging in to the switch commands."
Command
Result
display history-
Displays valid history commands you used.
command
Up arrow key or
Displays the previous history command, if any.
Ctrl+P
Down arrow key or
Displays the next history command, if any.
Ctrl+N
9
Cause
The command was not found.
Incomplete command
Ambiguous command
Too many parameters
Wrong parameters

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

5820x seriesA5820x seriesA5800 series

Table of Contents