Setting the Environment Variables for the Command Line Session
Open the command line utility for your operating system and set the following environment variables.
-
Set the PS_HOME environment variable to reflect the path of PS_HOME directory.
For example:
D:\>set PS_HOME=D:\PT8.55
-
Set the PS_FILEDIR environment variable to reflect the location of the template file for the current command line session.
For example in Windows:
D:\>set PS_FILEDIR=D:\QEDMO_AUTOCONFIG
In this case, the template file is located in D:\qedmo_autoconfig.
For example in Linux or AIX:
export PS_FILEDIR=/tmp
-
Set the PS_WRITE_ACM_LOG environment variable to specify whether the plugin execution should be logged and whether the status of each plugin should be generated in JSON format while running plugins through command line.
Set the PS_WRITE_ACM_LOG to true to generate logs and JSON output.
For example in Windows:
set PS_WRITE_ACM_LOG=true
For example in Linux or AIX:
export PS_WRITE_ACM_LOG=true
If PS_WRITE_ACM_LOG is set to true, the ACM log file is stored in the PS_FILEDIR location with the name ptem_config.log. Also, the JSON file containing status of each executed plugin is stored in the PS_FILEDIR location with the name <propfilename>_out.json, where <propfilename> is the name of the template file. For example, IB_config.properties_out.json. The property file name is stored in the PTEM_PROP environment variable.
-
Specify the name of the template file for Application Engine program input using the PTEM_PROP environment variable.
For example:
D:\>set PTEM_PROP=IB_TEMPLATE.txt
-
Specify whether to execute, import, or export a template in database using the PTACM_OPTION environment variable.
Valid values:
-
Execute - This option will override the template file given in PTEM_PROP and take the template from database (template name will be provided in the PTACM_TEMPLATE environment variable).
-
Import - this option will import a template file given in PTEM_PROP to template provided in PTACM_TEMPLATE.
-
Export - this option will export the template in PTACM_TEMPLATE to template file given in PTEM_PROP.
For example:
D:\>set PTACM_OPTION=execute
-
-
If the PTACM_OPTION is set, specify the template name using the PTACM_TEMPLATE environment variable.
For example, the template for enabling RTI plug-in is Enable_RTI_Template.txt and the template for enabling the plug-in for deploying insights dashboards is Deploy_dashboards_template.txt.