The following commands allow you to export a current command control configuration and import one. Importing a configuration overwirtes any existing rule set; therefore before importing a configuration, you should back up the current configuration (see Section 10.2.2, Backing Up and Restoring a Command Control Configuration).
The export command has the following syntax:
Syntax: ./unifi -n cmdctrl export [options]
If you have not mapped your local account to a Framework Manager user, replace the -n option with -u <username> -p <password> options and specify the name and password of a Framework Manager user who has the rights to perform this task.
Replace [options] with one or more of the following:
|
Options |
Description |
|---|---|
|
-f <arg> |
Specifies where to export the configuration to. Replace <arg> with a filename or a path and filename. |
|
-c |
Specifies that the configuration should be exported in clear text. This option cannot be used with the -p option. |
|
-p <pwd> |
Specifies an encryption password for the file. If a password is specified, the password must be entered when importing the file. This option cannot be used with the -c option. |
The import command has the following syntax:
Linux Syntax: ./unifi -n cmdctrl import [options]
If you have not mapped your local account to a Framework Manager user, replace the -n option with -u <username> -p <password> options and specify the name and password of a Framework Manager user who has the rights to perform this task.
Replace [options] with one or more of the following:
|
Options |
Description |
|---|---|
|
-f <arg> |
Specifies the file to import. Replace <arg> with a filename or a path and filename. |
|
-p <pwd> |
Specifies the password that was used to encrypt the configuration when it was exported. |