dsshubconfig - DSS 6 | Data Source Solutions Documentation
Documentation: dsshubconfig - DSS 6 | Data Source Solutions Documentation
dsshubconfig
Usage
<b>dsshubconfig</b> [<b>-R</b><em>url</em>]List all the hubs on the hub server.<b>dsshubconfig</b> [<b>-R</b><em>url</em>] <em>hub</em>List the hub properties of the hub.<b>dsshubconfig</b> [<b>-R</b><em>url</em>] [<b>-o</b><em>jsonfile</em>] <em>hub</em> [<em>properties</em>]...Print the specified hub properties (property...), or all if none are specified.<b>dsshubconfig</b> [<b>-R</b><em>url</em>] [<b>-i</b><em>jsonfile</em>] <em>hub</em> [<em>property</em>=[<em>value</em>]]...Set or unset the specific hub properties supplied in the jsonfile and/or directly on the command line.<b>dsshubconfig</b> [<b>-R</b><em>url</em>] <b>-a</b> [<b>-i</b><em>jsonfile</em>] <em>hub</em> [<em>property</em>=<em>value</em>]...Replace all the existing properties of the hub with a new set of properties supplied in the jsonfile and/or directly set on the command line (property=value...).<b>dsshubconfig</b> [<b>-R</b><em>url</em>] <b>-c</b> [<b>-i</b><em>jsonfile</em>] <em>hub</em> [<em>property</em>=[<em>value</em>]]...Create a hub with the specified properties in the jsonfile and/or the properties specified in the command line (property=[value]...).<b>dsshubconfig</b> [<b>-R</b><em>url</em>] <b>-d</b> <em>hub</em>Drop the hub.<b>dsshubconfig</b> [<b>-R</b><em>url</em>] <b>-f</b> <em>hub</em>Freeze the hub.<b>dsshubconfig</b> [<b>-R</b><em>url</em>] <b>-u</b> <em>hub</em>Unfreeze the hub.<b>dsshubconfig</b> [<b>-R</b><em>url</em>] <b>-A</b><em>type</em>[:<em>name</em>]=[<em>access</em>]... <em>hub</em>Add or delete Access_List property to the hub (Deprecated in v6.1.5/2).
Description
Command dsshubconfig allows you to create and drop a hub, as well as configure hub properties. If this command is executed without supplying any of the options, it will list all the hubs available on a hub server.
Argument <em>properties</em> or <em>property</em> specifies the properties that define the hub configuration. For more information, see section Hub Properties.
Options
This section describes the options available for command dsshubconfig.
| Parameter | Description |
|---|---|
-Atype[:name]=[access] |
Add or delete Access_List property entry.
Omitting access causes all matching access elements to be removed/unset. The following command will add or update the permissions for user dssuser to be HubOwner on hub myhub: dsshubconfig -A user:dssuser=HubOwner myhub
dsshubconfig -A user:dssuser= myhub
|
-a |
Replace (delete) all the existing hub properties with a new set of properties. The new set of properties may be supplied directly in the command line ([property=[value]]...) and/or from file jsonfile using parameter The following syntaxes are applicable:
|
-c |
Create a hub. Before creating a hub, you must stop the hub server using command dsshubserver dsshubconfig -c myhub
dsshubconfig -i hub_props.json -c myhub
|
-d |
Delete a hub. Deleting a hub will delete everything associated with that hub. That includes all definition objects, jobs, events, statistics data, files on the disk ($DSS_CONFIG/hubs/hub/ is removed). The hub will be frozen automatically before it is deleted. Deactivating a channel(s) is not required. Exporting hub definition is a good optional step for backup. For example, the following command will drop hub myhub:dsshubconfig -d myhub
|
-Ex |
Override automatic encoding/decoding of string properties when reading a property from file using When this option is not used, the Valid values of
|
-f |
Freeze a hub. When you freeze a hub, the hub's scheduler and all running jobs are stopped. In a frozen hub, you cannot run any jobs such as compare, refresh, activate, deactivate. You can freeze a hub when you no longer need it. The main benefit of freezing a hub is to stop resource consumption on the hub server while saving the state, history and configuration of the hub. |
-ijsonfile |
Read property values from JSON file dsshubconfig -a -i hub_props.json myhub
|
-ojsonfile |
Write properties to JSON file dsshubconfig -o hub_props.json myhub
|
-Rurl |
Remote hub server. Access the hub server running on a remote machine, via the REST interface. This option is required for remote CLI access. When using this option, command dsslogin should be run first, for authentication. For example, the following command will create hub myhub on a remote hub server:dsshubconfig -R http://node:port -c myhub
|
-u |
Unfreeze a hub. When you unfreeze a hub, the jobs will return to the state they were at the moment of freezing. It is important to note that if the hub is frozen for an extended period of time, a capture job(s) may not be able to resume from the moment the hub is frozen since the log files were most likely cleared up a while ago. |
Examples
This section provides an example of using the dsshubconfig command.
Example 1. Get hub properties
The following command prints the value of property Hub_Server_URL of hub myhub.
dsshubconfig myhub Hub_Server_URL
Example 2. Set hub properties
The following command sets property Hub_State to value FROZEN for hub myhub.
dsshubconfig myhub Hub_State=FROZEN
Example 3. Unset hub properties
The following command unsets property Description of hub myhub.
dsshubconfig myhub Description=
Example 4. Replace hub properties
-
The following command replaces the current properties of hub myhub with the properties supplied in the hub_props.json file.
dsshubconfig -a -i hub_props.json myhub -
The following command replaces the current properties of hub myhub with the properties supplied in the hub_props.json file and property Description.
dsshubconfig -a -i hub_props.json myhub Description=My_old_hubThe properties supplied directly on the command line will override the relevant properties in the hub_props.json file.