jgetpar / jtool getpar
You can use jgetpar
to obtain Job Server configuration parameter values from within OS processes.
If you have run jtool install
, you can run it with the command jgetpar
. You can also run it with the command jtool getpar
.
Note: This tool cannot be used outside of job context. The -j
or -job-context
parameter is implied.
This command allows OS processes that run on a Platform Agent to retrieve configuration parameters that the Job Server has sent to the Platform Agent. These are different from the parameters that the Job Definition has specified. Job Definition parameters are always transmitted to the process using normal variables for the Definition Type.
Note: For installation instructions, see jtool
.
Syntax
jgetpar [-h|-?|-help] [-l <loglevel>] [-f <logfile>] -j|-job-context <parameter>
Argument | Description |
---|---|
-l <loglevel> |
Sets the log level. |
-f <logfile> |
Logs to a file instead of stdout or stderr . |
-j, -job-context | Gets the environment from the Job context. |
<parameter>
|
The parameter name. |
Example
The following Unix shell example shows how to determine the name of the Job Server.
echo This OS Process is running for ProcessServer `jtool getpar ProcessServer`