The CLI automatically saves the history commands input by the user. You can invoke and repeatedly run the saved history command at any time.
By default, the system saves 10 history commands at most for each user. The operations are as shown in Table 1.
Action |
Key or Command |
Result |
|---|---|---|
Display the history commands. |
Display the history commands entered by users. |
|
Access the last history command. |
Up cursor key or <Ctrl+P> |
Display the last history command if there is an earlier history command. Otherwise, an alarm is generated. |
Access the next history command. |
Down cursor key or <Ctrl+N> |
Display the next history command if there is a later history command. Otherwise, the command is cleared and an alarm is generated. |
When you use the history commands, note the following:
The saved history commands are the same as that those entered by users. For example, if the user enters an incomplete command, the saved command also is incomplete.
If the user runs the same command several times, the earliest command is saved. If the command is entered in different forms, they are considered as different commands.
If the user logs in to the FW from the console port, runs a command which is longer than 80 characters, and then uses down cursor key ↓ and up cursor key ↑ or Ctrl_N and Ctrl_P to access and run this command again, the command output may be in disorder. In such cases, you need to manually enter the command to be executed. Do not use down cursor key ↓ and up cursor key ↑ or Ctrl_N and Ctrl_P.