Documentation forSQL Sentry

SolarWinds Platform Installer for SQL Sentry

Preview Feature Availability:The Solarwinds Platform Installer for SQL Sentry is available as a preview installation for SQL Sentry versions 2022.4 and later.
Warning:  The SolarWinds Platform Installer for SQL Sentry is available as a preview installation for SQL Sentry and does not support all features such as site configuration.

Overview

The SolarWinds Platform Installer for SQL Sentry improves upon the Enhanced Platform installer (EPI) for SQL Sentry by allowing you to deploy, manage, and upgrade SQL Sentry components through a command line interface from a single location. The SolarWinds Platform Installer for SQL Sentry further increases the speed and simplicity of installing and upgrading SQL Sentry implementations with multiple Monitoring Services and Clients without having to manually run through the installer on each machine. Install the single WebApi Central Service on a central location, install a SolarWinds Platform Installer Agent on each machine that will house a SQL Sentry Monitoring Service or SQL Sentry Portal, and install the SolarWinds Platform Installer Launchpad on each machine that will house a SQL Sentry Client. Use the Command Line interface to push package installations, upgrades, or removals all from the Central Service WebApi location.

Use Cases

Use Case Steps Summary

First time SQL Sentry multi Monitoring Service and Client Installation:

  • Download and install the Central Service on your central location
  • Download and install Agents on each server that will house a SQL Sentry Monitoring Service or SQL Sentry Portal
    • Specify  the location/ connection to the Central Service
    • Specify the packages to be enabled by the Central Service
  • Download and install Launchpad on each server that will house a SQL Sentry Client
Upgrading a SQL Sentry multi Monitoring Service and Client Installation:
  • Download the Upgrade Package and push it to the Central Service
  • Use the CLI to push the upgrade package to the applicable Remote Agents and Launchpads
Additional Information: For information about upgrading a Setup Wizard Installation or Enhanced Platform Installer installation to the SolarWinds Platform Installer for SQL Sentry, see the Upgrading article. 

Architecture

The SolarWinds Platform Installer for SQL Sentry consists of these major components:

SolarWinds Platform Installer Component Description

Central Service 

The SolarWinds Platform Installer Central Service is a Web API that is installed in a singular command location. All of the actions available with the SolarWinds Platform Installer are communicated to installed agents through this Web API.
Command Line Interface The SolarWinds Platform Installer Command Line Interface is used to communicate commands to the Central Service. 
Agent  The SolarWinds Platform Installer Agent is a service that manipulates ( stops, starts, installs, uninstalls ) components.  It may delete and create directories, delete files and copy files from packages to locations defined by package metadata, run scripts embedded in packages, and validate packages. The Agent should be installed on all machines that will receive the SQL Sentry Monitoring service or SQL Sentry Portal service.
Launchpad The SolarWinds Platform Installer launchpad provides non-technical users with an easy to use interface to install the SQL Sentry Client. Users will select the available configuration from the launchpad and the launchpad will install the SQL Sentry Client on the machine. The launchpad can be used to open the SQL Sentry Client, and will also notify you when the Client needs to be upgraded.
Packages SolarWinds Platform Installer independent packages are used to install, upgrade, or remove SQL Sentry Clients and SQL Sentry Monitoring Services from machines where an Agent is installed. 

Getting Started

Warning:  The account(s) used for the Central Service and any installed agent(s) must be Administrator accounts.

Run as Administrator

Command Prompt must use the Run as administrator option for all commands.

Case-Sensitivity

The parameters used in commands are case-sensitive.

This means that --agentname will not work for --agentName.

Parameters & Examples

The instructions include commands with placeholders for parameters specific to your SQL Sentry environment. This section describes all of the placeholders used in the SolarWinds Platform Installer for SQL Sentry instructions.

For example, you will use the following command to install an agent:

swepi system install agent --username <username> --password <password> --agentName <agentName> 
--serviceURL <serviceURL>

When you run it with your parameter values, it might look like this:

swepi system install agent --username <JesseRemoteAgentUser> --password <MyPasswordHere> 
--agentName <localhostagent> --serviceURL <http://localhost>

Upgrading from another installation method

If you are upgrading from a previous installation type to the SolarWinds Platform Installer for SQL Sentry, see the Upgrading article. 

Command Line Interface Commands

