hvrreposconfig
Usage
hvrreposconfig [-Rurl] [-ojsonfile] [property]...
Print specific repository properties (property...), or all if none are specified.hvrreposconfig [-Rurl] [-ijsonfile] [property=[value]]...
Set or unset the specific repository properties supplied in the jsonfile and/or directly on the command line.hvrreposconfig [-Rurl] -a [-ijsonfile] [property=value]...
Replace all the existing repository properties with a new set of properties supplied in the jsonfile and/or directly set on the command line (property=value...).hvrreposconfig [-Rurl] -c
Create repository tables in the repository database.hvrreposconfig [-Rurl] -d
Drop all repository tables from the repository database.hvrreposconfig [-Rurl] -Atype[:name]=[access]
Add or delete repository-level access permissions to a user(s) (Deprecated in v6.1.5/2
).
Description
Command hvrreposconfig allows you to create and drop repository tables and a hub database, as well as manage the properties of a repository database. If this command is executed without supplying any of the options, it will list all the repository properties.
Argument properties specifies the properties that define the configuration of a repository database. For more information, see section Repository Properties.
Options
This section describes the options available for command hvrreposconfig.
Parameter | Description |
---|---|
-Atype[:name]=[access] |
Add or delete Access_List property entry.
hvrreposconfig -A user:hvruser=SysAdmin hvrreposconfig -A user:hvruser= |
-a | Replace (delete) all the existing repository properties with a new set of properties. The new set of properties may be supplied directly in the command line ([property=[value]]...) or from file jsonfile using parameter The following syntaxes are applicable:
|
-c | Create all repository tables in a repository database. For example, the following command will create repository tables:hvrreposconfig -c |
| Drop all repository tables from a repository database. Executing this command removes all locations, channels (including table groups and tables), and all actions defined on the channel or location. It is recommended to backup the tables (using hvrdefinitionexport) before executing this command. For example, the following command will drop all repository tables:hvrreposconfig -d |
-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
|
-ijsonfile | Read the values of repository properties from JSON file jsonfile. For example, the following command will replace all the existing repository properties with the new properties supplied in repos_props.json:hvrreposconfig -a -i repos_props.json |
-ojsonfile | Write properties to JSON file jsonfile. If no properties are specified on the command line, then all properties are fetched from the repository. For example, the following command will create JSON file repos_props.json with the existing repository properties:hvrreposconfig -o repos_props.json |
| 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 will list the repository properties of the hub server supplied:hvrreposconfig -R https://node:port |
-Vaccessmeth | Handle classified data.
|
Examples
This section provides examples of using the hvrreposconfig command.
Example 1. Get repository properties
The following command prints the value of property Access_List, which is containing access privileges.
hvrreposconfig Access_List
Since 6.1.5/2, the User_Access and All_User_Access should be used.
hvrreposconfig User_Access All_User_Access
Example 2. Set repository properties
The following command sets property Access_List, namely, it assigns the SysAdmin access privilege to users hvruser1 and hvruser2.
hvrreposconfig Access_List[0].user=hvruser1 Access_List[0].level=SysAdmin Access_List[1].user=hvruser2 Access_List[1].level=SysAdmin
Since 6.1.5/2, the User_Access property should be used.
hvrreposconfig User_Access.hvruser1.sysadmin=true User_Access.hvruser2.sysadmin=true
The property Access_List is an array, hence it is required to specify the array position in square brackets [number] while setting this property.
Example 3. Unset repository properties
The following command unsets property Access_List, which is containing access privileges.
hvrreposconfig Access_List=
Since 6.1.5/2, the User_Access and All_User_Access should be used.
hvrreposconfig User_Access= All_User_Access=
Example 4. Replace repository properties
The following command replaces the current repository properties with the properties supplied in the repos_props.json file.
hvrreposconfig -a -i repos_props.json
The following command replaces the current repository properties with the properties supplied in the repos_props.json file and property Licenses.
hvrreposconfig -a -i repos_props.json Licenses=licenses
The properties supplied directly on the command line will override the relevant properties in the repos_props.json file.
Example 5. Create hub bookmarks
The following command creates a hub bookmark.
hvrreposconfig Hub_Switch_Bookmarks='[{"url":"https://myserver:4341/#/hubs/myprodhub/","description":"Production Hub"}]'