CLI Services
Using the CLI
page 5-14
OmniSwitch 6600 Family Switch Management Guide
April 2006
You can recall commands shown in the history list by using the exclamation point character (
) also called
“bang”. To recall the command shown in the history list at number 4, enter
!4
(bang, 4). The CLI will
respond by printing the number four command at the prompt. Using the history list of commands above,
the following would display:
-> !4
-> show temp
You can recall the last command in the history list by issuing the
(bang bang) syntax. The CLI will
respond by printing the last command in the history list (
) at the prompt as shown here.
-> !!
-> show history
Note.
When you use
!n
or
!!
to recall a command in the history list, you must press the Enter key to
execute the command.
You can configure the number of history commands saved by the switch for display by the show history
command. The range for the
value is 1 to 30. To view the history parameters, use the
parameters
command.
-> history size 30
-> show history parameters
History size: 30
CurrentSize: 10
Index Range: 1-10
The values in this display are defined here:
•
History Size: The number of commands the switch will save for display by the
command.
•
Current Size: The number of commands currently saved by the switch, ready for display by the
command.
•
Index Range: This value indicates the index range of the commands for this CLI session currently
stored in the history buffer.
In the above example, the switch is set to display 30 commands. However, when the
show history
parameters
command was issued, only ten commands had yet been issued. Since only ten commands had
been issued during the current login session, the index range shows 1 to 10. This is because the commands
in the buffer are the first through the tenth commands issued during the current login session.
Note.
The
feature described on
works within the CLI history buffer.