< Home

Displaying History Commands

The device automatically stores history commands entered by a user. To enter a command that has been executed, you can use this function to call up the history command.

By default, the system saves 10 history commands for each user. Run the history-command max-size size-value command to reset the number of history commands that can be saved in a specified user interface view. The maximum number is 256.

If the value specified in the history-command max-size size-value command is large, it may take a long time to obtain a required history command. Therefore, a large value is not recommended.

Table 1 shows operations on history commands.

Table 1 Accessing history commands

Action

Command or Key

Result

Display history commands.

display history-command [ all-users ]

  • The history commands entered by the current users are displayed when all-users is not selected.

  • The history commands entered by all users are displayed when all-users is selected. (all-users can be selected only by users of level 3 or higher.)

Display the earlier history command.

Up arrow key ↑ or Ctrl+P

An earlier history command is displayed. If the current command is the first command, an alarm is generated when you attempt to display the earlier history command.

Display the later history command.

Down arrow key ↓ or Ctrl+N

A later history command is displayed. If the current command is the latest command, no output is displayed and an alarm is generated when you attempt to display the later history command.

You cannot access history commands using the Up arrow key ↑ in HyperTerminal Windows 9X. The Up arrow key ↑ has a different function in HyperTerminal Windows 9X and needs to be replaced by the shortcut key Ctrl+P.

When using history commands, note the following:

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic