How to enable/disable deployment server and client features

release date
2017-10-23
last updated
2023-12-11
version
Splunk Enterprise 9.0.0
Splunk Universal Forwarder 9.0.0
Overview
How to enable/disable the Deployment Server and Deployment Client features
Reference information
content

How to set and check how to enable/disable the deployment server function

How to enable/disable

  • activation
    Execute the following command in the CLI of the deployment server.
    $SPLUNK_HOME/bin/splunk enable deploy-server
  • Invalidation
    Execute the following command in the CLI of the deployment server.
    $SPLUNK_HOME/bin/splunk disable deploy-server

$SPLUNK_HOME is the installation directory. By default, it is:
Linux: /opt/splunk
Windows: C:\Program Files\Splunk

*If you disable the function, there is no need to restart the Splunk service.

How to check whether a feature is enabled or disabled

When you execute the above enable/disable command, the setting value will change as follows. You can check whether the setting is enabled or disabled from the configuration file.

<Setting file>

$SPLUNK_HOME/etc/system/local/serverclass.conf

<Setting example>

[global]
disabled = true

The deployment server function is disabled when disable=true or 1, and enabled when false or 0.

How to set and check how to enable/disable the deployment client function

How to enable/disable

  • activation
    Execute the following command on the CLI of the deployment client.
    $SPLUNK_HOME/bin/splunk enable deploy-client
  • Invalidation
    Execute the following command on the CLI of the deployment client.
    $SPLUNK_HOME/bin/splunk disable deploy-client

*$SPLUNK_HOME is the installation directory. By default it is as follows.

(For Universal Forwarder)
Linux: /opt/splunkforwarder
Windows: C:\Program Files\SplunkUniversalForwarder

(Heavy Forwarder)
Linux: /opt/splunk
Windows: C:\Program Files\Splunk

If you enable or disable the feature with the above command, you must restart the Splunk service for the settings to take effect.

How to check whether a feature is enabled or disabled

When you execute the above enable/disable command, the setting value will change as follows. You can check whether the setting is enabled or disabled from the configuration file.

<Setting file>

$SPLUNK_HOME/etc/system/local/deploymentclient.conf

<Setting example>

[deployment-client]
disabled = true

The deployment client feature is disabled when disabled=true or 1, and enabled when false or 0.

that's all