+

Search Tips | Advanced Search

Configure MFT monitor tasks to start commands and scripts

Resource monitors are not limited to performing file transfers as their associated task. We can also configure the monitor to call other commands from the monitoring agent, including executable programs, Ant scripts or JCL jobs. To call commands, edit the monitor task definition XML to include one or more command elements with corresponding command call parameters, such as arguments and properties.


About this task

The file path to the executable program, Ant script, or JCL job that we want the monitoring agent to call must be included in the commandPath of the monitoring agent. For information about the command path property, see commandPath MFT property.

We can create the task definition XML document in one of the following ways:

  • Create the task definition XML document manually according to the FileTransfer.xsd schema.
  • Use a generated XML document as the basis for the task definition.

Whether we want a transfer task or a command task, the task definition must start with a <request> root element. The child element of <request> must be either <managedTransfer> or <managedCall>. You would typically choose <managedCall> when there is a single command or script to run, and <managedTransfer> if we want the task to include a file transfer and optionally up to four command calls.


Procedure

Parent topic: Monitor MFT resources

Last updated: 2020-10-04