Page History
...
- Options
--input-dir
- Specifies the input directory of JS1 *.xml files for scheduling objects. Such files typically are located in the
SCHEDULER_DATA/config/live
folder. If you do not want to run the converter directly on the machine in which the *.xml files are located then you can copy thelive
folder or any sub-folder to a Unix or Windows machine on which to run the converter. The operating system of JobScheduler Master using the *.xml files is independent from the operating system of the converter. - The Converter recursively traverses the input directory.
- Specifies the input directory of JS1 *.xml files for scheduling objects. Such files typically are located in the
--output-dir
- Specifies the output directory to which converted .*json files are written. For a number of *.xml files there is a corresponding *.json file.
- For each sub-directory of the input directory the corresponding sub-directory is created in the output directory.
- On start-up the Converter removes existing files and sub-directories from the output directory.
--report-dir
- The Converter will report to the specified directory by use of a number of .csv files the extent to which the conversion is successful:
parser_summary.csv
: reports the number of objects found in the input directory and sub-directories.parser_analyzer.csv
: includes debugging information.converter_summary.csv
: reports the number converted objects per object type such as workflows and scheduled.converter_warnings.csv
: includes warnings about XML elements that could not be perfectly converted.
- The Converter will report to the specified directory by use of a number of .csv files the extent to which the conversion is successful:
--archive
- Specifies the path to an archive file with the .tar.gz (Unix) or .zip (Windows) extension that will be created by the Converter. Depending on the file extension the related archive format will be used on any OS platform.
- The archive includes the *.json files of the output directory and can be used for later import into JS7, see JS7 - Inventory Export and Import.
- An existing archive file will be overwritten.
--config
- Specifies the location of the Converter Configuration File.. This file is required for the Converter to run. It includes a number of settings that can be adjusted.
...
Code Block | ||||
---|---|---|---|---|
| ||||
./js7_convert_js1.sh \ --input-dir=/var/sos-berlin.com/jobscheduler/config/live \ --output-dir=/tmp/output --report-dir=/tmp/report --archive=/tmp/js7-import.tar.gzzip # reads *.xml files directly from the Master's "live" sub-directory and creates the corresponding directory hierarchy in "/tmp/output"; # report files are written to "/tmp/report", the resulting archive file is written to "/tmp/js7-import.tar.gzzip". |
Windows
Code Block | ||||
---|---|---|---|---|
| ||||
js7_convert_js1.cmd --input-dir=C:\ProgramData\sos-berlin.com\jobscheduler\config\live @rem reads *.xml files from the Master's "live" folder and creates the corresponding directory hierarchy in the "output" sub-directory of the working directory; @rem reports are written to the "reports" sub-directory of the working directory, the resulting "js7_converted.zip" archive file is written to the working directory. |
...
Settings | Default | Explanation | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
agentConfig.forcedControllerId | Forces use of the given ControllerId for all generated agents. | ||||||||||||||||
agentConfig.defaultControllerId | This setting specifies the ControllerId for generated agents if the Master ID in JS1 (process_class.spooler_id ) is empty. | ||||||||||||||||
agentConfig.forcedAgent | Forces use of the given Agent for all converted jobs. Agent definition:
| ||||||||||||||||
agentConfig.defaultAgent |
| Without an Agent being specified the JS1 executes jobs with the Master. In JS7 an Agent has to be used. This setting specifies an Agent that is used for jobs that are executed with a Master in JS1. The syntax for assignments: see | |||||||||||||||
agentConfig.mappings | By default the Converter handles the mapping of Agent Names found in JS1 process classes (
The syntax for mapping includes:
Example:
or
Any number of mappings are specified separated by a semicolon. This setting can be split across a number of lines by use the "\" line continuation character at the end of each line that should be continued. |
...