hvruserconfig
Usage
hvruserconfig [-Rurl]
List all the users in the repository database.hvruserconfig [-Rurl] user
List the user properties of the user.hvruserconfig [-Rurl] [-ojsonfile] [-hhub] user [property]...
Print the specified property(ies) (property...), or all if none are specified.hvruserconfig [-Rurl] [-ijsonfile] [-hhub] user [property=[value]]...
Set or unset the specific user properties supplied in the jsonfile or directly on the command line.hvruserconfig [-Rurl] -a [-ijsonfile] [-hhub] user [property=value]...
Replace all the existing user properties with a new set of properties supplied in the jsonfile or set directly on the command line (property=value...).hvruserconfig [-Rurl] -c [-Aauth] user [property=[value]]...
Create a user with the local authentication method and the specified user properties (property=value...).hvruserconfig [-Rurl] -d user
Delete the user.hvruserconfig [-Rurl] -r user
Reset the password of the repository-authenticated (local) user.
Description
Command hvruserconfig allows you to configure the hub user properties. Argument property specifies the configuration properties of a hub user. For more information, see section User Properties.
Options
This section describes the options available for command hvruserconfig.
Parameter | Description |
---|---|
| Set an authentication method for the hub user. Valid values for
This option must be used in combination with option hvruserconfig -c -A windows myuser |
| Replace (delete) all the existing user properties with a new set of user properties. The new set of user properties may be supplied directly in the command line ([property=[value]]...) and/or from a JSON file jsonfile using parameter The following syntaxes are applicable:
|
| Create a hub user. To set the authentication method, this option must be used in combination with option User will be prompted for a password if the authentication method is local. For example, the following command creates a new user myuser (with local authentication): hvruserconfig -c myuser hvruserconfig -i user_props.json -c myuser |
| Delete a hub user. For example, the following command deletes user myuser:hvruserconfig -d myuser |
| Override automatic encoding/decoding of string properties when reading a property from file using When this option is not used, the Valid values of
|
| Hub name hub for configuring hub user properties, not general user properties (for all hubs). For example, the following command replaces the current user properties of user myuser on hub hvr6_hub with a new user property Latency_Manual_Limit:hvruserconfig -a -h hvr6_hub myuser Latency_Manual_Limit=10 |
| Read property values from JSON file jsonfile. For example, the following command replaces all the existing properties of user myuser with the new properties supplied in file user_props.json:hvruserconfig -a -i user_props.json myuser |
| Write properties to JSON file jsonfile. If no properties are specified on the command line, then all properties are fetched from a repository. For example, the following command creates a JSON file user_props.json with the existing user properties of user myuser:hvruserconfig -o user_props.json myuser |
| Prompt for the current password of the hub user. For example, the following command prompts for the current password for the user myuser: hvruserconfig -P myuser -r . |
| 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 hvrlogin should be run first, for authentication. For example, the following command creates a new user named myuser1 on a remote hub server:hvruserconfig -R http://node:port -c myuser1 |
| Reset the password of a hub user. This option is applicable only for a user whose authentication method is set to Local. For example, the following command resets the password of user myuser:hvruserconfig -r myuser |
Examples
This section provides examples of using the hvruserconfig command.
Example 1. Get user properties
The following command prints the values of properties Topology_Animation and Topology_Preferences of hvruser.
hvruserconfig hvruser Topology_Animation Topology_Preferences
Example 2. Set user properties
The following command sets property Latency_Manual_Limit to value 10 for hvruser. This will override the current value of property Latency_Manual_Limit (if set) with value 10.
hvruserconfig hvruser Latency_Manual_Limit=10
The following command sets the properties specified in the user_props.json file for hvruser.
hvruserconfig hvruser -i user_props.json
The following command sets properties specified in the user_props.json file as well as the properties specified on the command line for hvruser.
hvruserconfig hvruser -i user_props.json hvruser Num_Events_Initially=50
If the user_props.json file contains properties that are already set for the user, option
-i
will override these properties.For example, the following properties are currently set: Full_Name, Show_Internal_Jobs, and Num_Events_Initially. The user_props.json file contains properties Full_Name and Show_Internal_Jobs. Option
-i
will override the current values of properties Full_Name and Show_Internal_Jobs.
Example 3. Unset user properties
The following command unsets property Topology_Animation of hvruser.
hvruserconfig hvruser Topology_Animation=
Example 4. Replace user properties
The following command replaces the current properties of hvruser with the properties supplied in the user_props.json file.
hvruserconfig -a -i user_props.json hvruser
The following command replaces the current properties of hvruser with the Latency_Manual_Limit, Full_Name, Show_Inactive_Jobs, and Topology_Animation properties.
hvruserconfig -a hvruser Full_Name="HVR User" Show_Inactive_Jobs=true Topology_Animation=true
The following command replaces the current properties of hvruser with the properties supplied in the user_props.json file and the Show_Inactive_Jobs property.
hvruserconfig -a -i user_props.json hvruser Show_Inactive_Jobs=false
The properties supplied directly on the command line will override the relevant properties in the user_props.json file.
Example 5. Show deprecated features
The following command displays deprecated options in the user interface, such as the Database Triggers capture method (on Step 4. Configure Capture/Integrate of the location creation workflow).
hvruserconfig myuser Show_Deprecated_Features=true