output such as logs. If you have entered nothing, the system does not display the command-line prompt after the output.

To enable redisplaying entered-but-not-submitted commands:

Step

 

Command

Remarks

1.

Enter system view.

system-view

N/A

 

 

 

 

2.

Enable redisplaying

 

By default, this feature is disabled.

 

For more information about this command,

 

entered-but-not-submitted

info-center synchronous

 

commands.

 

see System Management and Maintenance

Command Reference.

Understanding command-line error messages

When you press Enter to submit a command, the command line interpreter first examines the command syntax. If the command passes syntax check, the CLI executes the command. If not, the CLI displays an error message.

Table 25 Common command-line error messages

Error message

Cause

% Unrecognized command found at '^' position.

The keyword in the marked position is invalid.

 

 

% Incomplete command found at '^' position.

One or more required keywords or arguments are

missing.

 

 

 

% Ambiguous command found at '^' position.

The entered character sequence matches more than one

command.

 

 

 

Too many parameters

The entered character sequence contains excessive

keywords or arguments.

 

 

 

% Wrong parameter found at '^' position.

The argument in the marked position is invalid.

 

 

Using the command history function

The system can automatically save successfully executed commands to the command history buffer for the current user interface. You can view them and execute them again, or set the maximum number of commands that can be saved in the command history buffer.

A command is saved to the command history buffer in the exact format as it was entered. For example, if you enter an incomplete command, the command saved in the command history buffer is also incomplete; if you enter a command by using a command keyword alias, the command saved in the command history buffer also uses the alias.

If you enter a command in the same format multiple times in succession, the system buffers the command only once. If you enter a command multiple times in different formats, the system buffers each command format. For example, display cu and display current-configuration are buffered as two entries but successive repetitions of display cu create only one entry in the buffer.

By default, the command history buffer can save up to 10 commands for each user. To set the capacity of the command history buffer for the current user interface, use the history-command max-size command.

128