System information

Execution Modes
304 AlterPath OnBoard Administrator’s Guide
Command Line Mode
Command line mode refers to when the cycli utility is invoked on the Linux
command line with options, commands, and parameters and values.
The cycli utility performs the specified commands, displays any values
requested by a command (such as the “get” command), and returns the shell
prompt. To commit the changes made in command line mode, make sure to
use the -C option as part of the command line. See “Entering a Command in
Command Mode” on page 307.
When invoked without commands, cycli enters interactive mode; see
Interactive Mode.” When the cycli utility is invoked the -f file option, or it
is invoked from a script, the commands are executed in batch mode from the
specified file or script. See “Batch Mode” on page 304.
Interactive Mode
Entered by invoking cycli on the command line. The cli> prompt
appears, and the administrator performs configuration by entering commands
followed by parameters followed by parameter arguments at the cli>
prompt. The cycli utility waits for new commands until the user enters the
exit command. See “Entering a Command in Interactive Mode” on page
307.
Batch Mode
Refers to invoking cycli commands from a file as follows:
cycli commands can be saved in a plain text file and executed in batch
mode by invoking the cycli utility with the -f file option.
cycli commands can be used in any kind of shell script:
•#!/usr/bin/cycli can he invoked at the top of a shell script if the
script contains only cycli commands.
Any type of shell can be used to run cycli commands along with
other commands.
See “Entering a Command in Interactive Mode” on page 307.