User`s guide
Using the CLI Utility
536
AlterPath OnSite Administrator’s and User’s Guide
The following screen example shows entering the CLI command with the -s
option on the command line in command mode. When the command
completes, the shell prompt returns.
Interactive Mode
Interactive mode is entered by invoking CLI on the command line without
commands or other arguments. The cli> prompt appears, and the
administrator performs configuration by entering commands followed by
parameters followed by parameter arguments at the cli> prompt. The CLI
utility waits for new commands until the user enters the quit command.
The following screen example shows invoking the CLI utility, entering a
command with the parameters needed to add a new user, saving the newly
added user into the configuration files in interactive mode.
Batch Mode
Batch mode is used when CLI commands are run from a file as described in
the following bulleted list:
• CLI commands can be saved in a plain text file and executed in batch
mode by invoking the CLI utility with the -f file option.
• CLI commands can be used in any kind of shell script:
•#!/bin/CLI can be invoked at the top of a shell script if the script
contains only CLI commands.
[admin@OnSite /]# CLI -s config security adduser username \
username
Checking the configuration file list...
Compressing configuration files into /tmp/
saving_config.tar.gz ... done.
Saving configuration files to flash ... done
[admin@OnSite /]#
[root@OnSite /]# CLI
cli> config security adduser username username
cli> config savetoflash