...
Universal Controller supports the following CLI functions for Imports and Exports, which are listed alphabetically on this page.
- Export Bulk
- Export Trigger
- Import Bulk
- Import Trigger
Syntax, parameters, and examples for each function are provided.
...
Description | Performs a bulk export of all records in your Controller database. The location of the export is specified by the Export Path (opswise.export.path ) Universal Controller system property. The default directory, where $CATALINA_HOME is the base Tomcat installation directory, is either: Html bobswift | <ul>
<li> <code>$CATALINAexport</code>
<li> <code>$CATALINAexport $CATALINA_HOME\opswise_ export</code>
</ul>Each export creates a sub-directory under the specified path in the following format:
WWW_MMM_DD_HH_MM_SS_TZ_YYYY-BULK_EXPORT Html bobswift | <ul>
<li> <code>WWW</code>: Weekday
<li> <code>MMM</code>: Month
<li> <code>DD</code>: Day
<li> <code>HH</code>: Hour
<li> <code>MM</code>: Minute
<li> <code>SS</code>: Second
<li> <code>TZ</code>: Time Zone
<li> <code>YYYY</code>: 4-Digit Year
</ul>- Month
DD : DayHH : HourMM : MinuteSS : SecondTZ : Time ZoneYYYY : 4-Digit Year
Note |
---|
| Export Bulk performs a similar function as the Bulk Export Server Operation, but not Bulk Export with Versions. |
|
---|
Syntax | uagcmd ops-export-bulk global parameters
|
---|
Example |
Panel |
---|
Html bobswift | <pre>uagcmduagcmd ops-export-bulk -c config.cfg |
|
---|
Anchor |
---|
| ops-export trigger |
---|
| ops-export trigger |
---|
|
Export Trigger
Anchor |
---|
| export trigger |
---|
| export trigger |
---|
|
Description | Performs an export of the specified trigger(s) and all the associated record(s). For example, if you export one trigger, the CLI also exports the calendar used in the trigger and all tasks launched by the trigger. The CLI creates a separate XML file for each record type and generates the output directory and file names using a date and timestamp, plus an internal record identifier generated by the Controller. All exported XML definition files will be saved to a timestamped directory under the path defined by the Export Path Universal Controller system property. The following illustrates a sample output directory and exported data: |
---|
Syntax | uagcmd ops-export-trigger global parameters trigger-name=name [trigger-type=type]
|
---|
Parameters | Html bobswift | <ul>
<li> <code>triggerdown the selection to a specific type of trigger. Allowable values are (not case sensitive): <b>cron</b>, <b>time</b>, <b>file_trigger</b>, <b>temporary</b>, <b>task_monitor</b>, <b>manual</b>, <b>application_monitor</b>. </ul></code> <br>Required; Name of one or more triggers. Wildcards Html bobswift | are supported.
<li> <code>trigger-type=</code> <br>Optional; If you used a wildcard in <b>trigger-name</b>, you can use <b>trigger-type</b> to narrow Required; Name of one or more triggers. Wildcards are supported.trigger-type= Optional; If you used a wildcard in trigger-name, you can use trigger-type to narrow down the selection to a specific type of trigger. Allowable values are (not case sensitive): cron, time, file_trigger, temporary, task_monitor, manual, application_monitor.
|
---|
Example | This example exports all triggers whose name begins with SF: Panel |
---|
Html bobswift | <pre>uagcmduagcmd ops-export-trigger -c config.cfg Html bobswift |
---|
trigger-name=SF* </pre> |
|
---|
Anchor |
---|
| ops-import-bulk |
---|
| ops-import-bulk |
---|
|
Import Bulk
Description | Performs a bulk import of records into your Controller database. The location from where records are imported is specified by the System Default CLI Bulk Import Path (opswise.bulk_import.path.default ) Universal Controller system property. The default directory, where $CATALINA_HOME is the base Tomcat installation directory, is either: Html bobswift | <ul>
<li> <code>$CATALINAimport</code>
<li> <code>$CATALINAimport $CATALINA_HOME\opswise_ import</code>
</ul> Note |
---|
| The data being imported must have been exported using the Export Bulk command. |
|
---|
Syntax | uagcmd ops-import-bulk global parameters
|
---|
Example |
Panel |
---|
Html bobswift | <pre>uagcmduagcmd ops-import-bulk -c config.cfg html-bobswift | </pre> |
|
---|
Anchor |
---|
| ops-import-trigger |
---|
| ops-import-trigger |
---|
|
Import Trigger
Description | Imports into your Universal Controller database the trigger records in the path specified in the import-file= parameter. |
---|
Syntax | uagcmd ops-import-trigger global parameters import-file=file
|
---|
Parameter | |
---|
Example |
Panel |
---|
Html bobswift | <pre>uagcmduagcmd ops-import-trigger - -c config.cfg Html bobswift |
---|
import-file=ops\ import</pre>import |
|
---|