Important:  All SolarWinds Platform Installer commands must be run by an Administrator through an Administrator Command Prompt window.

These instructions include commands with placeholders for parameters specific to your SQL Sentry environment. This section describes all of the placeholders used in the SQL Sentry Platform Installer instructions. 

Warning:  Command parameters that include a space in the parameter name must be enclosed by quotation marks " " to parse correctly. For example, in the command below, the optional parameter Monitor Portal is enclosed in quotation marks.  

swepi agent enable --packageName sqlsentry --componentName "Monitor Portal" 
--agentName LHP85RemoteAgent

The following commands are available for the SQL Sentry Platform Installer Command Line Interface:

General Commands

Command Description
Swepi help Displays the available commands. Note:  Some commands may not be available if you are not connected to the central web service.
Swepi version Displays the version of the installed Central web service.
Swepi connect --url <WebServiceUrl> Connect to the central web service, used for routing commands.
Swepi agent help Displays the list of all available commands for agents.
Swepi package help Displays the list of all available commands for packages.
Swepi system help Displays the list of all available commands for SolarWinds EPI system management.

Agent Commands

The following agent commands are available for the SQL Sentry Platform Installer Command Line Interface:

Agent Command Description
Swepi agent list Displays a list of all installed agents with their enabled components. The following parameters are configurable.

Optional Parameters:
--agentNameInclude this parameter to list the status of only a single agent. For example:

Swepi agent list --agentName <TestAgent>

Note:  This parameter is optional.
Swepi agent help Displays a list of all available commands for agents.
Swepi agent enable -- packageName <packageName> --componentName <componentName> --agentName <agentName> Enables an agent to run with a specific package. The following parameters are configurable.

Required Parameters:
--packageNameName of the package that the agent is enabling.

Important:  This parameter is required.
--componentNameName of the component in the package that the agent is enabling.

Important:  This parameter is required.
Optional Parameters:

--agentName

Name of the agent to enable the component with. Default to all agents.

Note:  This parameter is optional.
--usernameThe user name of the account that the agent will use to install services.

Note:  This parameter is optional.
--passwordThe password of the account that the agent will use to install services.

Note:  This parameter is optional.

Swepi agent disable --packageName <packageName> --componentName <componentName> --agentName <agentName> Disables an agent running with a specific package. The following parameters are configurable.

Required Parameters:
--packageNameName of the package that the agent is disabling.

Important:  This parameter is required.
--componentNameName of the component in the package that the agent is disabling.

Important:  This parameter is required.
Optional Parameters:
--agentNameName of the agent running the component to disable. Defaults to all agents enabled with this component.

{{snippe.wellicon}}This parameter is optional.

swepi agent update credentials Updates the credential set that an agent uses to install a given service. If you don't include a username or password this command defaults to the agent using it's own credential set to install services.

The following parameters are configurable.

Required Parameters:
--packageNameName of the package that the agent is enabled with.

Important:  This parameter is required.
--componentNameName of the component in the package that the agent is enabled with.

Important:  This parameter is required.
Optional Parameters:
--agentNameName of the agent enabled with the component whose credentials are being updated. Defaults to all agents enabled with this component.

Note:  This parameter is optional.
 --usernameUsername of the account the agent will use to install services.

Note:  This parameter is optional.
--passwordPassword of the account the agent will use to install services.

Note:  This parameter is optional.

Package Commands

The following agent commands are available for the SQL Sentry Platform Installer Command Line Interface:

Command Description
swepi package list Displays a list of all configured packages.
swepi package help Displays a list of all available commands for packages.
swepi package add -- packageFilePath <packageFilePath> Adds a package to the Central Web Service. The following parameters are configurable.

Required Parameters:
--packageFilePathThe file path to the downloaded package that's being added.

Important:  This parameter is required.
swepi package remove --packageName <packageName> --version <version>  Removes a package from the Central Web Service. The following parameters are configurable.

Required Parameters:
--packageNameThe name of the package that you want to remove.

Important:  This parameter is required.
--versionThe version of the package that you want to remove.

Important:  This parameter is required.

swepi package upgrade --packageName <packageName>  Upgrades a package to the specified version. The following parameters are configurable.

Required Parameters:
--packageNameThe name of the package that you want to upgrade.

Important:  This parameter is required.
swepi package config list --packageName <packageName>  Displays a list of available configurations for a package. The following parameters are configurable.

Required Parameters:
--packageNameThe name of the package that you want to configure.

Important:  This parameter is required.
swepi package config --packageName <packageName> --key <key> --value <value> Configures the required package values. The following parameters are configurable.

Required Parameters:
--packageNameThe name of the package that you want to configure.

Important:  This parameter is required.
--keyThe key that you want to configure.

Important:  This parameter is required.
--value The value that you want to configure.

Important:  This parameter is required.
Optional Parameters:

--pushUpdated
Config
Include this parameter with the argument to automatically push the updated config to installed services in this package.

Note:  This parameter is optional.

swepi package push config --packageName <packageName> --agentName <agentName> Pushes config values from the central service to agents running services in the package. The following parameters are configurable.

Required Parameters:
--packageNameName of the configured package.

Important:  This parameter is required.
Optional Parameters:
--agentNameInclude this parameter to specify a single agent to receive the config data. The default behavior pushes the config to all agents without this parameter.

Note:  This parameter is optional.
swepi package initialize --packageName <packageName>  Initializes the database components of a package. The following parameters are configurable.

Required Parameters:
--packageNameThe name of the package that you want to initialize.

Important:  This parameter is required.
Optional Parameters:
--componentNameThe name of the component in the package you want to initialize.

Note:  This parameter is optional.

swepi package config ConnectionString --packageName <packageName> --dataSource <dataSource> --initialCatalog <initialCatalog> --userID <userID> --password <password> --integratedAuth <integratedAuth> --pushUpdatedConfig <pushUpdatedConfig> Command for explicitly configuring a connection string with a package. The following parameters are configurable.

Required Parameters:
--packageNameThe name of the package that you want to configure with the connection string.

Important:  This parameter is required.
--dataSourceThe name or network address of the instance of SQL Server with which to connect.

Important:  This parameter is required.
--initialCatalogThe name of the database.

Important:  This parameter is required.
--userIDThe SQL Server login account.

Important:  This parameter is required.
Optional Parameters:

--passwordPassword of the account specified by User ID. If IntegratedAuth is not requested and the password is not provided, the user will be prompted to enter a password and password input will be hidden for security.

Note:  This parameter is optional.
--integratedAuth

If you would like to use integrated auth (windows authentication), provide the value 'y' with this parameter. If IntegratedAuth is not requested, a password will need to be provided.

Note:  This parameter is optional.
--pushUpdatedConfigInclude this parameter with the argument y to automatically push the updated config to installed services in this package.

Note:  This parameter is optional.

System Commands

Command  Description
swepi system list Displays a list of all the SolarWinds Platform Installer installables that are currently on the Central Service.
swepi system help Displays a list of all the available command for the SolarWinds Platform Installer system management.
swepi system add --componentFilePath <componentFilePath> Adds a system component to the Central Service. The following parameters are configurable.

Required Parameters:

--componentFilePath

The filepath to the locally downloaded system component (the msi file) being added for upgrading.

Important:  This parameter is required.


swepi system install agent --username <username> --password <password> --agentName <agentName> --serviceURL <serviceURL> Installs a SolarWinds Platform Installer agent on your local machine. The following parameters are configurable.

Required Parameters:

--usernameUsername of the account under which to install the agent.

Important:  This parameter is required.
--passwordPassword of the account under which to install the agent.

Important:  This parameter is required.
Optional Parameters:

--agentNameName that the agent will be referenced by. Defaults to machine name.

Note:  This parameter is optional.
--serviceURLAddress of the central web service that the agent will communicate with. Defaults to service the CLI is currently connected to.

Note:  This parameter is optional.

swepi system install launchpad Installs the client launchpad on your local machine, or the machine you specify with the --serviceURL parameter. The following parameters are configurable.

Optional Parameters:
--serviceURLThe address of the Central Service that the agent will communicate with. Defaults to the service that's currently connected to the command line interface.

Note:  This parameter is optional.

swepi system uninstall all agents Uninstalls all agents that are connected to the Central Service.
swepi system uninstall agent --agentName <agentName> Uninstall the specified agent from the machine. The following parameters are configurable.

Required Parameters:
--agentNameRegistered name of the agent that will be uninstalled.

Important:  This parameter is required.

swepi system uninstall launchpad Uninstalls the Client Launchpad from the machine where the command is executed.
swepi system upgrade --componentName <componentName> --targetName <targetName> Initiates an upgrade of active SolarWinds Platform Installer systems to use the latest system component stored on the Central Service. The following parameters are configurable.

Required Parameters:
--componentNameThe name of the SolarWinds Platform Installer system component to be upgraded (Agent or Client Launchpad).

Important:  This parameter is required.
Optional Parameters:
--targetNameThe name of a specific target system component, if not present all system components of the same type will be sent an upgrade message.

Note:  This parameter is optional.

swepi system user add --username <username> Adds an authorized user account. Note:  This command adds a user that can run SolarWinds Platform Installer Commands. This command does not add a user in SQL Sentry. The following parameters are configurable.

Required Parameters:
--usernameThe username of the account.

Important:  This parameter is required.

swepi system user remove --username <username> Removes an account from the list of authorized users. Note:  This command removes a user that can run SolarWinds Platform Installer Commands. This command does not remove a user in SQL Sentry.  The following parameters are configurable.

Required Parameters:
--usernameThe username of the account.

Important:  This parameter is required.

swepi system user list
Displays a list of all the authorized users accounts.

Summary of Installation

Warning:  The account(s) used for the Central Service and any installed agent(s) must be Administrator accounts.

The SolarWinds Platform Installer for SQL Sentry helps users with large SQL Sentry Installations (multiple Monitoring Services and Clients across varying machines) install and upgrade their installations without going through a manual process to install or upgrade for each instance. Installing the SolarWinds Platform Installer on your environment should be completed in the following steps:

  1. Install the Central Service and CLI on your central location.
  2. Connect to the Central Service through the CLI and add your users.
  3. Install and register Remote Agent(s) on your machines that will have a SQL Sentry Monitoring Service or SQL Sentry Portal.
  4. Install the Launchpad on your machines that will have a SQL Sentry Client.
  5. Download the SQL Sentry Installation package and add it to the Central Service.
  6. Install the SQL Sentry Database on your desired machine(s) through the Command Line Interface.
  7. Install the SQL Sentry Monitoring Service on your desired machine(s) through the Command Line Interface.
  8. Install the SQL Sentry Client on your desired machine(s) through the Launchpad. 
  9. Establish your SQL Sentry Client connection(s).

Initial Installation

Additional Information: Before installing the SolarWinds Platform Installer for SQL Sentry on your installation(s), take a look at the Installation recommendations and make sure your machine(s) meets the System Requirements.

Installing the CLI and Central Service

Warning:  You need an Adminaccount on your system to execute the SolarWinds Platform Installer System Setup. An Admin account is required to run the Command Line Interface and interact with the Central Service.
Important:  Executing the SolarWinds Platform Installer system setup will add your entered system admin account as an admin user in the SolarWinds Platform Installer Command Line Interface. An Admin in the SolarWinds Platform Installer Command Line Interface account allows users to issue commands to the Central Service. You can add additional users using the swepi system user add --username <username> command through the Command Line Interface.

The SolarWinds Platform Installer for SQL Sentry should be installed on the central location for your SQL Server environment. Install the SolarWinds Platform Installer for SQL Sentry by completing the following steps:

1. Download and execute the SolarWinds Platform Installer for SQL Sentry. Select Next to Continue.

2. Select the checkbox to agree to the terms in the License Agreement, and then select Next to Continue.

3. Select how the Central Service will be installed, and then select Next to continue.

4. Review the installation location, and then select Next to continue.
 

Note:  Select Change to choose a different installation location.

5. Enter the username and password for the service account. Select Test to validate the user credentials. Select Next to continue.

Important:  The Account used to run the Central Service must be an Administrator account.

6. Enter the address and port that will host the Central Service. Select Test to validate the address and port. Select Next to continue. Note:  The port is set to 80 by default. In this example, we are using port 3600, but you can enter the port of your choosing.

Warning:  In the example above, we are connecting to localhost from the local machine. If you are setting up a SolarWinds Platform Installer for SQL Sentry Central Web Service that needs to be accessed from one or more remote machines in your network, you must enter the server name or IP address of the server where the Central Web Service will run so that it will be accessible by all of the separate machines across your network (for example, command line interfaces, agents, launchpads, and web browsers).

7. Select Install to begin the installation.

8. Select Finish to exit the setup wizard.

Important:  You can use the CTRL C command to stop the Web API.

Connecting to the Central Service and Adding Users with the CLI

Important:  During the setup for SolarWinds Platform Installer Central Service and CLI, you add a administrator user account that is used to run the Central Service. You must add additional users through the CLI while using this account.

After successfully installing the CLI and Central Service with the SolarWinds Platform Installer System Setup Wizard, you can connect to the Central Service using the command line interface (CLI), and add any users that will issue commands, interact with the Remote Agent, or interact with the Client Launchpad. Add your users through the CLI by completing the following steps:

1. Open an administrator Command prompt window and connect to the SolarWinds.Platform.Installer.CLI file location. Note:  The SolarWinds.Platform.Installer.CLI file location is C:\Program Files\SolarWinds Platform Installer\CLI by default.

swepi connect --url http://localhost:80

2. Add administrator accounts that will use the SolarWinds Platform Installer Central Service, Remote Agent, or Client Launchpad. Repeat this step as necessary. 

swepi system user add --username <localhost\tom.swepiuser>

Installing the Remote Agent with the CLI

SolarWinds Platform Installer Agents should be installed on all machines that will receive SQL Sentry Monitoring Services and Clients. Install and register an Agent through the Command line interface:

1. Open an administrator Command prompt window and connect to the SolarWinds.Platform.Installer.CLI file location. Note:  The SolarWinds.Platform.Installer.CLI file location is C:\Program Files\SolarWinds Platform Installer\CLI by default.

swepi connect --url http://localhost:3600

2. Execute the swepi system install agent command to install the remote agent on your system:

swepi system install agent --username LHP85-0519-817B\JesseRemoteAgentUser 
--password Rocket231!! --agentName LHP85RemoteAgent --serviceURL http://localhost:3600

Warning:  The account(s) used for the agent service must be Administrator accounts.

Success: You have installed the SolarWinds Platform Installer Remote Agent on your system. 

Note:  You can also install the Remote Agent through its Installer. See Installing the Remote Agent with the installer below for more information. 

Installing the LaunchPad with the CLI

The SolarWinds Platform Installer Launchpad will be used to launch the SQL Sentry Client and Initiate upgrades in an easy to use UI format. Install the Launchpad on your system with the CLI:

1. Open an administrator Command prompt window and connect to the SolarWinds.Platform.Installer.CLI file location. Note:  The SolarWinds.Platform.Installer.CLI file location is C:\Program Files\SolarWinds Platform Installer\CLI by default.

swepi connect --url http://localhost:3600

2. Execute the swepi install launchpad command:

swepi system install launchpad

Success: You have installed the SolarWinds Platform Installer Launchpad on your system.

Note:  You can also install the Launchpad through its Installer. See Installing the Launchpad with the installer below for more information. 

Installing SQL Sentry Components via Packages

Requirements

Before installing SQL Sentry, review the following articles:

Installation Packages

You can add SQL Sentry Installation and Upgrade packages to the SolarWinds Platform Installer Central Service, and then push installations and upgrades to Remote Agents or Launchpads across your environment. Get started with installation packages by completing the following steps:

Important:  The SentryOne Monitoring Service and SQL Sentry Portal can only be installed to machines that have a SolarWinds Platform Installer Remote Agent installed.

Starting with Versions 2022.4, the --packageName value will always start with sqlsentry.

1. Download the SolarWinds Platform Installer Installation Package, and then place the Installation package in a location that is accessible by the Central Service.

2. Open an administrator Command prompt window and connect to the SolarWinds.Platform.Installer.CLI file location. Note:  The SolarWinds.Platform.Installer.CLI file location is C:\Program Files\SolarWinds Platform Installer\CLI by default.

swepi connect --url http://localhost:3600

3. Add the installation package to the Central Service:

swepi package add --packageFilePath "C:\Program Files\Swepi Package\SolarWinds-SQLSentry
-SWEPI-Package-2022.3.0.34556.zip"

4. Accept the End User License Agreement to upload the package.
5. Verify the package has been uploaded to the Central Service:

swepi package list

6. Configure the connection string for the SentryOne Database:

