User`s guide
Miscellaneous Procedures 535
Using the CLI Utility
As shown in the previous example, usage information appears before the
cli> prompt appears.
As shown in the previous screen example, the Cyclades CLI can be entered at
the root prompt. CLI can also be entered at the admin prompt that appears
when an admin user connects to the OnSite from the Web Manager under
Access> Connect to Server. In both cases, CLI is being run in interactive
mode. See the following sections for definitions of the interactive mode and
other execution modes.
Quote strings with spaces using single or double quotes, as shown here:
'"string1 string2”'.
Execution Modes
The CLI utility has the following three execution modes:
• Command line
Command line mode refers to when the CLI utility is invoked on the
Linux command line with options, commands, and parameters and values.
See “Command Line Mode” on page 535.
•Batch
Batch mode refers to when the CLI utility is invoked with the -f file
option, or it is invoked from a script, and the commands are executed
from the specified file or script. See “Batch Mode” on page 536.
• Interactive
When invoked without commands, CLI enters interactive mode; see
Interactive Mode.” See “Interactive Mode” on page 536.
Command Line Mode
In command line mode, when the CLI utility is invoked on the Linux
command line with options, commands, parameters, the utility performs the
specified commands, displays any values requested by any command, and
returns the Linux shell prompt. To commit the changes made in command line
mode, make sure to enter the CLI command again followed by config
savetoflash. See “Saving CLI Changes” on page 540 for more details.