To customize the RunAJob properties, copy the template files, remove _default from the file names, and then configure the properties. Alternatively, you can update existing copied files if you already have them. Use the template files that are included with the utility as a reference.
Login properties
Specify Informatica Intelligent Cloud Services login credentials in the restenv.properties file or include the login parameters as arguments in a task command.
Use login credentials for a native Informatica Intelligent Cloud Services user account. You can't use a SAML user account for the RunAJob utility.
Include the following parameters in the restenv.properties file or in task commands:
Parameter
Description
baseUrl
Base URL.
Default is https://dm-us.informaticacloud.com/ma.
username
Informatica Intelligent Cloud Services user name.
password
Informatica Intelligent Cloud Services password or encrypted password string.
You can encrypt your login password before you specify it in the restenv.properties file or a task command.
1Optionally, specify a custom password for the keystore that stores the encryption key. Use the shell script to set the variable that specifies the keystore password.
aIf you're using a Linux machine, copy the template file set_cli_vars_default.sh and rename it to set_cli_vars.sh. If you're using a Windows machine, copy the template file set_cli_vars_default.bat and rename it to set_cli_vars.bat.
bEdit the file to specify your keystore password in the following format: set RUNAJOB_KEYSTORE_PASSWORD=<password>
If you don't specify a password, Informatica Intelligent Cloud Services uses the default keystore password.
2To encrypt your login password, run one of the following commands:
- ./cli.sh encryptText -t <password>
- ./cli.sh encryptText -text <password>
3In the restenv.properties file, set the password to the encrypted string.
4Set the use.encryption property to true.
The following example shows the restenv.properties file with an encrypted password and the use.encryption property set to true:
Specify the frequency at which the RunAJob utility polls for status in the restenv.properties file.
You can use the following parameters:
Parameter
Description
ACTIVITYMONITORWAIT
The amount of time the utility waits before retrying if an internal exception occurs, such as a login failure or network problem.
Default is 5000 milliseconds.
TOTALWAIT
The maximum amount of time the utility waits for a job to complete before polling the activity monitor and activity log again for status.
Default is 5000 milliseconds.
RETRYCOUNT
The number of times the utility polls for status. This parameter is used for polling the activity monitor and activity log for job status and for internal exceptions such as login failure or network problems.
Default is 6.
Note: Informatica Intelligent Cloud Services adds 10 seconds between each API call to prevent server issues.
When configuring the restenv.properties file for polling job status, consider the values you set for TOTALWAIT in conjunction with RETRYCOUNT, keeping in mind the amount of time you expect a job to run.
For example, if you expect a job to run for approximately 25 minutes, you might want to set the parameters as follows:
TOTALWAIT=60000 RETRYCOUNT=30
With these settings, the utility polls for the job status every 60 seconds up to 30 times with 10 seconds between each retry, which totals 35 minutes. If the job executes more than 35 minutes, the command will exit with return code 6 (which means the job is running) and the job will continue to run in Informatica Intelligent Cloud Services.
When configuring the restenv.properties file for internal exceptions, consider the values you set for ACTIVITYMONITOR in conjunction with RETRYCOUNT.
For example, you might set these parameters as follows:
ACTIVITYMONITORWAIT=5000 RETRYCOUNT=30
With these settings, if a user login fails, the utility retries the login every five seconds up to five times with 10 seconds between each retry.
Log file detail
You can set the level of job detail to include in log files in the log4j2.properties file.
By default, the level of detail is set to INFO. At this level, log files include basic information such as user ID, job ID, and the time that the task was initiated. If you want log files to include job details for debugging purposes, you can change the level of detail to DEBUG. Or, for fine-grained details, you can change the level to TRACE.
To set the level of detail, change the value of the following parameter in the log4j2.properties file: