Parallels Pro Control Panel offers Command Line Interface scripts for automating some of the tasks you perform as an ISP or Server Administrator. Most of these scripts reside in the directory /usr/local/bin
and some in /usr/sbin
. Use any Telnet or SSH client to access the server running Parallels Pro and execute these scripts.
The command line is composed of PERL programs and modules. The arguments for a script are passed in an encoded format by the interface to avoid security problems with special shell escapes. As a rule the interface fills in defaults and the command line tool checks all the arguments it receives.
The error messages go to STDERR and the output goes to STDOUT. If the command fails, it exits with code 1. If there are error messages on STDERR and the exit code is 0, it means that the operation succeeded, but some problems were encountered.
Functions that add information try to delete all the changes they made if an error occurs (so they either totally succeed with no warning messages, or fail). Functions that delete information try to push through even if some errors (other than invalid parameters or domain not found in the configuration file or some other major problem in the very beginning) occur.
These operations can succeed and still give warnings. The operations that change information behave somewhat similarly to the ones that delete them.
To see the syntax for any command, type the following at the command line.
<script name> --help