Using Command History; Accessing History Commands; Configuring The History Buffer Size - H3C S5500-HI Series Fundamentals Configuration Manual

Hide thumbs Also See for S5500-HI Series:
Table of Contents

Advertisement

Error information
% 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. You can access
these commands and execute them again.

Accessing history commands

Follow a step below to access history commands:
To do...
Display history commands
Display the previous history
command
Display the next history
command
NOTE:
You can use arrow keys to access history commands in Windows 200X and XP Terminal or Telnet.
However, in Windows 9X HyperTerminal, you need to use Ctrl+P or Ctrl+N, because they are defined
differently and the up and down arrow keys are invalid.
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 incomplete.
If you execute the same command repeatedly, the switch saves the earliest record. However, if you
execute the same command in different formats, the system saves them as different commands. For
example, if you execute the display cu command 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 separate 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 the history-command max-size command. (For
more information about the history-command max-size command, see Fundamentals Command
Reference.

Configuring the history buffer size

Follow these steps to configure the history buffer size:
Cause
Incomplete command
Ambiguous command
Too many parameters
Wrong parameters
Use the key/command...
display history-command [ |
{ begin | exclude | include }
regular-expression ]
Up arrow key or Ctrl+P
Down arrow key or Ctrl+N
9
Result
Displays valid history commands you
used
Displays the previous history command, if
any
Displays the next history command, if any

Advertisement

Table of Contents
loading

Table of Contents