User guide

Using the CLI Command Entry Rules and Syntax
OmniSwitch AOS Release 7 Switch Management Guide March 2015 page 5-3
A configuration file can be viewed or edited offline using a standard text editor. It can then be uploaded
and applied to additional switches in the network. This allows you to easily clone switch configurations.
This ability to store comprehensive network information in a single text file facilitates troubleshooting,
testing, and overall network reliability.
See Chapter 6, “Working With Configuration Files,” for detailed information about configuration files.
Command Entry Rules and Syntax
When you start a session on the switch, you can execute CLI commands as soon as you are logged in. The
following rules apply:
Enter only one command per line.
Passwords are case sensitive.
Commands are not case sensitive. The switch accepts commands entered in upper case, lower case or a
combination of both.
Press Enter to complete each command line entry.
To use spaces within a user-defined text string, you must enclose the entry in quotation marks (“ ”).
If you receive a syntax error (i.e., ERROR: Invalid entry:), double-check your command as written and
re-enter it exactly as described in the OmniSwitch AOS Release 7 CLI Reference Guide. Be sure to
include all syntax option parameters.
To exit the CLI, type exit and press Enter.
AOS Release 7 uses the Bash shell for CLI input. This could result in certain special characters being
interpreted by Bash instead of being applied in AOS. For example, the '$' when interpreted by Bash
causes the next characters to be interpreted as a variable or command line argument. If using special
Bash characters (i.e. ‘$’ or ‘!’) in the CLI they should be enclosed in single quotes.
Text Conventions
The following table contains text conventions and usage guidelines for CLI commands as they are
documented in this manual.
bold text Indicates basic command and keyword syntax.
Example: show snmp station
“ ”
(Quotation Marks) Used to enclose text strings that contain spaces
Example: vlan 2 name “new test vlan”
‘ ‘ (Single Quotation Marks) Used to enclose text strings that contain special Bash characters.
Example: system name ‘system$name’