Hitachi

JP1 Version 12 JP1/Automatic Operation Service Template Developer's Guide 


6.4.14 Specifying Execution Directory

This section describes how to specify the absolute path to the folder in which scripts or commands are executed. For the execution directory, specify characters that can be used with the commands of the OS on the JP1/AO server and of the OS on the operation target device.

Do not enclose the path to the execution directory by double quotation marks (") or single quotation marks (') even if the path contains a space character. If you enclose the path by quotation marks, execution of the plug-in fails. Also, you must create the execution directory on the operation target host in advance, and if necessary, change the permissions. At least, you need to grant necessary permissions to users who execute plug-ins.

If the OS on the operation target host is Windows, create the execution directory on the same drive with the working folder. If the execution directory is not correctly created in advance, execution of plug-ins might fail.

You can specify the execution directory in Execution Directory, or in the user-specified properties file (config_user.properties) or connection-destination property file (connection-destination-name.properties). The execution directory is set according to the following order of priority:

  1. The value specified in Execution Directory

  2. The value specified for the common.executionDirectory key in the connection-destination property file (connection-destination-name.properties)

  3. The value specified for the plugin.remoteCommand.executionDirectory.wmi key (when the operation target host is running Windows) or the plugin.remoteCommand.executionDirectory.ssh key (when the operation target host is running UNIX) in the user-specified properties file (config_user.properties).

  4. The value of the %TEMP% environment variable (when the operation target host is running Windows) or /tmp (when the operation target host is running UNIX)

Note that the behavior of JP1/AO differs as follows, depending on the value specified for Execution Method.

When Script is specified for Execution Method

A script is copied to the temporary folder that has a unique name and is specified in Execution Directory. The script is executed in the temporary folder. Note that the copied script and temporary folder are deleted after execution of the script finishes.

When CLI Command is specified for Execution Method

The command line is executed by using the directory specified in Execution Directory.