Net Optics Director Switch User Manual


 
Director
21
Using the CLI Command History Buffer
You can save a lot of typing by using the command history buffer maintained by the CLI. The up- and down-arrow
keys scroll forward and backward through the history buffer. To execute a command again, simply scroll to that com-
mand and press enter. Alternately, you can scroll to a command and then edit it in-line before executing it. You can
see a history of all the buffered commands by entering the history command. Any command in the history buffer can
be accessed directly by entering ![#] where [#] is the number of the command in the buffer. Operation of the command
history buffer is illustrated in the following example.
Net Optics> show
show name - show 'running', 'factory', 'default', or le 'name'
Net Optics> list
Current cong le(s):
test-1
test-7
Net Optics> help ping
ping ipaddr - ping 'ipaddr'
Net Optics> sysip show
Current Sysip Info:
IP addr: 10.60.4.178
IP mask: 255.0.0.0
Gateway: 10.0.0.1
Net Optics> history
1: show
2: list
3: help ping
4: sysip show
Net Optics> !3
Net Optics> help ping
ping ipaddr - ping 'ipaddr'
Net Optics>
CLI command history bufferFigure 17: