Skip to main content

How can we help you?

Druva Documentation

Install the agent and register an MS-SQL server

Enterprise Workloads Editions: File:/tick.png Business File:/cross.png Enterprise File:/tick.png Elite

This article explains the following steps while setting up Druva to backup your MS-SQL server:

  1. Download and install the Hybrid Workloads agent 
  2. Activate the Hybrid Workloads agent
  3. (Optional) Configure Web proxy 

Before you begin

Before you can set up Druva in your infrastructure, ensure that you have configured organizations and administrators. For more information, see Quick steps to set up Druva to back up databases.

Ensure that you read through the system requirements and prerequisites.

Download and install the Hybrid Workloads agent

  1. Log in to the Management Console.

  2. Select the workload from the Protect menu. Note that if the All Organizations menu is enabled, you have to first select an organization where you want to add the MS-SQL server and then select the workload.
  3. The Get Started page is displayed if no SQL servers have been configured so far.

    SQL Get started page.png
    On the Get-Started page, click Register New Server.
  4. If SQL servers have already been configured in your environment, you can register additional SQL servers, by clicking Register New Server from the All SQL Resources page.

    Register New Server.png
  5. In the Register New Server dialog box, click Check prerequisites to ensure that the MS-SQL server where you want to install the Hybrid Workloads agent meets the MS-SQL server requirements.
    Downloadspage_SQL.png
  6. Under the Download and install agent on the server section, click Download. Copy the installable to the MS-SQL server if you didn't download the agent from a Management Console open on the MS-SQL server.

    Note: Using this Hybrid Workloads agent, you can protect File Servers, NAS, and Hyper-V workloads on a Windows Server or Linux Server. For more information, see Common agent installation and activation.
  7. On the MS-SQL server, navigate to the location which has the Hybrid Workloads agent installer. 

  8. Double-click the Druva installer, and click Next.

  9. Use either the local system account or domain admin credentials while installing the agent. To use domain admin credentials, clear the Use Local System Account checkbox. Enter the domain account username in the format: domain\username
    Phoenix agent install.png
  10. In the Install location box, type or select the full path to the installation home directory. 

  11. Click Install.

  12. After the installation completes, click Finish.

 If you use the domain user account at the time of installing the agent, ensure that you create the domain user account credentials in the credential store and then use those credentials. Credentials stored in the Credential store persist through upgrades. For more information see Credential Store.

Command-line install

Execute the following command from the command prompt:

 msiexec /i <path to Phoenix msi> /qn /quiet /log <path to log file>
For example:
msiexec.exe/i C:\Users\Administrator\Downloads\Phoenix-6.0.1-154609.msi /qn/quiet/log C:\Users\Administrator\Downloads

Note: If you install the agent using the command line instruction, the agent is installed with the local system administrator account. You cannot provide the domain account credentials if you use this method.  

Activate the Hybrid Workloads agent  

After you install the Hybrid Workloads agent on a Windows server, you must activate it using the activation token that Druva generated at the time of registering servers. The token functions as a unique identifier and performs a one-time authentication of Hybrid Workloads agents. After authentication, Hybrid Workloads agents establish a persistent connection with Druva Cloud.

Note: If your network infrastructure uses a Web proxy, you must configure it before activation. For more information, see Configure Web proxy.

  1. In the Register New Server wizard, under the Activate Server for Backup section, select a valid activation token. An activation token can be used to activate up to 25 servers and expires in 7 days. If all activation tokens have expired, Druva creates a Default Activation Token automatically when you click Register New Server.

    Activate Server for Backup.png
     
  2. If you want to create a new token, perform the following tasks:

    1. Click Generate New Token.

    2. In the Generate Token dialog box, enter the following details, and click Generate.
    • Token Label: Enter a unique label for the activation token.
    • This token can activate: Enter the number of servers that can be activated using this token.
    • This token expires in: Enter the number of days after which this token will expire.
    • In the Generate Token dialog box, click Generate.
    1. Select the newly generated token from the drop-down list under Activation Token.
      Note: Druva lists the activation token under Manage > Activation Tokens. For more information, see  Manage activation tokens.
  3. If you’re using the CLI to activate the agent, click Copy Command.
    Copy_command.png
    1. On the MS-SQL server, open a CLI.
      Note: If you are using an agent older than version 6.0.1-154928, navigate to  C:\Program Files\Druva\Phoenix Agent
    2. Paste the copied command and press Enter. You can also append the server name by editing the command:
      HybridWorkloadsAgent.exe fs-mssql activate -t <activation token> --ServerName <Server Name>
      
      For example:
      HybridWorkloadsAgent.exe fs-mssql activate -t  32931-228-1762-591132241ce4fb2e14fca792cbf532f4a2359eb0bf1b96f82211373ebea7c23b -n WIN-RFE3
      
      Note: If you are using an agent older than version 6.0.1-154928, the following command can be used:
      PhoenixActivate <activation token> --ServerName <Server Name>
      For GovCloud, the edited command:
      HybridWorkloadsAgent.exe fs-mssql activate govcloud -g -t <token> --ServerName <Server Name>
      
      For example:
      HybridWorkloadsAgent.exe fs-mssql activate -g -t  32931-228-1762-591132241ce4fb2e14fca792cbf532f4a2359eb0bf1b96f82211373ebea7c23b -n WIN-RFE3
      
      Note: If you are using an agent older than version 6.0.1-154928, the following command can be used:
      PhoenixActivate govcloud <activation token> --ServerName <Server Name>

Note: The server name is not case sensitive. You cannot have one server registered as "ABC and another as "abc". Druva displays the error message Server display name already exists. Cannot register the server with same display name.

  1. If you’re using the Hybrid Workloads agent shortcut to activate the agent, click Copy Token.
    Copy token.png
    1. Double-click the Hybrid Workloads Agent shortcut on the server where the Hybrid Workloads Agent needs to be activated. 
      The Hybrid Workloads Agent window is displayed.
      Activation_screen.png
    2. In the Hybrid Workloads Agent window, select  FS & MS-SQL to activate. 
      A set of in-built activation checks are run and the result is displayed.

       
      The Agent Activation page for FS & MS-SQL is displayed.
      FS_activate.png
    3. Enter the following details:
Field  Description
Activation Token Paste the copied activation token.
Note: This is the token copied from the Register New Server dialog box. 
Server Name Enter a unique server name in the current Organization for each workload of the same type.
Note: The server name should not contain any special characters.
Note: If you are activating the agent for Druva Public Cloud, do not select the GovCloud check box.
  1. Click Activate.
    The backup readiness checks will run to ensure that your system is equipped for successful backup operation.

     

After activation, the registered server is visible under Protect > File Servers > Registered Servers page as well as the Protect > MS-SQL servers > All SQL Resources page. The All SQL Resources page also displays the instances and availability groups hosted on the server.

Note:  Server or SQL resources may take some time to appear under Protect > MS-SQL servers, as they are populated once the discovery of SQL databases is done successfully.

Configure Web proxy 

Hybrid Workloads agent connects to the Druva Cloud through the internet. If your network infrastructure uses a Web proxy, configure the Hybrid Workloads agent to use Web proxy to establish a connection with the Druva Cloud. You can configure the Web proxy either from the user interface or command line.

Configure Web proxy using the user interface

This procedure applies only to Windows servers. 

Before you begin

Ensure that Hybrid Workloads agent is running before starting proxy settings.

Procedure

  1. Double-click the Hybrid Workloads Agent application. 
  2. In the Agent Activation window, select Configure Web Proxy.
    1. Select the My network infrastructure uses a Web proxy check box to enter the details.
      The Web Proxy options are displayed.
      Webproxy.png
    2. In the Proxy Type drop-down list, select one of the supported proxy types(http, socks4, socks5). The default selection is http
    3. In the Proxy Server IP Address field, enter a valid IP address of the proxy server.
    4. In the Proxy Port field, enter the respective port number.
    5. If you want to add authentication to your proxy server, select the Proxy server requires authentication check box and add relevant username and password in their respective fields.
  3. Click Save.
    The Web proxy is configured.

Configure Web proxy servers using the command line

  1. Open the command-line interface window.
  2. In the command line interface, change the directory with which the CLI opens to the directory where Hybrid Workloads agent is installed. 
    Note: If you are using an agent older than version 6.0.1-154928,   change directory to C:\Program Files\Druva\Phoenix Agent.
  3. In the command prompt, run the following command  to set the Web proxy:
    HybridWorkloadsAgent.exe web-proxy-config -s -t <proxy_type> -i <ProxyHost_IP>:port -u <Proxy_user> -p <Proxy_password>
    For example:
    HybridWorkloadsAgent.exe web-proxy-config -s -t http -i 172.34.23.218:80 -u johndoe -p pass23
    Note: If you are using an agent older than version 6.0.1-154928, the following command can be used:
    PhoenixControl.exe set_proxy_details -t proxy_type -i proxy_IP:port -u proxy_user -p proxy_password
  4. (Optional)You can use the following command to fetch the current proxy configuration:
    HybridWorkloadsAgent.exe web-proxy-config -g
Field  Description
Get_web-proxy
(-g, --get)
Fetches the current Web proxy configuration for the agent.
Set_web_proxy
(-s, --set)
Sets the current Web proxy configuration for the agent.
Proxy_type
(-t, --proxy-type string)
Agent supports the following proxy types:
  • http
  • socks4
  • socks5
Note: If you do not provide the type, http is applied by default.
Proxy_IP
(-i, --host string)
Valid IP or URL of proxy server.
Port Respective proxy port number.
Proxy_user
(-u, --user string)
Valid proxy user name. 
Proxy_password
(-p, --pass string)
Valid proxy password.

The Web proxy is configured successfully.

Note: Druva only supports basic authentication with Web proxy.

Additional information  
  • The Threat Management Gateway (TMG) drops IDLE connections after defined timeout duration, due to which agent does an aggressive retry with server.

    Note: In TMG application, it is recommended to set connection timeout value to 5 minutes.

  • The configuration file path for Hybrid Workloads agent and Cache Server are as follows:

    For windows agent:C:\ProgramData\Phoenix\Phoenix.cfg.

  • If the proxy details setting fails, ping the proxy-server IP from the same machine and check for proxy_user and proxy_password.

Steps to delete a Web proxy once it is set up successfully

You can delete the successful set up Web proxy in the following three ways.

Using the user interface

This is applicable only to Windows Servers.

  1. Clear the My network infrastructure uses a Web proxy check box.
  2. Click Save.
Using the command line
  1. Open the command line interface window.
  2. In the command prompt, run the following command on the Windows server to remove the Web proxy: 
    HybridWorkloadsAgent.exe web-proxy-config -r
    or
    HybridWorkloadsAgent.exe web-proxy-config –remove
  3. In the terminal, run the following command in the Linux server to remove the Web proxy:
    HybridWorkloadsAgent web-proxy-config -r
    
    or
    HybridWorkloadsAgent web-proxy-config --remove
    
    Note: Enter -r or –remove command to remove the Web proxy. 
Updating the configuration file
  1. Log in to the required server.
  2. Stop the Hybrid Workloads agent Services.
    Note: If you are using an agent older than version 6.0.1-154928,  navigate to :C:\ProgramData\Phoenix\<WorkloadName> and copy the Phoenix.cfg file.

Next step

After your SQL server is registered, you can configure it for backup.