2012 HIMSS Basic Overview Grant Wood
2012 HIMSS Basic Overview Grant Wood
Automation
Ultimate Edition
Software Version: 10.50
Legal Notices
Warranty
The only warranties for Hewlett Packard Enterprise products and services are set forth in the express warranty statements accompanying such products and services. Nothing
herein should be construed as constituting an additional warranty. Hewlett Packard Enterprise shall not be liable for technical or editorial errors or omissions contained herein.
The information contained herein is subject to change without notice.
Copyright Notice
© 2012-2016 Hewlett Packard Enterprise Development LP
Trademark Notices
Adobe™ is a trademark of Adobe Systems Incorporated.
Microsoft® and Windows® are U.S. registered trademarks of Microsoft Corporation.
UNIX® is a registered trademark of The Open Group.
This product includes an interface of the 'zlib' general purpose compression library, which is Copyright © 1995-2002 Jean-loup Gailly and Mark Adler.
Documentation Updates
The title page of this document contains the following identifying information:
l Software Version number, which indicates the software version.
l Document Release Date, which changes each time the document is updated.
l Software Release Date, which indicates the release date of this version of the software.
To check for recent updates or to verify that you are using the most recent edition of a document, go to: https://softwaresupport.hp.com/.
This site requires that you register for an HP Passport and to sign in. To register for an HP Passport ID, click Register on the HP Software Support site or click Create an
Account on the HP Passport login page.
You will also receive updated or new editions if you subscribe to the appropriate product support service. Contact your HPE sales representative for details.
Support
Visit the HP Software Support site at: https://softwaresupport.hp.com.
This website provides contact information and details about the products, services, and support that HP Software offers.
HP Software online support provides customer self-solve capabilities. It provides a fast and efficient way to access interactive technical support tools needed to manage your
business. As a valued support customer, you can benefit by using the support website to:
l Search for knowledge documents of interest
l Submit and track support cases and enhancement requests
l Download software patches
l Manage support contracts
l Look up HP support contacts
l Review information about available services
l Enter into discussions with other software customers
l Research and register for software training
Most of the support areas require that you register as an HP Passport user and to sign in. Many also require a support contract. To register for an HP Passport ID, click
Register on the HP Support site or click Create an Account on the HP Passport login page.
To find more information about access levels, go to: https://softwaresupport.hp.com/web/softwaresupport/access-levels.
HP Software Solutions Now accesses the HPSW Solution and Integration Portal website. This site enables you to explore HP Product Solutions to meet your business
needs, includes a full list of Integrations between HP Products, as well as a listing of ITIL Processes. The URL for this website is
http://h20230.www2.hp.com/sc/solutions/index.jsp.
Contents
SQL Server 7
MS SQL - Compliance Audit v2 8
Prerequisites for this Workflow 9
How this Workflow Works 10
How to Run this Workflow 12
Sample Scenarios 16
Parameters for MS SQL - Compliance Audit v2 23
MS SQL - Install Patch 24
Prerequisites 24
Process Overview 25
Workflow: MS SQL - Install Patch 25
Solution pack 26
Parameters to expose 26
Input parameters 26
FAQs 28
How do I install the SQL Server patch on all instances on the server? 28
How do I install the SQL Server patch on multiple cluster nodes? 28
MS SQL - Install Cluster Patch 28
Prerequisites 29
Process Overview 29
Workflow: MS SQL - Install Cluster Patch 30
Solution pack 30
Parameters to expose 30
Input parameters 30
FAQs 32
How do I install the SQL Server patch on all instances on the server? 32
How do I install the SQL Server patch on multiple cluster nodes? 32
Refreshing Database 33
MS SQL - Backup Database 34
Prerequisites for this Workflow 35
How this Workflow Works 36
SQL Server
Workflow type Workflow name
l Sarbanes-Oxley (SOX) requirements
The workflow performs CIS Level 1 and Level 2 auditing for a SQL Server instance. The audit identifies
compliance related problems with a SQL Server instance.
The workflow performs the checks included in the CIS benchmark and then maps those CIS checks to
the benchmark type that you specify in the Compliance Type parameter. The audit summary email will
match the Compliance Type that you specify.
"Prerequisites for List of prerequisites that must be satisfied before you can run this workflow
this Workflow"
"How this Workflow Information about what the workflow does, including validation checks
Works" performed, steps executed, and step descriptions
"How to Run this Instructions for running this workflow in your environment
Workflow"
l The latest HPE DMA solution packs require the latest HPE DMA platform. To use the latest
solution packs, update the HPE DMA platform. HPE DMA10.50 solution packs are supported on
HPE DMA10.50 (and later).
l Execute reg.exe (Windows Server command-line registry tool), wmic.exe (Windows Management
Instrumentation Command-line tool), and “net” Windows utilities on the target server. These utilities
are included in the base Windows Server installations.
l Read system tables and execute system procedures upon connecting to the SQL Server instance.
For more information about prerequisites for Microsoft SQL Server, refer to the Microsoft SQL Server
Documentation.
l Prepares to run the workflow by gathering information about the target SQLServerInstance and
validating parameter values.
l Audits the various configuration settings specified in the pertinent CIS, SOX, or PCI benchmark.
Note: The emails are sent through the mail server configured on the HPE DMA server. You can
configure the mail server in the path below:
2. Any Excluded Checks specified by the user refer to actual CIS, SOX, or PCI benchmark checks.
4. The workflow can create the temporary file that will store the compliance check results.
The MS SQL - Compliance Audit workflow includes the following steps. Each step must complete
successfully before the next step can start. If a step fails, the workflow reports a failure and all
subsequent steps are skipped.
Gather This step gathers the information that the workflow needs to create and deliver the
Advanced compliance audit report via email. It also enables you to specify the name of the
Parameters latest available SQL Server build and the Windows domain user.
for MS SQL
Compliance
Validate This step validates the input parameters specified in the previous steps. It validates
Compliance the list of excluded checks to ensure that all specified checks in the list correspond
Parameters to actual Center for Internet Security (CIS) benchmark items. It also validates the
v2 email information to ensure that all specified email addresses are valid.
The step then creates the path to the temporary file that will store the results of the
current audit as the workflow is running. This file is deleted after the audit report is
sent.
MS SQL This step determines whether workflow can perform the following actions on the
Prepare SQL target system:
Server
l Check database connectivity
Compliance
Check l Query the registry
l Check the registry for SQL Server
l Execute Windows Management Instrumentation (WMI) API calls
l Execute the net user /? command
If the workflow can perform all of these actions, it is capable of running the Center for
Internet Security (CIS) Security Configuration Benchmark compliance tests.
MS SQL - This step executes all the compliance checks for MS SQL server.
Compliance
Checks
Validate This step reads the temporary file that contains the results of the compliance audit
Post and prints the audit results to the HPE DMA Console. It also creates (or updates) the
Compliance compliance metadata fields for the target.
Checks
If email addresses were specified, it also creates a report in HTML format that will be
emailed to those addresses by a later step in the workflow.
Send If email addresses are provided, this step sends the previously generated
Compliance compliance audit report to the specified email addresses.
Email
Delete File This step deletes the specified file on the target server.
Note: For input parameter descriptions and defaults, see "Parameters for MS SQL - Compliance
Audit v2" on page 23.
The workflow provides default values for some parameters. These default values are usually sufficient
for a "typical" installation. You can override the defaults by specifying parameter values in the
deployment. You can also expose additional parameters in the workflow, if necessary, to accomplish
more advanced scenarios. Any parameters not explicitly specified in the deployment will have the
default values listed in "Parameters for MS SQL - Compliance Audit v2" on page 23.
Note: Before following this procedure, review the "Prerequisites for this Workflow" on page 9, and
ensure that all requirements are satisfied.
2. Determine the values that you will specify for the following parameters:
Parameters Defined in this Step: Gather Parameters for SQL Server Compliance
Default
Parameter Name Value Required Description
Parameters Defined in this Step: Gather Parameters for SQL Server Compliance , con-
tinued
Default
Parameter Name Value Required Description
Latest Build to Check for no default optional The latest build of SQL
server according to
Microsoft. For example, build
4439 for SQL Server 2014
SP1.
Note: This is the minimum set of parameters required to run this workflow. You may need to
expose additional parameters depending on your objectives.
See "Parameters for MS SQL - Compliance Audit v2" on page 23 for detailed descriptions of
all input parameters for this workflow, including default values.
3. In the workflow editor, expose any additional parameters that you need. You will specify values for
those parameters when you create the deployment or at runtime.
4. Save the changes to the workflow (click Save in the lower right corner).
6. On the Parameters tab, specify values (or set the type to Runtime Value) for the required
parameters listed in step 2 and any additional parameters that you have exposed. You do not need
to specify values for those parameters whose default values are appropriate for your environment.
7. On the Targets tab, specify one or more targets for this deployment.
9. Run the workflow using this deployment, specifying any runtime parameters.
The workflow will complete and report SUCCESS on the Console if it has run successfully. If an error
occurs during workflow execution, the error is logged, and the workflow terminates in the FAILURE
state.
Information about each compliance check is displayed in the step output on the Console (and the
History page) for each of the audit steps.
A summary of the compliance audit is also displayed in the step output for the Validate Post
Compliance Checks step.
A compliance audit summary in HTML format is emailed to all parties on the Email Addresses to
Receive Report list.
After you run this workflow, you can generate two types of compliance reports on the Reports page:
c. Because this report lists the latest compliance audit reports for all targets in the specified
organization, you do not specify a Server, Database, or Time span.
c. Specify the Server and Instance that you selected when you created your deployment.
Sample Scenarios
This topic shows you how to use various parameters to achieve the following compliance audit
scenarios in your environment using the "MS SQL - Compliance Audit v2" workflow.
Scenario 1: Perform a Partial CIS Compliance Audit and Email the Results show
In the scenario, the following checks are excluded from the audit:
l Section 7: Replication
A summary report is sent to the three parties listed in the Email Addresses to Receive Report
parameter.
Parameter
Name Example Value Description
SOX = Sarbanes-Oxley
(SOX) sections 302.2,
302.4b, 302.4c, and 302.5
requirements
Parameter
Name Example Value Description
Note: Some of these parameters are not exposed by default in the deployment.
Be sure that the default values for all remaining input parameters are appropriate for your environment
(see "Parameters for MS SQL - Compliance Audit v2").
Scenario 2: Perform a Full PCI Compliance Audit and Email the Results show
A summary report is sent to the three parties listed in the Email Addresses to Receive Report
parameter.
Parameter
Name Example Value Description
CIS = Center
for Internet
Security
(CIS)
Security
Configuration
Benchmark
PCI =
Payment
Card
Industry
(PCI) Data
Security
Standard
SOX =
Sarbanes-
Oxley (SOX)
sections
302.2,
302.4b,
302.4c, and
302.5
requirements
Parameter
Name Example Value Description
will receive a
copy of the
compliance
audit report.
Note: Some of these parameters are not exposed by default in the deployment.
Be sure that the default values for all remaining input parameters are appropriate for your environment
(see "Parameters for MS SQL - Compliance Audit v2").
Scenario 3: Perform a Full SOX Compliance Audit, Email the Results, and Configure
Windows Domain User Using Runtime Parameters show
A summary report is sent to the three parties listed in the Email Addresses to Receive Report
parameter.
Note: You may want to run this workflow against a MS SQL instance that can only be accessed
by a Windows user with a temporary password. By using a runtime parameter for the password,
you can ensure that the password used is always the latest.
To specify the Windows domain user at the time you execute a deployment with runtime
parameters, perform the following additional steps:
1. When you make a copy of the workflow, expand the appropriate step, and then set the
Windows domain user parameters—Instance Account and Instance Password—to
- User selected -.
2. When you create a deployment from the copy of the workflow, set the parameter types to
Runtime Value.
3. When you execute the deployment, specify the Windows domain user account and
password.
Parameter
Name Example Value Description
SOX = Sarbanes-Oxley
(SOX) sections 302.2,
302.4b, 302.4c, and 302.5
requirements
Parameter
Name Example Value Description
Note: Some of these parameters are not exposed by default in the deployment.
Be sure that the default values for all remaining input parameters are appropriate for your environment
(see "Parameters for MS SQL - Compliance Audit v2").
Scenario 4: Perform a Full CIS Compliance Audit and Display the Results on the HPE DMA
Consoleshow
In the scenario, all scorable checks are performed, and the compliance audit report is displayed only on
the HPE DMA Console. In this case, a summary report is not emailed. This scenario would be
appropriate for initial testing.
It is not necessary to specify any input parameters in this scenario unless the SQL Server inventory file
is located in a non-standard directory.
Be sure that the default values for all remaining input parameters are appropriate for your environment
(see "Parameters for MS SQL - Compliance Audit v2").
Only those parameters that are configurable in a standard deployment are listed here. Input
parameters that must be mapped to output parameters of previous steps are not listed.
Compliance CIS optional Type of compliance report that will be generated by the
Type workflow. Supported types are:
Parameters Defined in this Step: Gather Advanced Parameters for MS SQL Compliance
Parameter
Name Default Value Required Description
Instance no default optional The Windows account that will perform the
Account compliance audit.
Instance no default optional The password for the Windows account that
Password will perform the compliance audit.
Latest Build no default optional The latest build of Microsoft SQL Server 2005,
Parameters Defined in this Step: Gather Advanced Parameters for MS SQL Compliance, con-
tinued
Parameter
Name Default Value Required Description
Tip: To patch more complex SQL Server clustered environments, see Achieve Patch Currency for
Microsoft SQL Server Clustered Environments Using HPE DMA, available at:
https://softwaresupport.hp.com/
Prerequisites
Before performing the procedures in this section, your environment must meet the following minimum
requirements:
l A SQL Server instance—version 2005, 2008, 2008R2, or 2012—is provisioned and ready to be
patched.
l Patch media:
Patch installation media must be available locally or available for download from the software
repository.
Process Overview
Installing a SQL Server patch to a Microsoft SQL Server installation with HPE DMA is a simple, one-
step process. All required checks and steps have been implemented in a single HPE DMA workflow.
Use the following HPE DMA workflow to standardize the process of installing a SQL Server patch:
HPE DMA can install any of the following types of SQL Server patches:
l Hot Fixes
l Cumulative Updates
l Service Packs
Note: This workflow patches a single SQL Server instance unless you use the use the advanced
parameter Patch All Instances on Server. The advanced parameter is demonstrated in this
section.
Tip: To patch multiple SQL Server cluster nodes, run MS SQL - Install Patch once for each node,
or for an easier process, use the MS SQL - Install Cluster Patch workflow that is described in
Achieve Patch Currency for Microsoft SQL Server Clustered Environments Using HPE DMA,
available at: https://softwaresupport.hp.com/
This section provides detailed information required to run the MS SQL - Install Patch workflow.
Tip: To patch multiple SQL Server cluster nodes, run MS SQL - Install Patch once for each.
Solution pack
This workflow requires the Database Patching Solution Pack.
Parameters to expose
If you want to patch all SQL Server instances, in the workflow's MS SQL - Advanced Parameters -
Install Patch step, expose the Patch All Instances on Server parameter.1
Input parameters
When you deploy the MS SQL - Install Patch workflow, specify input parameter values for the following
steps.
Bold text in the following tables indicates that you must specify a value for the parameter.
1This parameter is hidden by default and must be exposed when you make a copy of the workflow.
1If the file is not found on the target server(s), it will be downloaded from the software repository.
FAQs
1This parameter is hidden by default and must be exposed when you make a copy of the workflow.
Tip: To patch SQL Server standalone environments, see Achieve Patch Currency for Microsoft
SQL Server Environments Using HPE DMA, available at: softwaresupport.hp.com
Prerequisites
Before performing the procedures in this section, your environment must meet the following minimum
requirements:
l A SQL Server clustered instance—version 2008, 2008 R2, or 2012—is provisioned and ready to be
patched.
l Patch media:
Patch installation media must be available locally or available for download from the software
repository.
Process Overview
Installing a SQL Server patch to a Microsoft SQL Server clustered installation with HPE DMA is a
simple, one-step process. All required checks and steps have been implemented in a single HPE DMA
workflow.
l Hot Fixes
l Cumulative Updates
l Service Packs
Note: To execute the workflow, only one of the nodes in the SQL Server cluster needs to be a
target for the deployment. The workflow discovers all cluster members and patches each one.
The following section provides detailed information required to run the workflow.
This section provides detailed information required to run the MS SQL - Install Cluster Patch workflow.
Solution pack
This workflow requires the Database Patching Solution Pack.
Parameters to expose
None
Input parameters
When you deploy the MS SQL - Install Cluster Patch workflow, specify input parameter values for the
following steps.
Note: The step Run Subflow - MS SQL - Install Patch runs first to patch all passive nodes.
Note: The step Run Subflow - MS SQL - Install Patch runs again to patch the active node.
1If the file is not found on the target server(s), it will be downloaded from the software repository.
FAQs
1This parameter is hidden by default and must be exposed when you make a copy of the workflow.
Refreshing Database
This section describes the SQL Server workflows included in the HPE Database and Middleware
Automation (HPE DMA) Database Refresh solution pack.
Database refresh involves copying the contents of one database into a database in the same or another
SQL Server instance. This is useful, for example, if you want to move a database from a traditional
IT infrastructure to a private cloud. It is also useful if you want to duplicate production data in a test
environment for application development or troubleshooting purposes.
The workflows in this solution pack enable you to automate and simplify the following operations:
l Extracting the contents of one database and loading them into another database using a single
bridged execution workflow that performs both steps
The workflows perform extensive validation checks prior to and immediately after the database backup
and restore operations to ensure that the refresh is successful.
After a refresh is completed, the restore workflows can re-create any existing database users and
roles.
The workflows can create or utilize a database backup file that is compressed, encrypted, or both.
You can specify various options for the backup operation, including whether the backup file is
compressed or encrypted with a password.
The workflow performs extensive validation checks prior to and immediately after the backup operation
to ensure that the backup file is valid. The workflow will perform an additional integrity check on the
backup file if you set the Perform Integrity Check parameter to YES.
"Prerequisites for this List of prerequisites that must be satisfied before you can run this
Workflow" workflow
"How this Workflow Information about what the workflow does, including validation checks
Works" performed, steps executed, and a high-level process flow
"How to Run this Instructions for running this workflow in your environment
Workflow"
The process of deploying and running this workflow is the same for all scenarios, but the parameters
required will differ depending on the specific scenario that you are implementing.
The workflow provides default values for most parameters. These default values are usually sufficient
for a "typical" database backup. You can override the defaults by specifying parameter values in the
deployment. You can also expose additional parameters in the workflow, if necessary, to accomplish
more advanced scenarios.
Any parameters not explicitly specified in the deployment will have the default values listed in
"Parameters for Backup MS SQL Database" on page 42 .
1. The service login for the SQL Server service must have read and write permissions on the backup
path.
2. The server management agent must have login access to the SQL Server instance in which the
target database resides. It must also have permission to perform database consistency check
(DBCC) commands on the target database.
3. There must be sufficient space available on the target data and log disks. The workflow checks for
this, and will fail if sufficient space is not available.
Additional Considerations
For information about prerequisites for SQL Server, refer to the SQL Server Product Documentation.
The workflow checks the following things prior to dumping the database. If any of these checks fails,
the workflow fails.
1. All required parameters have values. If any required parameter does not have a value—either a
value that you specify or a default value—the workflow fails in the Run MS SQL Pre-Backup
Validation step.
If the Target Backup Path is on a network share, the Windows Share User has read and write
access the share.
3. The target database exists, and the workflow can connect to it.
5. If the Target Backup Path does not currently exist, it will be created prior to creating the backup
file.
Steps Executed
The "MS SQL - Backup Database" workflow includes the following steps. Each step must complete
successfully before the next step can start. If a step fails, the workflow reports a failure, and all
subsequent steps are skipped.
Process Flow
3. Performs post-backup validation checks to ensure that all required parameters had valid values.
4. If Perform Integrity Check was set to YES, performs an integrity check on the backup file.
It is good practice to run basic database consistency checks (DBCCs) on the source database before
running this workflow to ensure that there are no internal errors in the database.
If you find errors in the source database, be sure to fix them before running this workflow. The workflow
does not have the ability to diagnose or remediate problems in the database prior to performing the
database backup.
Note: Prior to running this workflow, review the "Prerequisites for this Workflow", and ensure that
all requirements are satisfied.
2. Determine the values that you will specify for the following parameter. This is the minimum set of
parameters required to run this workflow.
Parameter Default
Name Value Description
Target no Where the database backup file will be stored, either locally or on a
Backup default network share. You can specify both the path and file name, or you can
Path specify only the path.
o If you specify a file name, it must end in .bak.
o If you do not specify a file name, the backup file name will have the
following form:
<dataBaseName>_<dateTime>.bak
where <dataBaseName> represents the name of the target database
specified when the workflow runs, and <dateTime> is the date and
time when the Run MS SQL Pre-Backup Validation step is executed.
If the file will be stored on a network share, the Windows Share User
must have read and write access to that share.
3. See "Parameters for Backup MS SQL Database" on page 42 for detailed descriptions of all input
parameters for this workflow, including default values.In the workflow editor, expose any
additional parameters that you need. You will specify values for those parameters when you
create the deployment or at runtime.
4. Save the changes to the workflow (click Save in the lower right corner).
6. On the Parameters tab, specify values (or set the type to Runtime Value) for the required
parameters listed in step 2 and any additional parameters that you have exposed. You do not need
to specify values for those parameters whose default values are appropriate for your environment.
7. On the Targets tab, specify one or more targets for this deployment.
9. Run the workflow using this deployment, specifying any runtime parameters.
The workflow will complete and report “Success” on the Console if it has run successfully. If an invalid
parameter value is specified, an error is logged, and the workflow terminates in the “Failure” state.
Sample Scenarios
This topic shows you how to use various parameters to achieve the following database backup
scenarios in your environment using the "MS SQL - Backup Database" workflow:
This is the simplest SQL Server database backup scenario. In this example, the backup file is stored
on a network share.
Parameter
Step Name Name Example Value
Windows WIN\Administrator
Share User
Be sure that the default values for all remaining parameters are appropriate for your environment (see
"Parameters for Backup MS SQL Database" on page 42).
This scenario requires you to specify the encryption password and compression option for the database
backup file. In this example, the backup file is stored in locally on the server that hosts the target
database.
Be sure that the default values for all remaining parameters are appropriate for your environment (see
"Parameters for Backup MS SQL Database" on page 42).
Scenario 3: Create a Backup File, Perform an Integrity Check, and Configure Windows
Domain User Using Runtime Parameters
This scenario runs an integrity check on the backup file after the backup is performed. In this example,
the backup file is stored locally on the server that hosts the target database.
Note: You may want to run this workflow against a MS SQL instance that can only be accessed
by a Windows user with a temporary password. By using a runtime parameter for the password,
you can ensure that the password used is always the latest.
To specify the Windows domain user at the time you execute a deployment with runtime
parameters, perform the following additional steps:
1. When you make a copy of the workflow, expand the appropriate step, and then set the
Windows domain user parameters—Instance Account and Instance Password—to
- User selected -.
2. When you create a deployment from the copy of the workflow, set the parameter types to
Runtime Value.
3. When you execute the deployment, specify the Windows domain user account and
password.
Instance DomainUserPswd
Password
Note: Enter at runtime.
Be sure that the default values for all remaining parameters are appropriate for your environment (see
"Parameters for Backup MS SQL Database" on the next page).
Parameters Defined in this Step: Gather Parameters for MS SQL Database Backup
Parameter Default
Name Value Required Description
Target no required Where the database backup file will be stored, either locally or on
Backup default a network share. You can specify both the path and file name, or
Path you can specify only the path.
Additional Parameters Defined in this Step: Gather Advanced Parameters for MS SQL
Database Backup
Default
Parameter Name Value Required Description
Additional Parameters Defined in this Step: Gather Advanced Parameters for MS SQL Data-
base Backup, continued
Default
Parameter Name Value Required Description
Compression is supported
on SQL Server 2008
Enterprise and later. If you
are running SQL 2005, and
this parameter is set to
YES, the workflow will
ignore this value and
continue without
compression.
Additional Parameters Defined in this Step: Gather Advanced Parameters for MS SQL Data-
base Backup, continued
Default
Parameter Name Value Required Description
If the database does not exist in the target instance, the workflow will create it. If the database already
exists, you can specify whether you want the workflow to overwrite its contents. You can also specify
whether existing database users should be re-created after the restore operation—in which case, any
users included in the backup file are ignored.
Note: The parameters required to activate these options are hidden by default.
This workflow also provides a "simulation mode" where the Run MS SQL Pre-Restore Validation step
is executed, but the restore is not performed. This is useful for testing or troubleshooting your
parameter values.
The workflow performs extensive validation checks prior to and immediately after the restore operation
to ensure that both the backup file and the restored database are valid.
The process of deploying and running this workflow is the same for all scenarios, but the parameters
required will differ depending on the specific scenario that you are implementing.
The workflow provides default values for most parameters. These default values are usually sufficient
for a "typical" database refresh. You can override the defaults by specifying parameter values in the
deployment. You can also expose additional parameters in the workflow, if necessary, to accomplish
more advanced scenarios.
"Prerequisites for this List of prerequisites that must be satisfied before you can run this
Workflow" workflow
"How this Workflow Information about what the workflow does, including validation checks
Works" performed, steps executed, and a high-level process flow
"How to Run this Instructions for running this workflow in your environment
Workflow"
The process of deploying and running this workflow is the same for all scenarios, but the parameters
required will differ depending on the specific scenario that you are implementing.
The workflow provides default values for most parameters. These default values are usually sufficient
for a "typical" database restore. You can override the defaults by specifying parameter values in the
deployment. You can also expose additional parameters in the workflow, if necessary, to accomplish
more advanced scenarios.
Any parameters not explicitly specified in the deployment will have the default values listed in
"Parameters for Restore MS SQL Database" on page 57 .
1. The service login for the SQL Server service must have read and write permissions on the backup
file.
2. The server management agent must have login access to the target SQL Server instance. It must
also have permission to create a new database and perform database consistency check (DBCC)
commands on the restored database.
3. There must be sufficient space available on the target data and log disks. The workflow checks for
this, and will fail if sufficient space is not available.
Additional Considerations
For information about prerequisites for SQL Server, refer to the SQL Server Product Documentation.
The workflow checks the following things prior to dumping the database. If any of these checks fails,
the workflow fails.
1. All required parameters have values. If any required parameter does not have a value—either a
value that you specify or a default value—the workflow fails in the Run MS SQL Pre-Restore
Validation step.
2. The specified backup file either exists in the Download Target Destination directory or can be
downloaded from the software repository.
4. If the Custom Database Name parameter is specified, this database name complies with
SQL Server database naming conventions.
If the Download Target Destination is on a network share, the Windows Share User has read and
write access the to share.
6. The target instance exists, and the workflow can connect to it.
7. Adequate disk space is available to restore the data and log files.
8. If custom paths are specified for the data or log files, the Run MS SQL Pre-Restore Validation step
checks that they exist (and creates them if they don't), and ensures that the quantity of paths
specified match the quantity of files in the backup file.
Steps Executed
The "MS SQL - Restore Database" workflow includes the following steps. Each step must complete
successfully before the next step can start. If a step fails, the workflow reports a failure, and all
subsequent steps are skipped.
Click each box in the diagram to view additional information about that step in a new window.
Process Flow
2. If Preserve Users and Roles was set to YES, creates the Roles Creation Script and the Users
Creation Script script.
3. If not in simulation mode, performs the database restore operation to load the contents of the
backup file.
4. Performs post-restore validation checks to ensure that the restored database is sound.
5. If Preserve Users and Roles was set to YES, re-creates any existing database users and roles.
It is good practice to run basic database consistency checks (DBCCs) on the source database before
you create the database backup to ensure that there are no internal errors in the database.
If you find errors in the source database, be sure to fix them before you create the database backup.
This workflow does not have the ability to diagnose or remediate problems in the database prior to
performing the database backup.
Note: Prior to running this workflow, review the "Prerequisites for this Workflow", and ensure that
all requirements are satisfied.
1. Create a deployable copy of the workflow (see "Create a Deployable Workflow" in HPE DMA
Quick Start Tutorial).
2. Determine the values that you will specify for the following parameters. This is the minimum set of
parameters required to run this workflow.
Parameter Default
Name Value Description
Database no Path where the database backup file is (or will be) stored, either locally
Backup File default or on a network share.
If the file already exists locally or on a network share, specify the file
name in this parameter and the path in the Download Target
Destination parameter.
If the file does not yet exist locally or on a network share, it will be
downloaded into this location from the software repository.
If the file is (or will be) stored on a network share, the Windows Share
User must have read and write access to that share.
Download no The directory where the database backup file will be stored.
Target default
If the database backup file does not yet exist in this directory, it will be
Destination
downloaded from the software repository and stored in this directory.
See "Parameters for Restore MS SQL Database" on page 57 for detailed descriptions of all input
parameters for this workflow, including default values.
3. In the workflow editor, expose any additional parameters that you need. You will specify values for
those parameters when you create the deployment or at runtime.
4. Save the changes to the workflow (click Save in the lower right corner).
6. On the Parameters tab, specify values (or set the type to Runtime Value) for the required
parameters listed in step 2 and any additional parameters that you have exposed. You do not need
to specify values for those parameters whose default values are appropriate for your environment.
7. On the Targets tab, specify one or more targets for this deployment.
9. Run the workflow using this deployment, specifying any runtime parameters.
The workflow will complete and report “Success” on the Console if it has run successfully. If an invalid
parameter value is specified, an error is logged, and the workflow terminates in the “Failure” state.
Sample Scenarios
This topic shows you how to use various parameters to achieve the following database backup
scenarios in your environment using the "MS SQL - Restore Database" workflow:
This is the simplest SQL Server database restore scenario. In this example, the backup file has been
stored on a network share (or will be downloaded from the software repository and stored on the share).
Note that the Windows Share User and Windows Share Password are specified in this scenario. This
is not required, but it facilitates the disk space check on the network path. If you do not specify this
parameter, this check is skipped.
Parameter
Step Name Name Example Value
Download \\WIN-DOMAIN-CTRL\Backups
Target
Destination
Windows WIN\Administrator
Share User
Be sure that the default values for all remaining parameters are appropriate for your environment (see
"Parameters for Restore MS SQL Database" on page 57).
This scenario requires you to specify the encryption password for the database backup file. The
workflow automatically handles the compression, so there is no need to specify the compression
parameter. In this example, the backup file is stored locally on the server where the target instance
resides.
Be sure that the default values for all remaining parameters are appropriate for your environment (see
"Parameters for Restore MS SQL Database" on page 57).
Scenario 3: Overwrite an Existing Database, Restore Users, and Configure Windows Domain
User Using Runtime Parameters
This scenario overwrites an existing database and restores any existing users after the restore is
performed. In this example, the backup file is stored locally on the server where the target database
resides.
Note: You may want to run this workflow against a MS SQL instance that can only be accessed
by a Windows user with a temporary password. By using a runtime parameter for the password,
you can ensure that the password used is always the latest.
To specify the Windows domain user at the time you execute a deployment with runtime
parameters, perform the following additional steps:
1. When you make a copy of the workflow, expand the appropriate step, and then set the
Windows domain user parameters—Instance Account and Instance Password—to
- User selected -.
2. When you create a deployment from the copy of the workflow, set the parameter types to
Runtime Value.
3. When you execute the deployment, specify the Windows domain user account and
password.
Be sure that the default values for all remaining parameters are appropriate for your environment (see
"Parameters for Restore MS SQL Database" on the next page).
Parameters Defined in this Step: Gather Parameters for MS SQL Database Restore
Parameter Default
Name Value Required Description
Database no required Path where the database backup file is (or will be) stored, either
Backup File default locally or on a network share.
If the file does not yet exist locally or on a network share, it will
be downloaded into this location from the software repository.
If the file is (or will be) stored on a network share, the Windows
Share User must have read and write access to that share.
Download no required The directory where the database backup file will be stored.
Target default
If the database backup file does not yet exist in this directory, it
Destination
will be downloaded from the software repository and stored in
this directory.
Additional Parameters Defined in this Step: Gather Advanced Parameters for MS SQL
Database Restore
Parameter Default
Name Value Required Description
Backup no optional To decrypt a backup file that was encrypted with a password,
Encryption default specify the password in this parameter.
Password
Data File no optional Comma-delimited list of directories or full file paths for each
Locations default data file in the backup file.
Database no optional To restore the database from the backup file using a different
Name default database name, specify that name here. If this parameter is
not specified, the original database name will be used.
Instance no optional The Windows account that will perform the restore operation.
Account default
Additional Parameters Defined in this Step: Gather Advanced Parameters for MS SQL Data-
base Restore , continued
Parameter Default
Name Value Required Description
Instance no optional The password for the Windows account that will perform the
Password default restore operation.
Log File no optional Comma-delimited list of directories or full file paths for each
Locations default log file in the backup file. Use Run Simulation Only mode to
discover the number of log files in backup file. If this
parameter is not specified, the original log file names and
paths will be used.
Overwrite NO optional If set to YES, and the database already exists, the workflow
Existing will overwrite the database. Valid values: YES or NO.
Database
If set to NO, and the database already exists, the workflow
will fail.
Preserve NO optional If set to YES, and the database already exists, the workflow
Users and will try to preserve the database users and role. Valid values:
Roles YES or NO.
Reindex NO optional If set to YES, the workflow will re-index the database after the
Restored restore operation is successfully completed. Valid values:
Database YES or NO.
Run NO optional If set to YES, the workflow will only run the Pre-Restore
Simulation Validation step. It will not attempt to restore the database.
Only Use this mode to discover the original data and log files used
for the database backup. Valid values: YES or NO.
This is a bridged execution workflow. The first group of steps performs the backup on the specified
source database. The second group of steps performs the restore on the specified database in the
specified target instance.
You can specify various options, including whether the backup file is compressed or encrypted with a
password.
Note: Bridged execution workflows work on one target level (server, instance, or database). This
workflow runs on the database level at all times. When choosing a target instance at run time, you
will actually see a list of databases that reside on each instance. You can select any database in
the target instance where you want to perform the restore.
If you specify the RESTORE - Database Name parameter, the workflow will use that database. If
you do not specify the RESTORE - Database Name parameter, the workflow will use the original
database name from the backup.
If the database specified in the Database Name parameter does not exist in the target instance, the
workflow will create it. If the database already exists, you can specify whether you want the workflow
to overwrite its contents. You can also specify whether existing database users should be re-created
after the restore operation—in which case, any users included in the backup file are ignored .
This workflow also provides a "simulation mode" where the Run MS SQL Pre-Restore Validation step
is executed, but the restore is not performed. This is useful for testing or troubleshooting your
parameter values.
The workflow performs extensive validation checks prior to and immediately after both the backup and
restore operations to ensure that both the backup file and the restored database are valid.
See "Parameters for Backup and Restore MS SQL Database" on page 71 for a list of backup and
restore options that you can specify. Many of these parameters are hidden by default
The process of deploying and running this workflow is the same for all scenarios, but the parameters
required will differ depending on the specific scenario that you are implementing.
The workflow provides default values for most parameters. These default values are usually sufficient
for a "typical" database refresh. You can override the defaults by specifying parameter values in the
deployment. You can also expose additional parameters in the workflow, if necessary, to accomplish
more advanced scenarios.
"Prerequisites for this List of prerequisites that must be satisfied before you can run this
Workflow" workflow
"How this Workflow Works" Information about what the workflow does, including validation
checks performed, steps executed, and a high-level process flow
"How to Run this Workflow" Instructions for running this workflow in your environment
"Parameters for Backup and List of input parameters for this workflow
Restore MS SQL Database"
The process of deploying and running this workflow is the same for all scenarios, but the parameters
required will differ depending on the specific scenario that you are implementing.
The workflow provides default values for most parameters. These default values are usually sufficient
for a "typical" database backup and restore. You can override the defaults by specifying parameter
values in the deployment. You can also expose additional parameters in the workflow, if necessary, to
accomplish more advanced scenarios.
Any parameters not explicitly specified in the deployment will have the default values listed in
"Parameters for Backup and Restore MS SQL Database" on page 71 .
1. The service login for the SQL Server service must have read and write permissions on the location
where the backup file will be stored.
2. The server management agent must have login access to the target SQL Server instance. It must
also have permission to create a new database and perform database consistency check (DBCC)
commands on the restored database.
3. There must be sufficient space available to create the backup file and restore the database
(including both data and logs). The workflow checks for this, and will fail if sufficient space is not
available.
Additional Considerations
For information about prerequisites for SQL Server, refer to the SQL Server Product Documentation.
The workflow checks the following things prior to dumping the database. If any of these checks fails,
the workflow fails.
1. All required parameters have values. If any required parameter does not have a value—either a
value that you specify or a default value—the workflow fails in either the Run MS SQL Pre-Backup
Validation step or the Run MS SQL Pre-Restore Validation step.
If the Working Path is on a network share, the BACKUP - Windows Share User has read and write
access the share.
4. If the RESTORE - Database Name parameter is specified, this database name complies with
SQL Server database naming conventions.
5. The target instance exists, and the workflow can connect to it.
6. Adequate disk space is available to backup and restore the data and log files.
Steps Executed
The "MS SQL - Backup and Restore Database" workflow includes the following steps. Each step must
complete successfully before the next step can start. If a step fails, the workflow reports a failure, and
all subsequent steps are skipped.
Click each box in the diagram to view additional information about that step in a new window.
Process Flow
2. If RESTORE - Preserve Users and Roles was set to YES, creates the Roles Creation and Users
Creation scripts.
4. Performs post-backup validation checks to ensure that all required parameters had valid values.
5. If BACKUP - Perform Integrity Check was set to YES, performs an integrity check on the backup
file.
6. If not in simulation mode, performs the database restore operation to load the contents of the
backup file.
7. Performs post-restore validation checks to ensure that the restored database is sound.
8. If RESTORE - Preserve Users and Roles was set to YES, re-creates any existing database users
and roles.
9. If RESTORE - Reindex Restored Database was set to YES, re-indexes the database.
It is good practice to run basic database consistency checks (DBCCs) on the source database before
you create the database backup to ensure that there are no internal errors in the database.
If you find errors in the source database, be sure to fix them before you run this workflow. This workflow
does not have the ability to diagnose or remediate problems in the database prior to performing the
database backup.
Note: Prior to running this workflow, review the "Prerequisites for this Workflow", and ensure that
all requirements are satisfied.
2. Determine the values that you will specify for the following parameter. This is the minimum set of
parameters required to run this workflow.
See "Parameters for Backup and Restore MS SQL Database" on page 71 for detailed descriptions
of all input parameters for this workflow, including default values.
3. In the workflow editor, expose any additional parameters that you need. You will specify values for
these parameters when you create the deployment or at runtime.
4. Save the changes to the workflow (click Save in the lower right corner).
a. On the Targets tab, select all the target servers—both source and destination—that will
participate in this database refresh. The targets that you select here will be available in the
Target Parameters drop-down menus on the Run page (see step 7).
b. On the Parameters tab, specify values (or set the type to Runtime Value) for the required
parameters listed in step 2 and any additional parameters that you exposed in step 3.You do
not need to specify values for those parameters whose default values are appropriate for your
environment.
7. Run the workflow using this deployment, specifying any runtime parameters .
On the Run page, select the following targets from the respective drop-down menus:
Parameter
Name Default Description
Source no The database from which the backup file will be created.
Database default
You specify this parameter at run time.
Target no The instance where the database will be restored from the backup file.
Instance default
You specify this parameter at run time.
The workflow will complete and report “Success” on the Console if it has run successfully. If an invalid
parameter value is specified, an error is logged, and the workflow terminates in the “Failure” state.
Sample Scenarios
This topic shows you how to use various parameters to achieve the following database backup
scenarios in your environment using the "MS SQL - Backup and Restore Database" workflow:
Scenario 1: Backup and Restore Using a Backup File that is Not Encrypted or Compressed
This is the simplest SQL Server database backup and restore scenario. In this example, the backup file
is stored on a network share.
Parameter
Step Name Name Example Value
Gather Parameters for MS SQL Database Backup and Source Specified at run time.
Restore Database
Scenario 2: Backup and Restore—Overwrite Existing Database and Preserve Existing Users
This scenario requires you to specify the two restore parameters that instruct the workflow to overwrite
the existing database and then re-create existing users and roles. In this example, the backup file is
stored on a network share.
Note that the BACKUP - Windows Share User and BACKUP - Windows Share Password are
specified. This is not required, but it facilitates the disk space check on the network path. If you do not
specify this parameter, this check is skipped.
Parameter
Step Name Name Example Value
Gather Parameters for MS SQL Database Backup and Restore Source Selected at run
Database time.
Working \\WIN-DOMAIN-
Path CTRL\Backups
Gather Advanced Parameters for MS SQL Database Backup and BACKUP - WIN\Administrator
Restore Windows
Share User
BACKUP - WinSharePwd
Windows
Share
Password
RESTORE YES
- Overwrite
Existing
Database
RESTORE YES
- Preserve
Users and
Roles
Scenario 3: Perform a Backup, Simulate a Restore, and Configure Windows Domain User
Using Runtime Parameters
This scenario overwrites an existing database and restores any existing users after the restore is
performed. In this example, the backup file is stored on a network share.
Note: You may want to run this workflow against a MS SQL instance that can only be accessed
by a Windows user with a temporary password. By using a runtime parameter for the password,
you can ensure that the password used is always the latest.
To specify the Windows domain user at the time you execute a deployment with runtime
parameters, perform the following additional steps:
1. When you make a copy of the workflow, expand the appropriate step, and then set the
following Windows domain user parameters to - User selected -:
2. When you create a deployment from the copy of the workflow, set the parameter types to
Runtime Value.
3. When you execute the deployment, specify the Windows domain user account and
password.
Parameter
Step Name Name Example Value
BACKUP - WinSharePwd
Windows
Share Tip: To avoid having to re-enter passwords
Password whenever they change, you can create a
policy to provide them to the workflow.
Parameter
Step Name Name Example Value
BACKUP - Domain\DomainUserAcct
Instance
Account Note: Enter at runtime.
BACKUP - DomainUserPswd
Instance
Password Note: Enter at runtime.
RESTORE - Domain\DomainUserAcct
Instance
Account Note: Enter at runtime.
RESTORE - DomainUserPswd
Instance
Password Note: Enter at runtime.
Be sure that the default values for all remaining parameters are appropriate for your environment (see
Parameters for Backup and Restore MS SQL Database).
Parameters Defined in this Step: Gather Parameters for Backup and Restore
MS SQL Database
Parameter Default
Name Value Required Description
Source no required The database from which the backup file will be created.
Database default
You specify this parameter at run time.
Target no required The instance where the database will be restored from the
Instance default backup file.
Working no required The directory where the database backup file will be stored. This
Path default can be a directory or a full file path. This path must be accessible
to both the source and target servers.
Additional Parameters Defined in this Step: Gather Advanced Parameters for Backup and
Restore MS SQL Database
Default
Parameter Name Value Required Description
Additional Parameters Defined in this Step: Gather Advanced Parameters for Backup and
Restore MS SQL Database, continued
Default
Parameter Name Value Required Description
Compression is supported
on SQL Server 2008
Enterprise and later.
Additional Parameters Defined in this Step: Gather Advanced Parameters for Backup and
Restore MS SQL Database, continued
Default
Parameter Name Value Required Description
be specified in a format
compatible with the
configured system
datetime format.
Additional Parameters Defined in this Step: Gather Advanced Parameters for Backup and
Restore MS SQL Database, continued
Default
Parameter Name Value Required Description
Additional Parameters Defined in this Step: Gather Advanced Parameters for Backup and
Restore MS SQL Database, continued
Default
Parameter Name Value Required Description
will be used.
RESTORE - Preserve Users and Roles NO optional If set to YES, and the
database already exists,
the workflow will overwrite
the database. Valid
values: YES or NO.
Re-indexing improves
database performance.
More specifically , it
recreates all the table look-
ups and performance
tunes them according to
the new environment. This
is important when you are
restoring a database in a
new environment that it
has never seen before.
This workflow is designed for SQL script transactions to be deployed and executed against target
SQL Server databases. SQL scripts are stored and downloaded from the HPE DMA software
repository.
If the SQL scripts are embedded within a SQL script, this workflow has the ability to download the
embedded scripts from SA core, provided the location of the sub-script is same as the staging
directory. This workflow can download only one level of embedded SQL scripts.
Before running the DB Release for SQL Server workflow you need to create the SQL script file (or files).
For example:
You can customize what the workflow checks in the SQL scripts:
l SQL syntax
l A regular expression
If all the tests pass, the SQL scripts may be deployed and executed against the target SQL Server
databases.
"Prerequisites for this List of prerequisites that must be satisfied before you can run this
Workflow" workflow
"How this Workflow Information about what the workflow does, including validation checks
Works" performed, and steps executed
"How to Run this Instructions for running this workflow in your environment
Workflow"
Dependencies
The latest HPE DMA solution packs require the latest HPE DMA platform. To use the latest
solution packs, update the HPE DMA platform. HPE DMA10.50 solution packs are supported on
HPE DMA10.50 (and later).
l An SQL Server instance and its databases should already be provisioned and added to the
Environment section—this can be accomplished by using Discovery.
l The SQL scripts must be available in the HPE DMA software repository.
l You have installed the osql or SQLCMD utility and made it accessible via the user/password settings
stored in the metadata. Check the Environment page for those settings. If there is no metadata, the
connection will use Windows authentication.
l You need an SA ( System Administrator) role to perform any server level or database level updates.
SQL Scripts
You need to create the SQL scripts that manage the release. The files may contain the normal
SQL Server DML and DDL commands.
Tip: List the SQL scripts in the SQL scripts parameter in the order in which they need to be
executed.
SQL Server Documentation
For more information about prerequisites for SQL Server, refer to the Microsoft SQL Server
Documentation.
Overview show
If the SQL scripts do not exist on the specified target location, they are downloaded from the software
repository.
Based on the parameters you set when you create your deployment, the workflow will do the following:
l Check the SQL code for SQL advanced features—unless specified in the exception list. If any are
found, the workflow will exit with a failure code.
l Check the SQL code for SQL database commands—unless specified in SQL commands to be
excluded from the check. If any are found, the workflow will exit with a failure code.
l Check the SQL code for any SQL database links—if any are found, the workflow will exit with a
failure code.
l Check the SQL code for syntax errors—if any are found, the workflow will exit with a failure code.
l Check the SQL code for any SQL system grants—unless specified in the exception list. If any are
found, the workflow will exit with a failure code.
l Check the SQL code for a regular expression that you specify—if any matches are found, the
workflow will exit with a failure code.
If there were no errors in the checks and the Run Flag is set, the workflow uses the osql or SQLCMD
utility to execute the SQL script files.
1. If you set the Run Flag to Check SQL Advanced Features, the workflow searches for any instance
configuration options—unless included in your exclusion list. These are instance level settings
that most users shouldn't be changing, for example, startup procs and xp_cmdshell.
2. If you set the Run Flag to Check SQL Database Commands, the workflow searches the SQL
statements for the commands that you specify in SQL Commands.
3. If you set the Run Flag to Check SQL Database Links, the workflow searches the SQL
statements for OPENQUERY, OPENROWSET, and OPENDATASOURCE statements. It also
checks for this pattern: [server].[instance].[owner].[database]
4. If you set the Run Flag to Check SQL Syntax, the workflow verifies that all the SQL statements
have valid syntax.
5. If you set the Run Flag to Check SQL System Grants, the workflow searches the SQL statements
for any system level (server role) grants—unless included in your exclusion list. For example:
GRANT CONTROL SERVER TO SOMEUSER
6. If you set the Run Flag to Match Regular Expression to SQL Server Scripts and you specify a
regular expression, the workflow searches the SQL statements for any regex matches.
If any of the validations fail, the workflow will output the offending SQL line to stdout, return an error
status, and the SQL scripts will not be executed.
The "DB Release for SQL Server v2" workflow includes the following steps. Each step must complete
successfully before the next step can start. If a step fails, the workflow reports a failure and all
subsequent steps are skipped.
MS SQL - Parameters This step accepts the basic input parameters for the workflow. The
- DB Release for SQL parameters will be used in subsequent steps.
Server
Check if Download This step determines whether one or more specified files already exist on
File Exists the target server.
Check For Nested This step checks for embedded SQL scripts.
SQL files in MSSQL
SQL file
Download Software This step downloads a list of files to a specified location on the target
server.
Check SQL Advanced This step checks the SQL scripts for any advanced feature non-default
Features setting. An exception list can be specified to exclude specific advanced
features from the check.
Check SQL Database This step checks the SQL scripts to ensure that specific types of SQL
Commands database commands—as specified in the SQL Commands parameter—are
not included.
Check SQL Database This step checks an SQL Script for any database link usage.
Links
Check SQL Syntax This step verifies the syntax of an SQL Server Script. The step assumes
that a go statement on its own line signifies the end of a code block.
Check SQL System This step checks an SQL Script for any system level (server role) grants.
Grants An exception list can be specified to exclude specific privileges from the
check.
Match Regular This step applies a regular expression to each SQL statement in an SQL
Expression to SQL Script file. If any regex matches are found, they are output to stdout and
Server Scripts an error is returned.
Run SQL Server This step executes SQL Scripts using osql.exe. This step is only executed
Script v2 if all the previous checks passed.
Note: For input parameter descriptions and defaults, see "Parameters for DB Release for SQL
Server v2" on page 92.
The workflow provides default values for some parameters. These default values are usually sufficient
for a "typical" installation. You can override the defaults by specifying parameter values in the
deployment. You can also expose additional parameters in the workflow, if necessary, to accomplish
more advanced scenarios. Any parameters not explicitly specified in the deployment will have the
default values listed in "Parameters for DB Release for SQL Server v2" on page 92.
Note: Before following this procedure, review the "Prerequisites for this Workflow" on page 79,
and ensure that all requirements are satisfied.
2. Determine the values that you will specify for the following parameters:
Input Parameters for MS SQL - Parameters - DB Release for SQL Server
Parameter Default
Name Value Required Description
File List no default required Comma-separated list of the files that contain the SQL
scripts that will be checked.
Staging C:\Temp\ optional The directory that contains the SQL scripts that will be
Directory checked.
Database master optional The name of the database to which the specified
Name SQL scripts will be applied.
Run Flag Y optional Flag to indicate whether the workflow should run the
SQL Server script. Valid values are Y (run the check) or N
(do not run the check).
Note: See "Parameters for DB Release for SQL Server v2" on page 92 for detailed
descriptions of all input parameters for this workflow, including default values.
3. In the workflow editor, expose any additional parameters that you need. You will specify values for
those parameters when you create the deployment or at runtime.
4. Save the changes to the workflow (click Save in the lower right corner).
6. On the Parameters tab, specify values (or set the type to Runtime Value) for the required
parameters listed in step 2 and any additional parameters that you have exposed. You do not need
to specify values for those parameters whose default values are appropriate for your environment.
7. On the Targets tab, specify one or more targets for this deployment.
9. Run the workflow using this deployment, specifying any runtime parameters.
The workflow will complete and report SUCCESS on the Console if it has run successfully. If an error
occurs during workflow execution, the error is logged, and the workflow terminates in the FAILURE
state.
Log in to your database to make sure that whatever you created or modified was actually done.
The workflow writes the execution output for SQL script execution in the HPE DMA Steplog.
Sample Scenarios
This topic shows you typical parameter values for different use cases for the "DB Release for SQL
Server v2" workflow.
Scenario 1: Check the SQL script files for disallowed commands, check the syntax, then
deploy and execute the scripts show
You only need to specify the File List and the Staging Directory since this scenario takes advantage of
many parameter defaults. The workflow will check the SQL script files for:
l All of the SQL database commands that are in the default SQL Commands parameter
l SQL syntax
l All the SQL system grants—except those in the default Exception List parameter
As long as no error is discovered in the checks, the SQL scripts will be deployed and executed on the
target SQL Server databases.
Determine the values that you will specify for the following parameters:
Input Parameters for MS SQL - Parameters - DB Release for SQL Server
Parameter
Name Example Value Description
File List sqlserverscript.sql Comma-separated list of the files that contain the SQL scripts
that will be checked.
Note: List the SQL script files in the order in which they
need to be executed.
Staging C:\Temp\ The directory that contains the SQL scripts that will be
Directory checked.
Be sure that the default values for all remaining input parameters are appropriate for your environment
(see "Parameters for DB Release for SQL Server v2" on page 92).
Scenario 2: Check the SQL script files for disallowed commands, check the syntax, configure
Windows domain user using runtime parameters, but do not deploy and execute the scripts
show
This scenario takes advantage of many parameter defaults and also demonstrates some optional
parameters. The workflow will check the SQL script files for:
l All of the SQL database commands that are in the default SQL Commands parameter
l SQL syntax
l All the SQL system grants—except those in the default Exception List parameter
Note: You may want to run this workflow against a MS SQL instance that can only be accessed
by a Windows user with a temporary password. By using a runtime parameter for the password,
you can ensure that the password used is always the latest.
To specify the Windows domain user at the time you execute a deployment with runtime
parameters, perform the following additional steps:
1. When you make a copy of the workflow, expand the appropriate step, and then set the
Windows domain user parameters—Instance Account and Instance Password—to
- User selected -.
2. When you create a deployment from the copy of the workflow, set the parameter types to
Runtime Value.
3. When you execute the deployment, specify the Windows domain user account and
password.
This workflow run will only report the results of the checks. The SQL scripts will NOT be deployed and
executed on the target SQL Server databases.
Determine the values that you will specify for the following parameters:
Input Parameters for MS SQL - Parameters - DB Release for SQL Server
Parameter
Name Example Value Description
File List sqlserverscript.sql Comma-separated list of the files that contain the SQL
scripts that will be checked.
Input Parameters for MS SQL - Parameters - DB Release for SQL Server, continued
Parameter
Name Example Value Description
Instance Domain\DomainUserAcct The Windows account that will perform the release
Account management.
Note: Enter at
runtime.
Instance DomainUserPswd The password for the Windows account that will
Password perform the release management.
Note: Enter at
runtime.
Staging C:\Temp\ The directory that contains the SQL scripts that will be
Directory checked.
Database mydb The name of the database to which the specified SQL scripts will be
Name applied.
Run Flag N Flag to indicate whether the workflow should run the SQL Server script.
Valid values are Y (run the check) or N (do not run the check).
Note: Some of these parameters are not exposed by default in the deployment.
Be sure that the default values for all remaining input parameters are appropriate for your environment
(see "Parameters for DB Release for SQL Server v2" on the next page).
Note: Only those parameters that are configurable in a standard deployment are listed here. Input
parameters that must be mapped to output parameters of previous steps are not listed.
Input Parameters Defined in this Step: MS SQL - Parameters - DB Release for SQL Server
Parameter Default
Name Value Required Description
Display 2000 optional The number of characters of a SQL batch that is displayed
SQL when an error occurs. Enter "0" to display the entire code.
Length
Note: Displaying the entire code may cause performance
issues for your browser.
File List no default required Comma-separated list of the files that contain the SQL scripts
that will be checked.
Note: List the SQL script files in the order in which they
need to be executed.
Instance no default optional The Windows account that will perform the release
Account management.
Instance no default optional The password for the Windows account that will perform the
Password release management.
Staging C:\Temp\ optional The directory that contains the SQL scripts that will be
Directory checked.
Additional Input Parameters Defined in this Step: Check SQL Advanced Features
Default
Parameter Name Value Required Description
Additional Input Parameters Defined in this Step: Check SQL Advanced Features, continued
Default
Parameter Name Value Required Description
Additional Input Parameters Defined in this Step: Check SQL Database Commands
Parameter Name Default Value Required Description
Additional Input Parameters Defined in this Step: Check SQL Database Links
Default
Parameter Name Value Required Description
Additional Input Parameters Defined in this Step: Check SQL System Grants
Parameter Name Default Value Required Description
Additional Input Parameters Defined in this Step: Match Regular Expression to SQL Server
Scripts
Default
Parameter Name Value Required Description
Database master optional The name of the database to which the specified SQL scripts will
Name be applied.
Run Flag Y optional Flag to indicate whether the workflow should run the SQL Server
script. Valid values are Y (run the check) or N (do not run the
check).
"Prerequisites for this List of prerequisites that must be satisfied before you can run this
Workflow" on the next page workflow
"How this Workflow Works" Information about what the workflow does, including validation
on page 97 checks performed, steps executed, and step descriptions
"How to Run this Workflow" Instructions for running this workflow in your environment
on page 98
The latest HPE DMA solution packs require the latest HPE DMA platform. To use the latest
solution packs, update the HPE DMA platform. HPE DMA10.50 solution packs are supported on
HPE DMA10.50 (and later).
l You have permission to create, edit, and deploy copies of the workflows included in this solution
pack.
For more information about prerequisites for MS SQL database, refer to the MS SQL Server
Documentation.
The MS SQL Drop Database workflow includes the following steps. Each step must complete
successfully before the next step can start. If a step fails, the workflow reports a failure and all
subsequent steps are skipped.
MS SQL Check This step validates the existence of the database. Access to the master database
Database is required for validation.
Exists
MS SQL Kill This step kills all the currently running user processes on the target database.
Processes
MS SQL Drop This step drops the target database. To run this step, ensure that there are no
Database active connections prior to running this step by running the "MS SQL: Kill
Processes" step.
MS SQL Check This step validates the existence of a database. Access to the master database is
Database required for validation.
Exists
Remove This step removes the database from the DMA environment. This step takes the
Database from Instance Name and Database Name as input parameters. If the Instance Name
Environment and Database Name are not provided as input parameters, then the database
V2 against which the workflow is being executed will be removed from the DMA
environment.
Note: For input parameter descriptions and defaults, see "Parameters for MS SQL - Drop
Database" on page 100.
The workflow provides default values for some parameters. These default values are usually sufficient
for a "typical" installation. You can override the defaults by specifying parameter values in the
deployment. You can also expose additional parameters in the workflow, if necessary, to accomplish
more advanced scenarios. Any parameters not explicitly specified in the deployment will have the
default values listed in "Parameters for MS SQL - Drop Database" on page 100.
Note: Before following this procedure, review the "Prerequisites for this Workflow" on page 96,
and ensure that all requirements are satisfied.
2. Determine the values that you will specify for the following parameters:
Note: There are no mandatory parameters required to run this workflow. All parameters are
optional. You may need to expose additional parameters depending on your objectives.
See "Parameters for MS SQL - Drop Database" on page 100 for detailed descriptions of all
input parameters for this workflow, including default values.
3. In the workflow editor, expose any additional parameters that you need. You will specify values for
those parameters when you create the deployment or at runtime.
4. Save the changes to the workflow (click Save in the lower right corner).
6. On the Parameters tab, specify values (or set the type to Runtime Value) for the required
parameters listed in step 2 and any additional parameters that you have exposed. You do not need
to specify values for those parameters whose default values are appropriate for your environment.
7. On the Targets tab, specify one or more targets for this deployment.
9. Run the workflow using this deployment, specifying any runtime parameters.
The workflow will complete and report SUCCESS on the Console if it has run successfully. If an error
occurs during workflow execution, the error is logged, and the workflow terminates in the FAILURE
state. Also verify by checking that the target database no longer appears in the DMA Environment
section.
"Prerequisites for this Workflow" on List of prerequisites that must be satisfied before you can
the next page run this workflow
"How this Workflow Works" on page Information about what the workflow does, including
102 validation checks performed, steps executed, and step
descriptions
"How to Run this Workflow" on page Instructions for running this workflow in your environment
104
"Parameters for MS SQL - Upgrade List of input parameters for this workflow
Standalone SQL Instance" on page
106
The latest HPE DMA solution packs require the latest HPE DMA platform. To use the latest
solution packs, update the HPE DMA platform. HPE DMA10.50 solution packs are supported on
HPE DMA10.50 (and later).
l You have permission to create, edit, and deploy copies of the workflows included in this solution
pack.
For more information about prerequisites for MS SQL database, refer to the MS SQL Server
Documentation.
The MS SQL - Upgrade Standalone SQL Instance workflow includes the following steps. Each step
must complete successfully before the next step can start. If a step fails, the workflow reports a failure
and all subsequent steps are skipped.
MS SQL - This step gathers all the required parameters for a standalone SQL Server upgrade.
Parameters -
Upgrade
Standalone
MS SQL - This step gathers all the optional parameters for a standalone SQL Server upgrade.
Advanced All advanced parameters are hidden in the deployment screen by default. In order to
Parameters - activate an advanced parameter, go into the Workflow, and change the parameter
Upgrade mapping from on this step from Blank to User Input.
Standalone
Check If This step is designed to facilitate the complicated methodologies that various
Download companies use to distribute their software bundles for installation.
File Exists
MS SQL - This step verifies that all required parameters are provided, and writes any optional
Create Install parameters to the template file if they are non-blank.
or Upgrade
Template
Unzip This step is to unzip a zip archive, verify if the input file exists, ensure the output
Archive directory exists, creates required directories, and deploys archived files.
MS SQL - This step verifies that all required parameters are provided, and the system meets
Simulate - minimum requirements.
Install or
Upgrade
MS SQL - This step installs SQL Server 2008 by running the setup.exe program located on the
Install or installation media.
Upgrade
MS SQL This step determines if the target instance name of SQL Server is currently installed.
Verify SQL
Installation
Discover This step audits the server's physical environment looking for SQLServer instances
SQL and databases.
Databases
Windows This step is to wait 8 minutes for Windows server to finish restart.
Wait for
Restart
MS SQL - This installs SL Server 2008 by running the setup.exe program located on the
Install or installation media.
Upgrade
MS SQL This step determines if the target instance name of SQL Server is currently installed.
Verify SQL
Installation
Note: For input parameter descriptions and defaults, see "Parameters for MS SQL - Upgrade
Standalone SQL Instance" on page 106.
The workflow provides default values for some parameters. These default values are usually sufficient
for a "typical" installation. You can override the defaults by specifying parameter values in the
deployment. You can also expose additional parameters in the workflow, if necessary, to accomplish
more advanced scenarios. Any parameters not explicitly specified in the deployment will have the
default values listed in "Parameters for MS SQL - Upgrade Standalone SQL Instance" on page 106.
Note: Before following this procedure, review the "Prerequisites for this Workflow" on page 101,
and ensure that all requirements are satisfied.
2. Determine the values that you will specify for the following parameters:
Note: There are no mandatory parameters required to run this workflow. All parameters are
optional. You may need to expose additional parameters depending on your objectives.
See "Parameters for MS SQL - Upgrade Standalone SQL Instance" on page 106 for detailed
descriptions of all input parameters for this workflow, including default values.
3. In the workflow editor, expose any additional parameters that you need. You will specify values for
those parameters when you create the deployment or at runtime.
4. Save the changes to the workflow (click Save in the lower right corner).
6. On the Parameters tab, specify values (or set the type to Runtime Value) for the required
parameters listed in step 2 and any additional parameters that you have exposed. You do not need
to specify values for those parameters whose default values are appropriate for your environment.
7. On the Targets tab, specify one or more targets for this deployment.
9. Run the workflow using this deployment, specifying any runtime parameters.
The workflow will complete and report SUCCESS on the Console if it has run successfully. If an error
occurs during workflow execution, the error is logged, and the workflow terminates in the FAILURE
state. Also verify by checking that the target database no longer appears in the DMA Environment
section.
Note: Only those parameters that are configurable in a standard deployment are listed here. Input
parameters that must be mapped to output parameters of previous steps are not listed.
Download no default optional The name of the ZIP file containing the SQL
From Software Server setup files
Directory
Download no default required The local directory where the SQL Setup files
Target should be stored.
Destination
Instance MSSQLSERVER required The name of the newly created instance. Use
Name MSSQLSERVER for the default instance, any
other alphanumeric value for a named instance.
Installation Path no optional Specifies the location for the SQL Server program files.
default
Installer Account no optional The Windows account that will be performing the
default installation.
Additional Parameters Defined in this Step: MS SQL - Advanced Parameters - Upgrade Stan-
dalone, continued
Default
Parameter Name Value Required Description
Product Key no optional Specifies the product key for the edition of SQL Server. If
default this parameter is not specified, Evaluation is used.
Skip Simulation no optional If set to "YES", workflow will skip Simulate step and
default proceed directly to install/upgrade step.
"Prerequisites for this List of prerequisites that must be satisfied before you can run this
Workflow" on the next page workflow
"How this Workflow Works" Information about what the workflow does, including validation
on page 110 checks performed, steps executed, and step descriptions
"How to Run this Workflow" Instructions for running this workflow in your environment
on page 112
The latest HPE DMA solution packs require the latest HPE DMA platform. To use the latest
solution packs, update the HPE DMA platform. HPE DMA10.50 solution packs are supported on
HPE DMA10.50 (and later).
l You have permission to create, edit, and deploy copies of the workflows included in this solution
pack.
For more information about prerequisites for MS SQL database, refer to the MS SQL Server
Documentation.
Uninstalls a SQL Server patch on a standalone 2005/2008/2008R2 instance. The default deployment
will only show required parameters.
The MS SQL Rollback Patch workflow includes the following steps. Each step must complete
successfully before the next step can start. If a step fails, the workflow reports a failure and all
subsequent steps are skipped.
MS SQL Parameters This step gathers all the required parameters for a rollback (uninstall) of
Rollback Patch a SQL Server patch.
MS SQL Gather This step gathers all the advanced parameters for a rollback (uninstall)
Advanced Parameters for of a SQL Server patch.
Rollback Patch
Windows Check for This step check for any pending reboots.
Pending Reboot
Check If Download File This step is designed to facilitate the complicated methodologies that
Exists various companies use to distribute their software bundles for
installation.
MS SQL Verify Patch This step verifies that a rollback of a Windows or SQL Server patch was
Rollback successful.
Download Software This step automates the transfer of files from the HP SA Software
Library to individual managed servers for use in downstream workflow
steps.
MS SQL Rollback Patch This step performs a rollback on a Windows or SQL Server patch.
Windows Wait for Restart This step is to wait 8 minutes for Windows server to finish restart.
Unzip Archive This step is to unzip a zip archive, verify if the input file exists, ensure
the output directory exists, creates required directories, and deploys
archived files.
MS SQL Verify Patch This step verifies that a rollback of a Windows or SQL Server patch was
Rollback successful.
Windows Check for This step checks for any pending reboots.
Pending Reboot
Discover SQL Databases This step audits the server's physical environment looking for
SQLServer instances and databases.
Windows Wait for Restart This step is to wait 8 minutes for Windows server to finish restart.
Note: For input parameter descriptions and defaults, see "Parameters for MS SQL Rollback
Patch" on page 114.
The workflow provides default values for some parameters. These default values are usually sufficient
for a "typical" installation. You can override the defaults by specifying parameter values in the
deployment. You can also expose additional parameters in the workflow, if necessary, to accomplish
more advanced scenarios. Any parameters not explicitly specified in the deployment will have the
default values listed in "Parameters for MS SQL Rollback Patch" on page 114.
Note: Before following this procedure, review the "Prerequisites for this Workflow" on page 109,
and ensure that all requirements are satisfied.
2. Determine the values that you will specify for the following parameters:
Note: There are no mandatory parameters required to run this workflow. All parameters are
optional. You may need to expose additional parameters depending on your objectives.
See "Parameters for MS SQL Rollback Patch" on page 114 for detailed descriptions of all
input parameters for this workflow, including default values.
3. In the workflow editor, expose any additional parameters that you need. You will specify values for
those parameters when you create the deployment or at runtime.
4. Save the changes to the workflow (click Save in the lower right corner).
6. On the Parameters tab, specify values (or set the type to Runtime Value) for the required
parameters listed in step 2 and any additional parameters that you have exposed. You do not need
to specify values for those parameters whose default values are appropriate for your environment.
7. On the Targets tab, specify one or more targets for this deployment.
9. Run the workflow using this deployment, specifying any runtime parameters.
The workflow will complete and report SUCCESS on the Console if it has run successfully. If an error
occurs during workflow execution, the error is logged, and the workflow terminates in the FAILURE
state. Also verify by checking that the target database no longer appears in the DMA Environment
section.
Note: Only those parameters that are configurable in a standard deployment are listed here. Input
parameters that must be mapped to output parameters of previous steps are not listed.
Patch no required Name of the patch, the KB number of the patch, or "Latest
Name default Patch" to automatically rollback latest patch on instance. This
field is case-insensitive.
"Prerequisites for this Workflow" on the next page List of prerequisites that must be satisfied
before you can run this workflow
"How this Workflow Works" on page 117 Information about what the workflow does,
including validation checks performed, steps
executed, and step descriptions
" How to Run this Workflow" on page 119 Instructions for running this workflow in your
environment
"Parameters for MSSQL - Create AlwaysOn List of input parameters for this workflow
Availability Group" on page 121
The latest HPE DMA solution packs require the latest HPE DMA platform. To use the latest
solution packs, update the HPE DMA platform. HPE DMA10.50 solution packs are supported on
HPE DMA10.50 (and later).
l Workflow needs to run against nodes that are members of the same Windows cluster.
l Each workflow target should be a standalone instance that is installed on a cluster node.
l Workflow should run under a domain account that has access to all instances to be added to new
Availability Group, as well as has access to the Windows share where backup files will be saved.
l You have permission to create, edit, and deploy copies of the workflows included in this solution
pack.
For more information about prerequisites for MySQL database, refer to the Microsoft SQL Server
Documentation.
l Creates a new AlwaysOn Availability Group on the primary target, then adds secondary replicas to
the group.
The MS SQL - Create AlwaysOn Availability Group workflow includes the following steps. Each step
must complete successfully before the next step can start. If a step fails, the workflow reports a failure
and all subsequent steps are skipped.
MS SQL - Gather This step gathers parameters to create AlwaysOn availability group.
Parameters for
AlwaysOn Group
MS SQL - Gather This steps gathers advanced parameters to create AlwaysOn availability
Advanced group.
Parameters for
AlwaysOn Group
MS SQL - Check This step checks for pre-requisites that are mandatory to create AlwaysOn
AlwaysOn group if the Windows version is greater than 2008, the installed SQL server is
Prerequisites an Enterprise edition, and the server that if the AlwaysOn group is not a domain
controller.
MS SQL - Enable This step enables the AlwaysOn feature on the instance that will be added to
AlwaysOn the AlwaysOn group.
MS SQL - Create This step creates the endpoint and grants connect permission to the created
Mirroring Endpoint endpoint.
MS SQL - Run This step triggers the execution of subflow MS SQL - Setup AlwaysOn
Setup AlwaysOn Secondary on the secondary servers.
Secondary
MS SQL - Backup This step creates backup databases on an instance (Full, Differential, or Log
Databases for backup types). The list of databases to backup can range from all databases
AlwaysOn (default), all except a select few (ignore list), or just a select few (exclusive list).
MS SQL - Backup This step creates backup databases on an instance (Full, Differential, or Log
Databases for backup types). The list of databases to backup can range from all databases
AlwaysOn (default), all except a select few (ignore list), or just a select few (exclusive list).
MS SQL - Run This step triggers the subflow MS SQL - Join Secondary to AlwaysOn Group
Join Secondary to that in turn adds the secondary server to the AlwaysOn group.
AlwaysOn Group
MS SQL - Validate This step validates, if the AlwaysOn group has been created appropriately.
AlwaysOn
Availability Group
The workflow provides default values for some parameters. These default values are usually sufficient
for a "typical" installation. You can override the defaults by specifying parameter values in the
deployment. You can also expose additional parameters in the workflow, if necessary, to accomplish
more advanced scenarios. Any parameters not explicitly specified in the deployment will have the
default values listed in "Parameters for MSSQL - Create AlwaysOn Availability Group" on page 121.
Note: Before following this procedure, review the "Prerequisites for this Workflow" on page 116,
and ensure that all requirements are satisfied.
2. Determine the values that you will specify for the parameters.
Note: There are no mandatory parameters required to run this workflow. All parameters are
optional. You may need to expose additional parameters depending on your objectives.
3. In the workflow editor, expose any additional parameters that you need. You will specify values for
those parameters when you create the deployment or at runtime.
4. Save the changes to the workflow (click Save in the lower right corner).
6. On the Parameters tab, specify values (or set the type to Run time Value) for the required
parameters listed in step 2 and any additional parameters that you have exposed. You do not need
to specify values for those parameters whose default values are appropriate for your environment.
7. On the Targets tab, specify one or more targets for this deployment.
9. Run the workflow using this deployment, specifying any runtime parameters.
The workflow will complete and report SUCCESS on the Console if it has run successfully. If an error
occurs during workflow execution, the error is logged, and the workflow terminates in the FAILURE
state. The database will be removed from the DMA environment section upon SUCCESS as well.
Use SQL Server Management Studio to verify that Availability Group has been created (see
http://msdn.microsoft.com/en-us/library/ff878267.aspx for more information).
Parameters Defined in this Step: MS SQL - Gather Parameters for AlwaysOn Group
Paramete Require
r Name Default Value d Description
Mirroring 4022 required Specifies the port number listened to for connections by
Endpoint the service broker TCP/IP protocol. Default is 4022.
Port Valid values are between 1024 and 32767.
Path to no default required A Windows share location that all the cluster nodes can
Share for access, which will store backup files for the group
Backup databases.
Files
Primary SYNCHRONOU required Specifies whether the primary replica has to wait for the
Availabilit S secondary replica to acknowledge the hardening
y Mode (writing) of the log records to disk before the primary
replica can commit the transaction on a given primary
database. Valid values are SYNCHRONOUS and
ASYNCHRONOUS.
Primary AUTOMATIC required Specifies the failover mode of the primary instance.
Failover Valid values are AUTOMATIC and MANUAL.
Mode
Parameters Defined in this Step: MS SQL - Gather Parameters for AlwaysOn Group, continued
Paramete Require
r Name Default Value d Description
Parameters Defined in this Step: MS SQL - Gather Advanced Parameters for AlwaysOn Group
Parameter Default
Name Value Required Description
Instance no default optional Password for the instance that will be added to AlwaysOn
Password group.
Instance User no default optional User account to access the instance that will be added to
AlwaysOn group.
Server1\Instance1,Server2\Instance2,Server3\Instance3.
Primary Port 4022 optional Specifies the port number listened to for connections by
Number the service broker TCP/IP protocol. Default is 4022. Valid
values are between 1024 and 32767.
Secondary no default optional Comma-separated list of port numbers that will be used
Port Numbers on the secondary server.
Subflow yes optional Value to represent whether all the secondary can be
Parallel joined to the primary in parallel. Default is yes. Valid
Execution values are true, false, yes, and no.
"Prerequisites" on page 137 List of prerequisites that must be satisfied before you can run this
workflow
"How this workflow works" on Information about what the workflow does, including validation
page 138 checks performed, steps executed, and step descriptions
"How to run this workflow" on Instructions for running this workflow in your environment
page 139
"Parameters for MS SQL - Add List of input parameters for this workflow
Node to Cluster" on page 144
Prerequisites
Before performing the procedures in this section, your environment must meet the following minimum
requirements:
l Installation software:
The SQL Server 2008, 2008 R2, or 2012 software installation files, obtained from Microsoft.
The installation media must be available locally or available for download from the software
repository.
l Storage:
CREATE LOGIN
If a non-default database owner is specified and does not exist, permission to create the appropriate
login
Note: For additional information, see "Run as a Windows Domain User" in the HPE DMA
Installation Guide, available at: https://softwaresupport.hp.com/
2008 Hardware and Software Requirements for Installing SQL Server 2008
2008 R2 Hardware and Software Requirements for Installing SQL Server 2008 R2
2012 Hardware and Software Requirements for Installing SQL Server 2012
Installs a new clustered instance of SQL Server 2008, 2008 R2, 2012, or 2014 on an already existing
Windows 2008/2008 R2/2012/2012 R2 cluster.
Steps Executed
The MS SQL - Install Clustered SQL Instance workflow includes the following steps. Each step must
complete successfully before the next step can start. If a step fails, the workflow reports a failure and
all subsequent steps are skipped.
MS SQL - Gather This step gathers all the required parameters for a clustered SQL 2008
Parameters For Install install.
Clustered SQL Instance
MS SQL - Gather This step gathers all the optional parameters for a clustered SQL 2008
Advanced Parameters For install.
Install Clustered SQL
Instance
Check If Download File This step is designed to facilitate the complicated methodologies that
Exists various companies use to distribute their software bundles for
installation.
MS SQL - Create Install or This step verifies that all required parameters are provided, and writes
Upgrade Template any optional parameters to the template file if they are non-blank.
Download Software This step automates the transfer of files from the HP SA Software
Library to individual managed servers for use in downstream workflow
steps. Verifies checksum of each file transferred.
Unzip Archive This step unzips a "zip" archive, verifies that the input file exists,
ensures that output directory exists, creates required directories, and
deploys archived files.
Delete File This step verifies a specified file exists and deletes it.
MS SQL - Simulate - Install This step verifies that all required parameters are provided, and the
or Upgrade system meets minimum requirements.
Delete File This step verifies a specified file exists and deletes it.
MS SQL - Install or This step installs SQL Server 2008 by running the setup.exe program
Upgrade located on the installation media.
MS SQL Verify SQL This step determines if the target instance name of SQL Server is
Installation currently installed.
Delete Directory This directory verifies a specified file exists and deletes it.
Delete File This step verifies a specified file exists and deletes it.
Windows Check for Check for any pending reboots. This ensures that an installation can
Pending Reboot be run without a prior reboot requirement.
Discover SQL Databases Audits the server's physical environment looking for SQLServer
instances and databases.
Windows Restart Server Restarts a system Input Wait Time: The number of seconds to wait
before the reboot.
Delete File This step verifies a specified file exists and deletes it.
Windows Check for Checks for any pending reboots. This ensures that an installation can
Pending Reboot be run without a prior reboot requirement.
Windows Wait for Restart Waits 8 minutes for Windows server to finish restart.
Windows Restart Server Restarts a system Input Wait Time: The number of seconds to wait
before the reboot.
MS SQL - Install or This step installs SQL Server 2008 by running the setup.exe program
Upgrade located on the installation media.
Windows Wait for Restart Waits 8 minutes for Windows server to finish restart.
MS SQL Verify SQL This step determines if the target instance name of SQL Server is
Installation currently installed.
The workflow provides default values for some parameters. These default values are usually sufficient
for a "typical" installation. You can override the defaults by specifying parameter values in the
deployment. You can also expose additional parameters in the workflow, if necessary, to accomplish
more advanced scenarios. Any parameters not explicitly specified in the deployment will have the
default values listed in Parameters for MS SQL - Install Standalone SQL Instance.
Note: Before following this procedure, review the Prerequisites, and ensure that all requirements
are satisfied.
1. Create a deployable copy of the workflow (see "Create a Deployable Workflow" in HPE
DMA Quick Start Tutorial)
a. Determine the values that you will specify for the following parameters.
The following tables describe the required and optional input parameters for this workflow.
1If the file is not found on the target server(s), it will be downloaded from the software repository. For
system administrators.
Each account must either be a local
Windows user or a domain user.
This parameter is optional for
SQL Server 2008 or 2008 R2.
2. In the workflow editor, expose any additional parameters that you need. You will specify values for
those parameters when you create the deployment or at runtime.
3. Save the changes to the workflow (click Save in the lower right corner).
4. Create a new deployment. See "Create a Deployment" in HPE DMA Quick Start Tutorial for
instructions.
5. On the Parameters tab, specify values (or set the type to Runtime Value) for the required
parameters listed in step 2 and any additional parameters that you have exposed. You do not need
to specify values for those parameters whose default values are appropriate for your environment.
6. On the Targets tab, specify one or more targets for this deployment.
8. Run the workflow using this deployment, specifying any runtime parameters. See "Run Your
Workflow" in (HPE DMA Quick Start Tutorial for instructions.
The workflow will complete and report SUCCESS on the Console if it has run successfully. If an error
occurs during workflow execution, the error is logged, and the workflow terminates in the FAILURE
state.
Cluster required Win12\Administrator The Windows domain user that will run
Administrator the setup operation. This user requires
Account elevated administrator privileges on the
cluster.
Format: <DOMAIN>\<USERNAME>
Download From optional SQL12.zip The name of the ZIP file that contains
Software the SQL Server installation software
Directory files obtained from Microsoft.1
Instance Name required SQL- The name of the newly created virtual
CLUSTER\InstanceA server and instance.
1If the file is not found on the target server(s), it will be downloaded from the software repository. For
Step: MS SQL - Gather Parameters For Install Clustered SQL Instance, continued
Parameter Required Example Value Description
SQL Agent required Win12\Administrator The login account for the SQL Server
Account Agent service. Can be a local Windows
user, a domain user, or a built-in account
(for example: NT
AUTHORITY\NETWORK SERVICE).
SQL Service required Win12\Administrator The login account for the SQL service.
Account Can be a local Windows user, a domain
user, or a built-in account (for example:
NT AUTHORITY\NETWORK
SERVICE).
Step: MS SQL - Gather Parameters For Install Clustered SQL Instance, continued
Parameter Required Example Value Description
administrators.
Step: MS SQL - Gather Advanced Parameters For Install Clustered SQL Instance
Parameter Required Example Value Description
Step: MS SQL - Gather Advanced Parameters For Install Clustered SQL Instance, continued
Parameter Required Example Value Description
SQL Agent optional Win12\Administrator The login account for the SQL
Account Server Agent service. Can be a
local Windows user, a domain
user, or a built-in account (for
example, NT
AUTHORITY\NETWORK
SERVICE). If not a built-in
account, also specify SQL Agent
Password.
Step: MS SQL - Gather Advanced Parameters For Install Clustered SQL Instance, continued
Parameter Required Example Value Description
SQL Service optional Win12\Administrator The login account for the SQL
Account Server service. Can be a local
Windows user, a domain user, or a
built-in account (for example, NT
AUTHORITY\NETWORK
SERVICE). If not a built-in
account, also specify SQL Service
Password.
Step: MS SQL - Gather Advanced Parameters For Install Clustered SQL Instance, continued
Parameter Required Example Value Description
"Prerequisites" on the next page List of prerequisites that must be satisfied before you can run this
workflow
"How this workflow works" on Information about what the workflow does, including validation
page 138 checks performed, steps executed, and step descriptions
"How to run this workflow" on Instructions for running this workflow in your environment
page 139
"Parameters for MS SQL - Add List of input parameters for this workflow
Node to Cluster" on page 144
Prerequisites
Before performing the procedures in this section, your environment must meet the following minimum
requirements:
l Installation software:
The SQL Server 2008, 2008 R2, or 2012 software installation files, obtained from Microsoft.
The installation media must be available locally or available for download from the software
repository.
l Storage:
CREATE LOGIN
If a non-default database owner is specified and does not exist, permission to create the appropriate
login
Note: For additional information, see "Run as a Windows Domain User" in the HPE DMA
Installation Guide, available at: https://softwaresupport.hp.com/
2008 Hardware and Software Requirements for Installing SQL Server 2008
2008 R2 Hardware and Software Requirements for Installing SQL Server 2008 R2
2012 Hardware and Software Requirements for Installing SQL Server 2012
Steps Executed
The MS SQL - Add Node to Cluster workflow includes the following steps. Each step must complete
successfully before the next step can start. If a step fails, the workflow reports a failure and all
subsequent steps are skipped.
MS SQL - Parameters Gathers all the required parameters for a standalone SQL Server install.
- Add Node to Cluster
MS SQL - Advanced Gather all the optional parameters for a standalone SQL Server install
Parameters - Add
Node to Cluster V2
Check If Download This step is designed to facilitate the complicated methodologies that
File Exists various companies use to distribute their software bundles for installation.
MS SQL - Create This step verifies that all required parameters are provided, and writes any
Install or Upgrade optional parameters to the template file if they are non-blank.
Template
Download Software This step automates the transfer of files from the HP SA Software Library
to individual managed servers for use in downstream workflow steps.
Verifies checksum of each file transferred.
Unzip Archive This step unzips a "zip" archive, verifies that the input file exists, ensures
that output directory exists, creates required directories, and deploys
archived files.
Delete File This step verifies a specified file exists and deletes it.
MS SQL - Simulate - This step verifies that all required parameters are provided, and the system
Install or Upgrade meets minimum requirements.
Delete File This step verifies a specified file exists and deletes it.
MS SQL - Install or This step installs SQL Server 2008 by running the setup.exe program
Upgrade located on the installation media.
MS SQL Verify SQL This step determines if the target instance name of SQL Server is currently
Installation installed.
Delete Directory This directory verifies a specified file exists and deletes it.
Delete File This step verifies a specified file exists and deletes it.
Windows Check for Check for any pending reboots. This ensures that an installation can be run
Pending Reboot without a prior reboot requirement.
Discover SQL Audits the server's physical environment looking for SQLServer instances
Databases and databases.
Windows Restart Restarts a system Input Wait Time: The number of seconds to wait before
Server the reboot.
Delete File This step verifies a specified file exists and deletes it.
Windows Check for Checks for any pending reboots. This ensures that an installation can be
Pending Reboot run without a prior reboot requirement.
Windows Wait for Waits 8 minutes for Windows server to finish restart.
Restart
Windows Restart Restarts a system Input Wait Time: The number of seconds to wait before
Server the reboot.
MS SQL - Install or This step installs SQL Server 2008 by running the setup.exe program
Upgrade located on the installation media.
Windows Wait for Waits 8 minutes for Windows server to finish restart.
Restart
MS SQL Verify SQL This step determines if the target instance name of SQL Server is currently
Installation installed.
The workflow provides default values for some parameters. These default values are usually sufficient
for a "typical" installation. You can override the defaults by specifying parameter values in the
deployment. You can also expose additional parameters in the workflow, if necessary, to accomplish
more advanced scenarios. Any parameters not explicitly specified in the deployment will have the
default values listed in "Parameters for MS SQL - Add Node to Cluster" on page 144.
Note: Before following this procedure, review the "Prerequisites" on page 137, and ensure that all
requirements are satisfied.
1. Create a deployable copy of the workflow (see "Create a Deployable Workflow" in HPE
DMA Quick Start Tutorial)
a. Determine the values that you will specify for the following parameters.
The following tables describe the required and optional input parameters for this workflow.
1If the file is not found on the target server(s), it will be downloaded from the software repository. For
2. In the workflow editor, expose any additional parameters that you need. You will specify values for
those parameters when you create the deployment or at runtime.
3. Save the changes to the workflow (click Save in the lower right corner).
4. Create a new deployment. See "Create a Deployment" in HPE DMA Quick Start Tutorial for
instructions.
5. On the Parameters tab, specify values (or set the type to Runtime Value) for the required
parameters listed in step 2 and any additional parameters that you have exposed. You do not need
to specify values for those parameters whose default values are appropriate for your environment.
6. On the Targets tab, specify one or more targets for this deployment.
8. Run the workflow using this deployment, specifying any runtime parameters. See "Run Your
Workflow" in (HPE DMA Quick Start Tutorial for instructions.
The workflow will complete and report SUCCESS on the Console if it has run successfully. If an error
occurs during workflow execution, the error is logged, and the workflow terminates in the FAILURE
state.
Cluster required Win12\Administrator The Windows domain user that will run
Administrator the setup operation. This user requires
Account elevated administrator privileges on the
cluster.
Format: <DOMAIN>\<USERNAME>
Download From optional SQL12.zip The name of the ZIP file that contains
Software the SQL Server installation software
Directory files obtained from Microsoft.1
1If the file is not found on the target server(s), it will be downloaded from the software repository. For
Instance Name required SQL- The name of the newly created virtual
CLUSTER\InstanceA server and instance.
1For additional information, see Alternative methods for specifying input files.
SQL Agent optional Win12\Administrator The login account for the SQL
Account Server Agent service. Can be a
local Windows user, a domain user,
or a built-in account (for example,
NT AUTHORITY\NETWORK
SERVICE). If not a built-in account,
also specify SQL Agent Password.
"Prerequisites" below List of prerequisites that must be satisfied before you can run this
workflow
"How this workflow works" on Information about what the workflow does, including validation
the next page checks performed, steps executed, and step descriptions
"How to run this workflow" on Instructions for running this workflow in your environment
page 149
Prerequisites
Before performing the procedures in this section, your environment must meet the following minimum
requirements:
l Installation software:
The SQL Server 2008, 2008 R2, or 2012 software installation files, obtained from Microsoft.
The installation media must be available locally or available for download from the software
repository.
l Storage:
CREATE LOGIN
If a non-default database owner is specified and does not exist, permission to create the appropriate
login
Note: For additional information, see "Run as a Windows Domain User" in the HPE DMA
Installation Guide, available at: https://softwaresupport.hp.com/
2008 Hardware and Software Requirements for Installing SQL Server 2008
2008 R2 Hardware and Software Requirements for Installing SQL Server 2008 R2
2012 Hardware and Software Requirements for Installing SQL Server 2012
Steps Executed
The MS SQL - Create Database workflow includes the following steps. Each step must complete
successfully before the next step can start. If a step fails, the workflow reports a failure and all
subsequent steps are skipped.
MS SQL Parameters Gather and validate parameters for Create Database workflow.
Create Database
MS SQL Advanced Gather and validate optional parameters for Create Database workflow.
Parameters Create
Database
MS SQL Drop Database Drops target database. Ensure that there are no active connections prior
to running this step by running the "MS SQL: Kill Processes" step.
MS SQL Verify Server Validates SQL server logins as well as Windows-authenticated server
Login logins.
MS SQL Set Database This step evaluates a comma-delimited list of option and value pairs, and
Options sets the various database options.
Discover SQL Audits the server's physical environment looking for SQLServer
Databases instances and databases.
The workflow provides default values for some parameters. These default values are usually sufficient
for a "typical" installation. You can override the defaults by specifying parameter values in the
deployment. You can also expose additional parameters in the workflow, if necessary, to accomplish
more advanced scenarios. Any parameters not explicitly specified in the deployment will have the
default values listed in "Parameters for MS SQL - Create Database" on page 153.
Note: Before following this procedure, review the "Prerequisites" on page 147, and ensure that all
requirements are satisfied.
1. Create a deployable copy of the workflow (see "Create a Deployable Workflow" in HPE
DMA Quick Start Tutorial)
a. Determine the values that you will specify for the following parameters.
The following tables describe the required and optional input parameters for this workflow.
Additional ?
Database Options
and Values
Collation ?
Compatibility Level ?
expressed as [integer]
[KB,MB,GB,%] or 0 (unlimited).
Default Database ?
Instance Password ? ?
2. In the workflow editor, expose any additional parameters that you need. You will specify values for
those parameters when you create the deployment or at runtime.
3. Save the changes to the workflow (click Save in the lower right corner).
4. Create a new deployment. See "Create a Deployment" in HPE DMA Quick Start Tutorial for
instructions.
5. On the Parameters tab, specify values (or set the type to Runtime Value) for the required
parameters listed in step 2 and any additional parameters that you have exposed. You do not need
to specify values for those parameters whose default values are appropriate for your environment.
6. On the Targets tab, specify one or more targets for this deployment.
8. Run the workflow using this deployment, specifying any runtime parameters. See "Run Your
Workflow" in (HPE DMA Quick Start Tutorial for instructions.
The workflow will complete and report SUCCESS on the Console if it has run successfully. If an error
occurs during workflow execution, the error is logged, and the workflow terminates in the FAILURE
state.
Web Service required lll Password for the HPE DMA Discovery
Password web service API.
Default Database ?
Instance Password ? ?
Feedback on Workflows for SQL Server (Database and Middleware Automation 10.50)
If no email client is available, copy the information above to a new message in a web mail client, and
send your feedback to hpe_dma_docs@hpe.com.