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:

  • 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.