29.04.2019 Views

OS6860(E)_AOS_8.1.1.R01_Switch_Management_Guide

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Command Help<br />

Using the CLI<br />

-> ls<br />

The !! (bang, bang) command will display the last command line entered and automatically run the<br />

command.<br />

Inserting Characters<br />

To insert a character between characters already typed, use the Left and Right Arrow keys to place the<br />

cursor into position, then type the new character. Once the command is correct, execute it by pressing<br />

Enter. In the following example, the user enters the wrong syntax to execute the command. The result is an<br />

error message.<br />

-> show mirocode<br />

ERROR: Invalid entry: "mirocode"<br />

To correct the syntax without retyping the entire command line, use the up arrow to recall the previous<br />

syntax. Then, use the Left Arrow key to edit the command as needed.<br />

-> show microcode<br />

To execute the corrected command, press Enter.<br />

Command History<br />

The history command allows you to view commands you have recently issued to the switch. The switch<br />

has a history buffer that stores the most recently executed commands.<br />

Note. The command history feature differs from the command logging feature in that command logging<br />

stores the most recent commands in a separate command.log file. Also, the command logging feature<br />

includes additional information, such as full command syntax, login user name, entry date and time,<br />

session IP address, and entry results. For more information on command logging, refer to “Logging CLI<br />

Commands and Entry Results” on page 4-7.<br />

You can display the commands in a numbered list by using the history command. The following is a<br />

sample list:<br />

-> history<br />

1 show cmm<br />

2 show fantray<br />

3 show vlan<br />

4 show temperature<br />

5 ip load dvmrp<br />

6 show arp<br />

7 clear arp<br />

8 show ip config<br />

9 ip helper max hops 5<br />

10 show ip interface<br />

11 show vlan<br />

12 history<br />

You can recall commands shown in the history list by using the exclamation point character (!) also called<br />

“bang”. To recall the command shown in the history list at number 4, enter !4 (bang, 4). The CLI will<br />

page 4-6 Omni<strong>Switch</strong> <strong>AOS</strong> Release 8 <strong>Switch</strong> <strong>Management</strong> <strong>Guide</strong> May 2014

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!