Alcatel Carrier Internetworking Solutions omniswitch Switch User Manual


 
CLI Services Using the CLI
page 5-14 OmniSwitch 6600 Family Switch Management Guide March 2005
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 (show history) 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 history size value is 1 to 30. To view the history parameters, use the show
history 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 show history
command.
Current Size: The number of commands currently saved by the switch, ready for display by the show
history 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 Partial Keyword Completion feature described on page 5-5 works within the CLI history buffer.