Manually editing the service configuration files

The service configuration files give you access to options that are not available in the Spotfire Server administrative interface. You can use the default configuration files as a template to create and import as many customized service configurations as your Spotfire implementation requires. You can then apply the customized configurations to new or existing Spotfire Automation Services and Spotfire Web Player services.

About this task

For more information about configuring a data function service, see the following resources.

Procedure

  1. On the computer running Spotfire Server, open a command prompt as an administrator and change the directory to the location of the config.bat file (config.sh on Linux). The default location is <server installation dir>/tomcat/spotfire-bin.
  2. On the command line, export the service configuration that you want to modify from Spotfire Server by using the export-service-config command. Specify the service's capability and the deployment area, and optionally the configuration name.
    Example for exporting the "Default" Spotfire Automation Services configuration that is in the Production deployment area:
    config export-service-config --capability=AUTOMATION_SERVICES --deployment-area=Production
    Example for exporting a customized configuration:
    config export-service-config --config-name=AutomationServicesConfiguration
    The following configuration files are exported. By default, these files are saved to the <server installation dir>\tomcat\spotfire-bin\config\root directory.
    • Spotfire.Dxp.Worker.Automation.config (for Automation Services only)
    • Spotfire.Dxp.Worker.Core.config
    • Spotfire.Dxp.Worker.Host.exe.config (for services installed on Windows)
    • Spotfire.Dxp.Worker.Host.dll.config (for services installed on Linux)
    • Spotfire.Dxp.Worker.Host.env (for Web Player and Automation Services installed on Linux)
    • Spotfire.Dxp.Worker.Web.config
    • log4net.config
  3. Edit the exported configuration files in a text editor or XML editor. For details about these files, see Service configuration files.
  4. On the command line, import the customized configuration file back into Spotfire Server and name the configuration by using the import-service-config command.
    config import-service-config --config-name=ServiceConfiguration
    When you install a new service or edit an existing one, you can select the customized configuration.
  5. Optional: To activate the customized configuration for an existing service, run the following command on the command line:
    config set-service-config --service-id=value --config-name=ServiceConfiguration