Alcatel Carrier Internetworking Solutions omniswitch Benutzerhandbuch

Seite von 260
CLI Services
Using the CLI
page 5-10
OmniSwitch 6600 Family Switch Management Guide
March 2005
Recalling the Previous Command Line
To recall the last command executed by the switch, press either the Up Arrow key or the 
 (bang, bang) 
command at the prompt and the previous command will display on your screen. You can execute the 
command again by pressing Enter or you can edit it first by deleting or inserting characters. 
In the following example, the 
 command is used to list the contents of the switch’s /flash/switch 
directory.
->ls
Listing Directory /flash/switch:
drw      2048 Jan  1  1980 ./
drw      2048 Jan  3 19:23 ../
-rw       308 Jan  1  1980 banner_default.txt
9850880 bytes free 
->
To enter this same command again, use the Up Arrow key. The 
 command appears at the prompt. To 
issue the 
 command, press Enter.
-> ls
The Up Arrow key and the 
 (bang, bang) command will display the last command line entered even if the 
command was rejected by the switch. 
For more details on using th
 command, refer to 
Inserting Characters
To insert a character between characters already typed, use the Left and Right Arrow keys to place the 
cursor into position, then type the new character. Once the command is correct, execute it by pressing 
Enter. In the following example, the user enters the wrong syntax to execute th
 
command. The result is an error message.
-> show micrcode
ERROR: flash: no such directory 
To correct the syntax without retyping the entire command line, use the 
 command to recall the previous 
syntax. Then, use the Left Arrow key to position the cursor between the “r” and the “c” characters. To 
insert the missing character, type “o”. 
-> !!
-> show microcode
To execute the corrected command, press Enter.