Command Entry Rules and Syntax
Using the CLI
page 5-4
OmniSwitch 6600 Family Switch Management Guide
April 2006
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.
•
It can reset a configuration value to its default. For example, you configure the time interval that the
switch will use to remove a multicast stream from a port with the
ip multicast leave-timeout
command. You set the interval back to its default value with the
ip multicast no leave-timeout
command.
Using “Alias” Commands
You may define substitute text for the switch’s CLI commands by using the
command. There are two
main reasons for defining aliases.
•
You can eliminate excess typing by reducing the number of characters required for a command.
To reduce the number of characters required to use the
group
term in a CLI command, you can change the
syntax to
gp
as follows:
-> alias gp group
•
You can change unfamiliar command words into familiar words or patterns.
If you prefer the term “privilege” to the term “attribute” with reference to a login account’s read-write
capabilities, you can change the CLI word from
attrib
to
privilege
by using the following command.
-> alias privilege attrib
After an alias has been defined, both the alias and the original CLI term will be supported as valid CLI
terms. For example if
privilege
is defined as an alias as shown above, both
privilege
and
attrib
will work
as CLI commands and both words are shown when you use the CLI help feature.
You can save command aliases for the current user account by executing the
command.
If the aliases are not saved they will be stored until the user session ends. In this case, once you log off the
switch, substitute terms configured with the
command are destroyed.
To display aliases, use the
command. To set all alias values back to their factory defaults, use