Keyword search: 

Using External Scheduling System to Run FRP Replication Job

4/14/2008 6:08 AM
You can subscribe to this wiki article using an RSS feed reader.

Problem:

 I want to launch an FRP replication job using an external scheduler - for example using UNIX crontab.






Solution:

A command line utility called FrpShell allows users to launch FRP replication jobs using an external scheduling system (e.g. UNIX crontab).

Knowing the job unique ID and an additional FRP identification called connection ID, you can use use FrpShell to launch a job without using FRP Management UI.

By default the command is setup to be use on the machine hosting FRP Management Server. However, very easily you can setup the command to run from a remote system that has no FRP install.

Setup:

The command FrpShell can be found in FRP home directory under subdirectory utils.

In case you want to use the command from a machine that does not have FRP installed (but has a Java runtime), you should copy from that machine the subdirectory utils and subdirectory libĀ with file diasoft_utils.jar only.

You may need to edit file frpshell.sh (UNIX) or frpshell.bat (Windows) to setup the correct IP or FRP Management Server and FRP Admin password.

Usage:

$ frpshell runJobNow CONNECTION_ID JOB_ID

Most probably you know your job by name and not by Ids. The easiest way to learn about the CONNECTION_ID and JOB_ID associated with a specific job is to:
Open FRP configuration file /etc/configuration.xml
Search for the job name.
CONNECTION_ID and JOB_ID should be prior to element .


Usage Example:

$ ./frpshell.sh runJobNow Connection_1101118401337 Job_1101118333648

In order to run this job from an external scheduling system, you would need to configure this system to activate this shell command.
Tags:
Home: WIKI - Knowledge Base Index What's new: Recently changed articles