Hitachi

Job Management Partner 1 Version 10 Job Management Partner 1/Automatic Operation Service Template Developer's Guide


4.3.16 Specifying Execution Directory

In the Execution Directory field, specify the absolute path of the folder in which to execute the script or command. Only use characters that are supported in command lines on the JP1/AO server and the operation target device.

Do not enclose the path of the execution directory in double or single-quotation marks, even if the path contains spaces. Plug-in execution will fail if the path is enclosed in quotation marks. The execution directory must be created in advance on the operation target host. If you do not create the execution directory in advance, plug-in execution might fail.

The behavior of the system depends on the option selected for Execution Mode, as described below.

When Script is specified for Execution Mode

JP1/AO copies the script to a uniquely-named temporary subfolder of the folder specified in Execution Directory. The script is executed in this temporary folder. The script and temporary folder are deleted when the script has finished executing.

When Command is specified for Execution Mode

You can specify the execution directory in the Execution Directoryfield, and in the property file (config_user.properties). The execution directory is set in the following order of priority:

When the operation target host is running Windows

  1. The value specified in the Execution Directory field

  2. The value specified for the plugin.remoteCommand.executionDirectory.wmi property in the property file (config_user.properties)

  3. The value of the %TEMP% environment variable on the operation target host

When the operation target host is running UNIX

  1. The value specified in the Execution Directory field

  2. The value specified for the plugin.remoteCommand.executionDirectory.ssh property in the property file (config_user.properties)

  3. /tmp