swepi package config ConnectionString --packageName sqlsentry --dataSource localhost 
--initialCatalog SWEPI_DEMO_DB --userID LHP85-0519-817B\JesseRemoteAgentUser --integratedAuth y

7. Create the SentryOne Database on your machine: 

swepi package initialize --packageName sqlsentry
Important:  You can verify that the Database has been created in SSMS.

8. Instruct your Remote Agent to install the Monitoring Service:

swepi agent enable --packageName sqlsentry --componentName MonitoringService 
--agentName LHP85RemoteAgent

You can verify that the Monitoring Service has been installed in System Services.

9. Instruct your Remote Agent to install the SQL Sentry Portal:

swepi agent enable --packageName sqlsentry --componentName "Monitor Portal" 
--agentName LHP85RemoteAgent
Warning:  You can only configure your SQL Sentry Portal connection with the Portal Configuration Utility. After installing the SQL Sentry Portal with the SolarWinds Platform installer for SQL Sentry, you can access the Portal Configuration Utility at the following location:

C:\Program Files\SolarWinds Platform Installer\Agent\sqlsentry_Monitor Portal_SentryOneMonitorPortal\pcu\SentryOne.Monitor.WebClient.ConfigurationUtility

10. Open the Client Launchpad, and select Install to install the SQL Sentry Client on your machine. 

11. Select Start to open the SQL Sentry Client, and then go through the onboarding wizard to configure your connection. 

Upgrade Packages

Get started with upgrade packages for your SolarWinds Platform Installer SQL Sentry Installation by completing the following steps:

Important:  The SentryOne Monitoring Service and SQL Sentry Portal can only be installed to machines that have a SolarWinds Platform Installer Remote Agent installed.

Starting with Versions 2022.4, the --packageName value will always start with sqlsentry.

1. Download the SolarWinds Platform Installer Upgrade Package, and then place the Upgrade package in a location that is accessible by the Central Service.

2. Open an administrator Command prompt window and connect to the SolarWinds.Platform.Installer.CLI file location. Note:  The SolarWinds.Platform.Installer.CLI file location is C:\Program Files\SolarWinds Platform Installer\CLI by default.

swepi connect --url http://localhost:3600

3. Add the upgrade package to the Central Service:

swepi package add --packageFilePath "C:\Program Files\Downloads\SolarWinds-SQLSentry
-SWEPI-Package-2023.1.3.zip"

4. Enter Y to accept the End User License Agreement to upload the package.
5. Verify the package has been uploaded to the Central Service:

swepi package list

6. Open all Client Launchpads before enabling the upgrade.

7.  Enable the upgrade package for your installation:

swepi package upgrade --packageName sqlsentry

Success: You have successfully enabled the upgrade package.

Installing the Remote Agent with the Installer

Important:  You must download and install the SolarWinds Platform Installer Central Service on your central location before you can install the Remote Agent on your system. 

1. Execute the SolarWinds.PlatformInstaller.Agent.Setup file to begin your installation. Select Next to continue.

2. Select the checkbox to agree to the terms in the License Agreement, and then select Next to Continue.

3. Review the installation location and select Next to continue.

Note:  Select Change to choose a different installation location.

4. Enter the username and password for the service account. Select Test to validate the user credentials. Select Next to continue.

5. Enter the central web service address and port. Select Test to validate the connection. Select Next to continue.

6. Enter a name for the SolarWinds Platform Installer Remote Agent. Select Next to continue.
 

7. Select Install to begin the Remote Agent Installation.

8. Select Finish to close the Agent Setup Wizard. 

Installing the Launchpad with the Installer

Important:  You must download and install the SolarWinds Platform Installer Central Service on your central location before you can install the Launchpad on your system. 

1. Execute the SolarWinds.PlatformInstaller.ClientLaunchpad.Setup file to begin your installation. Select Next to continue. 

2. Select the checkbox to agree to the terms in the License Agreement, and then select Next to Continue.

3.  Review the installation location and select Next to continue.

4. Enter the central web service address and port. Select Test to validate the connection. Select Next to continue.

5. Select Install to begin the Launchpad Installation.

6. Select Finish to close the Agent Setup Wizard.

Upgrading the Central Service

For information about upgrading the SolarWinds Platform Installer Central Service, see the Upgrading article.