Skip to main content

history command

This command displays the last eight commands that were entered, allowing the user to choose and re-enter one of these commands.

You choose the command to re-enter from the displayed list by typing an exclamation point (!) followed immediately by the numeric designation the command is assigned in the list. You can also recall one of the past eight previously entered commands using the up-arrow and down-arrow keys.

If command syntax is not correctly entered, or if a command fails to run, an error message is returned. See Common errors for a list of error messages that apply to all commands or history command errors for a list of error messages that are specific to the history command.

Table 1. history command.

The command table is a multi-row, four-column table where each row describes a CMM CLI command option: column one lists command function, column two provides a detailed command description, column three shows command-option syntax, and column four lists valid command targets.

FunctionWhat it doesCommandTarget (see paths in Command targets)
Command historyDisplays the last eight commands that were entered.history Any installed device.
Re-enter previous command using numeric designationRe-enters a numerically-specified command from the command history.! x

where x is the number of the command (0 - 7) to re-enter from the command history list.

Any installed device.
Example: To display a list of the last eight commands entered, while the primary CMM in bay 1 is set as the default command environment, at the system:mm[1]> prompt, type
history
To re-enter the command designated by "2" in the command history, type
!2

The following example shows the information that is returned from these two commands:

system:mm[1]> history
0 dns
1 dns -on
2 dns
3 dns -i1 192.168.70.29
4 dns
5 dns -i1 192.168.70.29 -on
6 dns
7 history
system:mm[1]> !2
Enabled
-i1 192.168.70.29
-i2 0.0.0.0
-i3 0.0.0.0
system:mm[1]>