Configuring sensor properties
In addition to setting sensor properties in the <sast_install_dir>/Core/config/worker.properties file, you can add them to the SCANCENTRAL_VM_OPTS environment variable. A property value set in the SCANCENTRAL_VM_OPTS environment variable overrides any equivalent property set in the worker.properties file. The following example sets the sensor authorization token and the connection timeout between the Controller and a sensor:
<sast_install_dir> is only valid if the user installs the OpenText ScanCentral SAST client in the same directory as the OpenText SAST. Otherwise, this worker.properties file is under the OpenText ScanCentral SAST client installation directory.-
On a Windows system:
set SCANCENTRAL_VM_OPTS=-Dworker_auth_token=<token> ‑Drestapi_connect_timeout=10000 -
On a Linux system:
export SCANCENTRAL_VM_OPTS=-Dworker_auth_token=<token> ‑Drestapi_connect_timeout=10000
You can also set Java system properties (such as -Djava.io.tmpdir=<path>) in the SCANCENTRAL_VM_OPTS environment variable.