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 Entry Rules and Syntax<br />

Using the CLI<br />

Using “Show” Commands<br />

The CLI contains show commands that allow you to view configuration and switch status on your console<br />

screen. The show syntax is used with other command keywords to display information pertaining to those<br />

keywords.<br />

For example, the show vlan command displays a table of all VLANs currently configured, along with<br />

pertinent information about each VLAN. Different forms of the show vlan command can be used to<br />

display different subsets of VLAN information. For example the show vlan rules command displays all<br />

rules defined for a VLAN.<br />

Using the “No” Form<br />

The Omni<strong>Switch</strong> <strong>AOS</strong> Release 8 CLI Reference <strong>Guide</strong> defines all CLI commands and explains their<br />

syntax. Whenever a command has a “no” form, it is described on the same page as the original command.<br />

The “no” form of a command will mean one of the following:<br />

• It can remove the configuration created by a command. For example, you create a VLAN with the vlan<br />

command, and you delete a VLAN with the no vlan command.<br />

Partial Keyword Completion<br />

The CLI has a partial keyword recognition feature that allows the switch to recognize partial keywords to<br />

CLI command syntax. Instead of typing the entire keyword, you may type only as many characters as is<br />

necessary to uniquely identify the keyword, then press the Tab key. The CLI will complete the keyword<br />

and place the cursor at the end of the keyword.<br />

When you press Tab to complete a command keyword, one of four things can happen:<br />

• You enter enough characters (prior to Tab) to uniquely identify the command keyword.<br />

In this case, pressing Tab will cause the CLI to complete the keyword and place a space followed by the<br />

cursor at the end of the completed keyword.<br />

• You do not enter enough characters (prior to Tab) to uniquely identify the command keyword.<br />

In this case pressing Tab will list all of the possible parameters. .<br />

• You enter characters that do not belong to a keyword that can be used in this instance.<br />

In this case, pressing Tab will have no effect.<br />

• You enter enough characters (prior to Tab) to uniquely identify a group of keywords such that all<br />

keywords in the group share a common prefix.<br />

In this case, pressing Tab will cause the CLI to complete the common prefix and place the cursor at the<br />

end of the prefix. Note that in this case, no space is placed at the end of the keyword.<br />

Partial Keyword Abbreviation<br />

The CLI has a partial keyword abbreviation feature that allows the switch to recognize partial keywords to<br />

CLI command syntax. Instead of typing the entire keyword, you may type only as many characters as is<br />

necessary to uniquely identify the keyword. For example, ‘show vlan’ can be abbreviated to:<br />

page 4-4 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!