Skip to end of metadata
Go to start of metadata

We assume that there is a crontab with the following content:

We assume that this file is located in /tmp/my_crontab.

The migration has two steps:

Step 1: Calling ./bin/cronconverter.sh

In the first step you call ./bin/cronconverter.sh.
This creates an xml file with all jobs.

This script is used as follows:

You can create Standalone-Jobs or Order-Jobs including a Job Chain and an Order for each cron job.
Please create a target folder for the conversion (e.g. ./cron) and call the converter.

1. Standalone-Jobs

2. Order Jobs with Job Chain and Order (recommended)

This creates the file cron/cronconvert_result.xml that contains all Jobs, Job Chains and Orders for further transformation (see step 2).

Step 2: Calling ./config/xml2live.xsl

This call creates a directory ./cron/live/GlobalCollect/ that contains the JobScheduler objects (Jobs, Job Chains, Orders).
The folder has subdirectories corresponding to the paths of the cron jobs.
In our example you should get

  • ./cron/live/GlobalCollect/path_to_file/file.sh.job.xml
    when you have called the cronconverter without -createJobChains or otherwise
  • ./cron/live/GlobalCollect/path_to_file/file.sh.job.xml
  • ./cron/live/GlobalCollect/path_to_file/file.sh.job_chain.xml
  • ./cron/live/GlobalCollect/path_to_file/file.sh,file_sh.order.xml

with the following content:

./cron/live/GlobalCollect/path_to_file/file.sh.job.xml (Standalone-Job)

 

./cron/live/GlobalCollect/path_to_file/file.sh.job.xml (Order Job)

 

./cron/live/GlobalCollect/path_to_file/file.sh.job_chain.xml

 

./cron/live/GlobalCollect/path_to_file/file.sh,file_sh.order.xml

Now you can copy the folder content of ./cron/live/GlobalCollect/* to ./config/live/.

Open JOC and you see the new objects.