
144 MergePoint 5224/5240 Service Processor Manager Installer and Administrator Guide
When invoked without commands, cli enters interactive mode; see Interactive mode. When the cli
utility is invoked with the
-f <file> option or is invoked from a script, the commands are executed
in batch mode from the specified file or script.
Interactive mode
Entered by invoking cli 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 cli utility waits for new commands until the user enters the quit
or exit command.
Batch mode
Refers to invoking cli commands from a file as follows:
• 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:
• #!/usr/bin/cli can be invoked at the top of a shell script if the script contains only
cli commands.
• Any type of shell can be used to run cli commands along with other commands.
cli Options
Administrators can invoke the cli command with a number of different options shown in the
following table.
Table 7.1: cli Utility Options
Option Description
-1 When entered either in command line or in batch mode with commands that act on a
single parameter, speeds up response time.
-C Commits changes when quitting.
-f <file> Reads commands from file. Used for running commands in batch mode.
-F Forces login (terminate an existing configuration session, if any). Used when specifying
commands to run in command line or batch mode.
-h Help. Shows a brief summary of command line options.
-q Quiet mode. Suppresses messages. Useful only when entering interactive mode.
-t <time-out> Sets the idle time-out in minutes. Default is 10 minutes.
-T Disables idle time-out (same as -t 0).
-V Displays the cli version and exits.
Commentaires sur ces manuels