hvragentuserconfig
Usage
hvragentuserconfig [-connectopts]
List all the agent users in the repository database.hvragentuserconfig [-connectopts] -c [-Aauth] user
Create an agent user with the specified authentication method.hvragentuserconfig [-connectopts] -d user
Delete the agent user.hvragentuserconfig [-connectopts] -p user
Reset the password of the agent user.
Description
Command hvragentuserconfig allows you to manage agent users. The command includes general options -A
,
-c
, -d
, and -p
that allow you to create or delete a user, reset a user password, and connection options (connectopts) -C
, -h
, -K
, -k
, -L
, -l
, R
, -r
, -S
, -s
that allow you to access the agent service using different connection modes. For more information, see section Agent Connection Modes.
Options
This section describes the options available for command hvragentuserconfig.
Parameter | Description |
---|---|
-Aauth | Set an authentication method for the agent user. Valid values for
This option must be used in combination with option |
-Cagent_pub_cert_fname | The directory path where a PEM file containing the agent public certificate is located. This is required to verify the identity of the HVR Agent by verifying its public certificate. For more information, see the agent property Agent_Server_Public_Certificate. |
-c | Create an agent 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. In the User Interface, this option corresponds to the Delete option from the More Options menu. |
-d | Delete the agent user. In the User Interface, this option corresponds to the Delete option from the More Options menu. |
-hhub | Hub that connects to the agent. |
-Kclient_pub_cert_fname | The directory path where a PEM file containing the client public certificate is located. This is required to verify the public certificate and private key (option |
-kclient_priv_key_fname | The directory path where a PEM file containing the client private key is located. A password will be prompted for the client private key. For more information, see the repository properties Agent_Client_Private_Key and Agent_Client_Private_Key_Password. |
-Luser/pwd | Authenticate with the user name ( This option cannot be combined with options For more information, see the location properties Agent_User and Agent_Password. |
-lloc | Location that connects to the agent. |
-p | Reset the password of an agent user. |
-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 hvrlogin should be run first, for authentication. |
-rhost:port | Agent |
-S | Authenticate using the time-based setup mode. This option cannot be combined with options For more information, see the agent property Setup_Mode_Timed_Until. |
-stoken | Authenticate using the token-based setup mode. This option cannot be combined with options For more information, see the agent properties Setup_Mode_Token_Name and Setup_Mode_Token_Value. |
Agent Connection Modes
HVR supports connection to a remote agent via the HVR hub (either from a hub machine or any client machine) or through direct network access (not via the HVR hub), which depends on your system configuration.
You can also connect to the agent directly from the machine where the agent is installed. In this case, no connection options are required.
Options -k
and -K
are required when direct network access is used to the agent with the anonymous authentication mode configured. The agent verifies the public certificate and private key pair of the incoming client (via the agent property Only_From_Client_Public_Certificates). When the anonymous authentication mode is configured, the client (hub server) must present a trusted public certificate and private key pair to the agent to be allowed to establish a connection. The hub server's public certificate and private key are automatically generated and stored in the hub server's repository (repository properties Agent_Client_Public_Certificate and Agent_Client_Private_Key) the first time the hub server repository is created.
Option -C
is required to verify the connection is made to the correct agent.
Options -L
, -S
, and -s
are used to authenticate to the agent, only one of them can be used at a time.
If the anonymous authentication mode is configured for the agent, a better practice would be to connect to it via the hub server system using options -R
and -r
that give access to the client public certificate and private key stored on the hub server (see section Access Via Hub Server System). In this case, options -k
and -K
are not required.
Direct Network Access
To access an agent via the direct network connection, the following set of connection options can be used.
hvragentuserconfig -rhost:port [-Cagent_pub_cert_fname] [-kclient_priv_key_fname -Kclient_pub_cert_fname] [-Luser[/pwd]] [-S] [-stoken]
Access Via Hub Server System
Omit option
-Rurl
when connecting to the agent from the hub server machine.
To access an agent configured on an existing location via a hub server system, the following set of connection options can be applied.
hvragentuserconfig [-Rurl] -hhub -lloc [-Luser[/pwd]] [-S] [-stoken]
To access an agent via a hub server system when creating a new location, the following set of connection options can be applied.
hvragentuserconfig [-Rurl] -hhub -rhost:port [-Cagent_pub_cert_fname] [-Luser/pwd] [-S] [-stoken]
Examples
This section provides examples of using the hvragentuserconfig command.
Example 1. Create agent user with 'local' authentication
hvragentuserconfig -c -A local agent_user_name
Example 2. Create agent user from remote machine
The following command creates agent user named user admin with local authentication. In this case, a remote connection via the hub server system (-R
) is made to the agent service that runs in the setup mode (-S
).
hvragentuserconfig -R http://hubserverhost:4343/ -h myhub -r agenthost:4340 -S -c admin