Command Entry Rules and Syntax
Using "Show" Commands
The CLI contains show commands that allow you to view configuration and switch status on your console
screen. The show syntax is used with other command keywords to display information pertaining to those
keywords.
For example, the show vlan command displays a table of all VLANs currently configured, along with
pertinent information about each VLAN. Different forms of the show vlan command can be used to
display different subsets of VLAN information. For example the show vlan rules command displays all
rules defined for a VLAN.
Using the "No" Form
The OmniSwitch CLI Reference Guide defines all CLI commands and explains their syntax. Whenever a
command has a "no" form, it is described on the same page as the original command. The "no" form of a
command will mean one of the following:
•
It can remove the configuration created by a command. For example, you create a VLAN with the vlan
command, and you delete a VLAN with the no vlan command.
Partial Keyword Completion
The CLI has a partial keyword recognition feature that allows the switch to recognize partial keywords to
CLI command syntax. Instead of typing the entire keyword, you may type only as many characters as is
necessary to uniquely identify the keyword, then press the Tab key. The CLI will complete the keyword
and place the cursor at the end of the keyword.
When you press Tab to complete a command keyword, one of four things can happen:
•
You enter enough characters (prior to Tab) to uniquely identify the command keyword.
In this case, pressing Tab will cause the CLI to complete the keyword and place a space followed by the
cursor at the end of the completed keyword.
•
You do not enter enough characters (prior to Tab) to uniquely identify the command keyword.
In this case pressing Tab will list all of the possible parameters. .
•
You enter characters that do not belong to a keyword that can be used in this instance.
In this case, pressing Tab will have no effect.
•
You enter enough characters (prior to Tab) to uniquely identify a group of keywords such that all
keywords in the group share a common prefix.
In this case, pressing Tab will cause the CLI to complete the common prefix and place the cursor at the
end of the prefix. Note that in this case, no space is placed at the end of the keyword.
page 4-4
OmniSwitch AOS Release 7 Switch Management Guide
Using the CLI
March 2011