This document supports the version of each product listed and
supports all subsequent versions until the document is
replaced by a new edition. To check for more recent editions
of this document, see http://www.vmware.com/support/pubs.
EN-001380-00
Using VMware vRealize Orchestrator Plug-Ins
You can find the most up-to-date technical documentation on the VMware Web site at:
http://www.vmware.com/support/
The VMware Web site also provides the latest product updates.
If you have comments about this documentation, submit your feedback to:
3401 Hillview Ave.
Palo Alto, CA 94304
www.vmware.com
2 VMware, Inc.
Contents
Using VMware vRealize Orchestrator Plug-Ins9
Introduction to Orchestrator Plug-Ins11
1
Orchestrator Architecture 11
Plug-Ins Installed with the Orchestrator Server 12
Access the Orchestrator API Explorer 15
Configure the Orchestrator Plug-Ins17
2
Using the vCenter Server Plug-In19
3
Configuring the vCenter Server Plug-In 19
Configuration Workflows 19
Configure the Connection to a vCenter Server Instance 20
vCenter Server Plug-In Scripting API 21
Using the vCenter Server Plug-In Inventory 21
Access the vCenter Server Plug-In Workflow Library 21
vCenter Server Plug-In Workflow Library 22
Batch Workflows 24
Cluster and Compute Resource Workflows 25
Configuration Workflows 25
Custom Attributes Workflows 26
Datacenter Workflows 26
Datastore and Files Workflows 27
Datacenter Folder Management Workflows 27
Host Folder Management Workflows 27
Virtual Machine Folder Management Workflows 28
Guest Operation Files Workflows 28
Guest Operation Processes Workflows 29
Power Host Management Workflows 29
Basic Host Management Workflows 29
Host Registration Management Workflows 30
Networking Workflows 30
Distributed Virtual Port Group Workflows 30
Distributed Virtual Switch Workflows 31
Standard Virtual Switch Workflows 31
Networking Virtual SAN Workflows 32
Resource Pool Workflows 32
Storage Workflows 32
Storage DRS Workflows 33
Storage VSAN Workflows 34
Basic Virtual Machine Management Workflows 34
VMware, Inc.
3
Using VMware vRealize Orchestrator Plug-Ins
Clone Workflows 35
Linked Clone Workflows 36
Linux Customization Clone Workflows 36
Tools Clone Workflows 37
Windows Customization Clone Workflows 37
Device Management Workflows 38
Move and Migrate Workflows 38
Other Workflows 39
Power Management Workflows 40
Snapshot Workflows 41
VMware Tools Workflows 41
Using the Configuration Plug-In43
4
Access the Configuration Plug-In Workflow Library 43
Configuration Plug-In Workflow Library 43
Using the vCO Library Plug-In47
5
vCO Library Plug-In Workflows 47
Using the SQL Plug-In49
6
Configuring the SQL Plug-In 49
SQL Plug-In Configuration Workflows 49
Add a Database 50
Add Tables to a Database 50
Update a Database 51
Running the SQL Sample Workflows 52
Generate a JDBC URL 52
Test a JDBC Connection 52
Create a Table by Using JDBC 53
Insert a Row into a JDBC Table 53
Select Rows from a JDBC Table 54
Delete an Entry from a JDBC Table 54
Delete All Entries from a JDBC Table 55
Drop a JDBC Table 55
Run a Complete JDBC Cycle 56
Using the SQL Plug-In Standard Workflows 56
SQL Plug-In Workflow Library 56
Generate CRUD Workflows for a Table 57
Using the SSH Plug-In59
7
Configure the SSH Plug-In 59
Running the SSH Plug-In Sample Workflows 59
Generate a Key Pair 60
Change the Key Pair Passphrase 61
Register an Orchestrator Public Key on an SSH Host 61
Run an SSH Command 61
Copy a File from an SSH Host 62
Copy a File to an SSH Host 63
4 VMware, Inc.
Contents
Using the XML Plug-In65
8
Running the XML Plug-In Sample Workflows 65
Create a Simple XML Document 66
Find an Element in an XML Document 66
Modify an XML Document 67
Create an Example Address Book from XML 67
Using the Mail Plug-In69
9
Define the Default SMTP Connection 69
Using the Mail Plug-In Sample Workflows 70
Access the Mail Plug-In Sample Workflows 70
Mail Plug-In Sample Workflows 70
Test an Example Interaction with Email 71
Using the Net Plug-In73
10
Using the Enumeration Plug-In75
11
Time Zone Codes 75
Using the Workflow Documentation Plug-In79
12
Workflow Library for the Workflow Documentation Plug-In 79
Generate Workflow Documentation 79
Using the HTTP-REST Plug-In81
13
Configuring the HTTP-REST Plug-In 81
Configuration Workflows 81
Configure Kerberos Authentication 82
Add a REST Host 82
Add a REST Operation 83
Add a Schema to a REST Host 84
Generate a New Workflow from a REST Operation 84
Invoke a REST Operation 85
Using the SOAP Plug-In87
14
Configuring the SOAP Plug-In 87
Configuration Workflows 87
Add a SOAP Host 88
Configure Kerberos Authentication 89
Generate a New Workflow from a SOAP Operation 90
Test a Custom-Generated Workflow 90
Invoke a SOAP Operation 91
Using the AMQP Plug-In93
15
Configuring the AMQP Plug-In 93
Configuration Workflows 93
Add a Broker 93
VMware, Inc. 5
Using VMware vRealize Orchestrator Plug-Ins
Subscribe to Queues 94
Update a Broker 95
Using the AMQP Plug-In Standard Workflows 95
Declare a Binding 95
Declare a Queue 96
Declare an Exchange 97
Send a Text Message 97
Delete a Binding 98
Using the SNMP Plug-In99
16
Managing SNMP Devices 99
Device Management Workflows 99
Register an SNMP Device 100
Managing SNMP Queries 100
Query Management Workflows 100
Add a Query to an SNMP Device 101
Managing the SNMP Trap Host 101
Trap Host Management Workflows 102
Set the SNMP Trap Port 102
Receiving SNMP Traps 102
Wait for a Trap on an SNMP Device 102
Set a Trap Policy 103
Edit a Trap Policy 103
Generic SNMP Request Workflows 104
Using the Active Directory Plug-In105
17
Configuring the Active Directory Plug-In 105
Active Directory Configuration Workflows 105
Using the Active Directory Plug-In Workflow Library 105
Using the Active Directory Plug-In Inventory 106
Access the Active Directory Plug-In Workflow Library 106
Active Directory Plug-In Workflows 106
Using the Dynamic Types Plug-In109
18
Dynamic Types Configuration Workflows 109
Using the PowerShell Plug-In111
19
Using the PowerShell Plug-In Inventory 111
Configuring the PowerShell Plug-In 112
Configuration Workflows 112
Configure Kerberos Authentication 112
Add a PowerShell Host 113
Running PowerShell Scripts 114
Invoke a PowerShell Script 114
Invoke an External Script 114
Generating Actions 115
Generate an Action from a PowerShell Script 115
Generate an Action for a PowerShell Cmdlet 116
6 VMware, Inc.
Passing Invocation Results Between Actions 117
PowerCLI Integration with the PowerShell Plug-In 117
Converter Workflows 117
Sample Workflows 117
Access the PowerShell Plug-In API 118
Working with PowerShell Results 118
Examples of Scripts for Common PowerShell Tasks 119
Troubleshooting 121
Servers Not Found in Kerberos Database 121
Unable to Obtain a Kerberos Ticket 121
Kerberos Authentication Fails Due to Time Differences 121
Kerberos Authentication Session Mode Fails 122
Unable to Reach a Key Distribution Center for a Realm 122
Contents
Using the Multi-Node Plug-In123
20
Introduction to the vRealize Orchestrator Multi-Node Plug-In 123
Configuring the Multi-Node Plug-In 124
Servers Configuration Workflows 124
Add an Orchestrator Server 124
Using Proxy Workflows 125
Synchronous Proxy Workflows 125
Asynchronous Proxy Workflows 126
Remote Execution Workflows 126
Using the Multi-Node Plug-In Inventory 127
Remote Management Workflows 127
Access the Multi-Node Plug-In API 128
Multi-Node Plug-In Use Cases 128
Create a Multi-Proxy Action 128
Maintenance of Remote and Proxy Workflows 130
Deploy a Package from a Local Server 130
Index133
VMware, Inc. 7
Using VMware vRealize Orchestrator Plug-Ins
8 VMware, Inc.
Using VMware vRealize Orchestrator Plug-Ins
Using VMware vRealize Orchestrator Plug-Ins provides information and instructions about configuring and
using the standard set of plug-ins installed with VMware® vRealize Orchestrator.
Intended Audience
This information is intended for advanced vSphere administrators and experienced system administrators
who are familiar with virtual machine technology and datacenter operations.
VMware, Inc. 9
Using VMware vRealize Orchestrator Plug-Ins
10 VMware, Inc.
Introduction to Orchestrator Plug-Ins1
With the Orchestrator plug-ins, you can access and control external technologies and applications. Exposing
an external technology in an Orchestrator plug-in lets you incorporate objects and functions in workflows
and run workflows on the objects of that external technology.
The external technologies that you access by using plug-ins include virtualization management tools, email
systems, databases, directory services, and remote control interfaces.
Orchestrator provides a standard set of preinstalled plug-ins, which expose the VMware vCenter Server
API, email and authentication capabilities, and other technologies. In addition, the Orchestrator open plugin architecture lets you to develop plug-ins to access other applications. Orchestrator implements open
standards to simplify integration with external systems. For information about developing custom content,
see Developing with VMware vRealize Orchestrator.
The standard set of plug-ins is automatically installed with the Orchestrator server. You might need to
configure some of the plug-ins, for example the vCenter Server plug-in, before start using them.
Plug-ins extend the Orchestrator scripting engine with new object types and methods, and plug-ins publish
notification events from the external system that triggers events in Orchestrator and in the plugged-in
technology. Plug-ins provide an inventory of JavaScript objects that you can access on the Inventory tab of
the Orchestrator client. Each plug-in contains packages of workflows and actions that you can run on the
objects in the inventory to automate the typical use cases of the integrated product.
This chapter includes the following topics:
“Orchestrator Architecture,” on page 11
n
“Plug-Ins Installed with the Orchestrator Server,” on page 12
n
“Access the Orchestrator API Explorer,” on page 15
n
Orchestrator Architecture
Orchestrator contains a workflow library and a workflow engine to allow you to create and run workflows
that automate orchestration processes. You run workflows on the objects of different technologies that
Orchestrator accesses through a series of plug-ins.
Orchestrator provides a standard set of plug-ins, including a plug-in for vCenter Server, to allow you to
orchestrate tasks in the different environments that the plug-ins expose.
Orchestrator also presents an open architecture to allow you to plug in external third-party applications to
the orchestration platform. You can run workflows on the objects of the plugged-in technologies that you
define yourself. Orchestrator connects to an authentication provider to manage user accounts, and to a
database to store information from the workflows that it runs. You can access Orchestrator, the Orchestrator
workflows, and the objects it exposes through the Orchestrator client interface, or through Web services.
Orchestrator includes a collection of standard plug-ins. Each plug-in exposes an external product API to the
Orchestrator platform. Plug-ins provide inventory classes, extend the scripting engine with new object
types, and publish notification events from the external system. Each plug-in also provides a library of
workflows for automating the typical use cases of the integrated product.
You can see the list of the installed plug-ins on the Plug-ins tab in the Orchestrator configuration interface.
For the plug-ins that require configuration, there are separate tabs in the interface.
Table 1‑1. Plug-Ins Installed with Orchestrator
Plug-InPurposeConfiguration
vCenter ServerProvides access to the vCenter Server API so that you can
incorporate all of the vCenter Server objects and functions
into the management processes that you automate by
using Orchestrator.
ConfigurationProvides workflows for configuring the Orchestrator
authentication, database connection, SSL certificates, and
so on.
vCO LibraryProvides workflows that act as basic building blocks for
customization and automation of client processes. The
workflow library includes templates for lifecycle
management, provisioning, disaster recovery, hot backup,
and other standard processes. You can copy and edit the
templates to modify them according to your needs.
SQLProvides the Java Database Connectivity (JDBC) API,
which is the industry standard for database-independent
connectivity between the Java programming language and
a wide range of databases. The databases include SQL
databases and other tabular data sources, such as
spreadsheets or flat files. The JDBC API provides a calllevel API for SQL-based database access from workflows.
See “Configuring the vCenter Server
Plug-In,” on page 19.
None
None
None
12 VMware, Inc.
Chapter 1 Introduction to Orchestrator Plug-Ins
Table 1‑1. Plug-Ins Installed with Orchestrator (Continued)
Plug-InPurposeConfiguration
SSHProvides an implementation of the Secure Shell v2 (SSH-2)
protocol. Allows remote command and file transfer
sessions with password and public key-based
authentication in workflows. Supports keyboardinteractive authentication. Optionally, the SSH plug-in can
provide remote file system browsing directly in the
Orchestrator client inventory.
XMLA complete Document Object Model (DOM) XML parser
that you can implement in workflows. Alternatively, you
can use the ECMAScript for XML (E4X) implementation in
the Orchestrator JavaScript API.
MailUses Simple Mail Transfer Protocol (SMTP) to send email
from workflows.
NetWraps the Jakarta Apache Commons Net Library. Provides
implementations of Telnet, FTP, POP3, and IMAP. The
POP3 and IMAP part is used for reading email. In
combination with the Mail plug-in, the Net plug-in
provides complete email sending and receiving capabilities
in workflows.
Workflow documentationProvides workflows that let you generate information in
PDF format about a workflow or a workflow category.
EnumerationProvides common enumerated types that can be used in
workflows by other plug-ins.
HTTP-RESTLets you manage REST Web services by providing
interaction between vRealize Orchestrator and REST hosts.
SOAPLets you manage SOAP Web services by providing
interaction between vRealize Orchestrator and SOAP
hosts.
AMQPLets you interact with Advanced Message Queuing
Protocol (AMQP) servers also known as brokers.
SNMPEnables vRealize Orchestrator to connect and receive
information from SNMP-enabled systems and devices.
Active DirectoryProvides interaction between vRealize Orchestrator and
Microsoft Active Directory.
Dynamic TypesLets you define dynamic types and create and use objects
of these dynamic types.
Multi-NodeContains workflows for hierarchical orchestration,
management of Orchestrator instances, and scale-out of
Orchestrator activities.
PowerShellLets you manage PowerShell hosts and run custom
PowerShell operations.
See “Configure the SSH Plug-In,” on
page 59.
None
Set the default values for the
EmailMessage object to use.
See “Define the Default SMTP
Connection,” on page 69.
None
None
None
See “Configuring the HTTP-REST
Plug-In,” on page 81.
See “Configuring the SOAP Plug-
In,” on page 87.
See “Configuring the AMQP Plug-
In,” on page 93.
None
See “Configuring the Active
Directory Plug-In,” on page 105.
See Chapter 18, “Using the Dynamic
Types Plug-In,” on page 109.
See Chapter 20, “Using the Multi-
Node Plug-In,” on page 123.
See Chapter 19, “Using the
PowerShell Plug-In,” on page 111.
Plug-In Components
Each plug-in is a DAR file package. The DAR files are stored in Orchestrator_installation_path\app-
server\plugins on the Orchestrator server system. The components of each plug-in, such as workflow
categories and API modules, use different naming conventions.
VMware, Inc. 13
Using VMware vRealize Orchestrator Plug-Ins
Table 1‑2. Names of Plug-In Components
Plug-In Name in the
Configuration UIDAR File
vCenter Server
vRO Configuration
vCO Library
SQL
SSH
XML
Mail
Net
Workflow
documentation
Common
enumerated types
Dynamic Types
HTTP-RESTConfiguration
SOAP
AMQP
SNMP
Active DirectoryComputer
OrchestratorServers
PowerShell
o11nplugin-vsphere.dar
o11nplugin-configurator.dar
o11nplugin-library.dar
o11nplugin-database.dar
o11nplugin-ssh.dar
o11nplugin-xml.dar
o11nplugin-mail.dar
o11nplugin-jakartacommonsnet.dar
o11nplugin-wfdocs.dar
o11nplugin-enums.dar
o11n-plugin-dynamictypes.dar
o11n-plugin-soap.dar
o11n-plugin-amqp.dar
o11n-plugin-snmp.dar
o11nplugin-powershell.dar
Workflow
CategoriesAPI Module
vCenter
Configuration
Locking
VC
Configurator
Not applicable.
Orchestrator
Troubleshooting
JDBC
SQL
SQL
SSH
XML
Mail
None
Workflow
SSH
XML
Mail
Net
Workflow documentation
documentation
None
Configuration
Enums
DynamicTypes
REST
Configuration
Configuration
Device
SOAP
AMQP
SNMP
Management
Query
Management
Trap Host
Management
AD
Configuration
Organizational
Unit
User
User Group
VCO
Configuration
Remote Execution
Remote
Management
Tasks
Workflows
Configuration
PowerShell
Generate
Templates
14 VMware, Inc.
Access the Orchestrator API Explorer
Orchestrator provides an API Explorer that you can use to search the Orchestrator API and see the
documentation for JavaScript objects that you can use in scripted elements.
You can consult an online version of the Scripting API for the vCenter Server plug-in on the Orchestrator
documentation home page.
Procedure
1Log in to the Orchestrator client.
2Select Tools > API Explorer.
The API Explorer appears. You can use it to search all the objects and functions of the Orchestrator API.
What to do next
Use the API Explorer to write scripts for scriptable elements.
Chapter 1 Introduction to Orchestrator Plug-Ins
VMware, Inc. 15
Using VMware vRealize Orchestrator Plug-Ins
16 VMware, Inc.
Configure the Orchestrator Plug-Ins2
To deploy the standard set of plug-ins when the Orchestrator server starts, the Orchestrator system must
authenticate against an LDAP or vCenter Single Sign-On server. You first specify the administrative
credentials that Orchestrator uses with the plug-ins, and enable or disable plug-ins.
If you change the Orchestrator database after configuring and installing the plug-ins, you must click the
Reset current version link on the Troubleshooting tab. This operation deletes the install_directory\app-
server\conf\plugins\_VSOPluginInstallationVersion.xml file, which contains information about the
version of the plug-ins already installed, and forces plug-in reinstallation.
Prerequisites
Set up an LDAP or vCenter Single Sign-On server and configure the Orchestrator authentication settings.
Procedure
1Log in to the Orchestrator configuration interface as vmware.
2Click Plug-ins.
3Type the credentials for a user who is a member of the Orchestrator administrators group that you
specified on the Authentication tab.
When the Orchestrator server starts, the system uses these credentials to set up the plug-ins. The system
checks the enabled plug-ins and performs any necessary internal installations such as package import,
policy run, script launch, and so on.
VMware, Inc.
4(Optional) To disable a plug-in, deselect the check box next to it.
This action does not remove the plug-in file.
5Click Apply changes.
The first time the server starts, it installs the selected plug-ins.
What to do next
You can configure the settings for Mail and SSH plug-ins.
17
Using VMware vRealize Orchestrator Plug-Ins
18 VMware, Inc.
Using the vCenter Server Plug-In3
You can use the vCenter Server plug-in to manage multiple vCenter Server instances. You can create
workflows that use the vCenter Server plug-in API to automate tasks in your vCenter Server environment.
The vCenter Server plug-in maps the vCenter Server API to the JavaScript that you can use in workflows.
The plug-in also provides actions that perform individual vCenter Server tasks that you can include in
workflows.
The vCenter Server plug-in provides a library of standard workflows that automate vCenter Server
operations. For example, you can run workflows that create, clone, migrate, or delete virtual machines.
This chapter includes the following topics:
“Configuring the vCenter Server Plug-In,” on page 19
n
“vCenter Server Plug-In Scripting API,” on page 21
n
“Using the vCenter Server Plug-In Inventory,” on page 21
n
“Access the vCenter Server Plug-In Workflow Library,” on page 21
n
“vCenter Server Plug-In Workflow Library,” on page 22
n
Configuring the vCenter Server Plug-In
Before managing the objects in your vSphere inventory by using Orchestrator and to run workflows on the
objects, you must configure the vCenter Server plug-in and define the connection parameters between
Orchestrator and the vCenter Server instances you want to orchestrate.
You can configure the vCenter Server plug-in by running the vCenter Server configuration workflows from
the Orchestrator client.
To manage the objects in your vSphere inventory by using the vSphere Web Client, make sure that you
configure the Orchestrator server to work with the same vCenter Single Sign-On instance to which both
vCenter Server and vSphere Web Client are pointing. You must also ensure that Orchestrator is registered as
a vCenter Server extension. You register Orchestrator as a vCenter Server extension when you specify a user
(by providing the user name and password), who has the privileges to manage vCenter Server extensions.
Configuration Workflows
The Configuration workflow category of the vCenter Server plug-in contains workflows that let you manage
the connections to vCenter Server instances.
You can access these workflows from Library > vCenter > Configuration in the Workflows view of the
Orchestrator client.
VMware, Inc.
19
Using VMware vRealize Orchestrator Plug-Ins
Workflow NameDescription
Add a vCenter Server instanceConfigures Orchestrator to connect to a new vCenter Server instance so that you
can run workflows over the objects in the vSphere infrastructure.
List the vRealize Orchestrator
extensions of vCenter Server
Register Orchestrator as a vCenter
Server extension
Remove a vCenter Server instanceRemoves a vCenter Server instance from the Orchestrator inventory. You will no
Update a vCenter Server instanceUpdates the connection to a vCenter Server instance. For example, if the IP
Unregister a vCenter Server
extension
Lists all vRealize Orchestrator extensions of vCenter Server.
Registers the Orchestrator instance as a vCenter Server extension.
longer be able to orchestrate this vCenter Server instance.
address of your vCenter Server system changes, you must update the connection
parameters to the vCenter Server instance so that you can manage your vSphere
inventory with Orchestrator.
Unregisters a vSphere Web Client extension.
Configure the Connection to a vCenter Server Instance
In addition to configuring the vCenter Server plug-in by using the Orchestrator configuration interface, you
can configure the connections to vCenter Server instances by running the vCenter Server configuration
workflows in the Orchestrator client.
Procedure
1Log in to the Orchestrator client as an administrator.
2Click the Workflows view in the Orchestrator client.
3In the workflows hierarchical list, select Library > vCenter > Configuration and navigate to the Add a
vCenter Server instance workflow.
4Right-click the Add a vCenter Server instance workflow and select Start workflow.
5Type the IP address or the DNS name of the machine on which the vCenter Server instance you want to
add is installed.
6Retain the default port value, 443.
7Keep the default location of the SDK to use to connect to your vCenter Server instance.
8Select whether you want to orchestrate the vCenter Server instance, and click Next.
9Select whether you want to ignore certificates warnings for the vCenter Server instances you want to
add.
If you select Yes, the vCenter Server instance certificate is accepted silently and the certificate is added
to the trusted store.
20 VMware, Inc.
Chapter 3 Using the vCenter Server Plug-In
10 Select the method you want to use to manage user access on the vCenter Server system.
OptionDescription
Share a unique session
Session per user
Allows Orchestrator to create only one connection to vCenter Server.
In the User name and Password text boxes, type the credentials for
Orchestrator to use to establish the connection to the vCenter Server host.
The user that you select must be a valid user with privileges to manage
vCenter Server extensions and a set of custom defined privileges.
Orchestrator uses these credentials to monitor the vCenter Web service,
typically to operate Orchestrator system workflows.
Creates a new session to vCenter Server. This might rapidly use CPU,
memory, and bandwidth.
Select this option only if your vCenter Server is in an Active Directory
domain or if vCenter Server Single Sign-On is enabled.
The user that you select must be a valid user with privileges to manage
vCenter Server extensions.
The user account that you select is also used by the policy engine to collect statistical and other data. If
the user that you select does not have enough privileges, the policy engine cannot access the necessary
parts of the vCenter Server inventory and thus cannot collect the necessary data.
11 (Optional) Type the user domain.
You must specify the user domain name only when you select to use a shared session.
NOTE Fill this field if you are using LDAP authentication and session per user is selected.
12 Click Submit to run the workflow.
After the workflow runs successfully, the vCenter Server instance and all vSphere objects that belong to it
appear in the Inventory view.
vCenter Server Plug-In Scripting API
The vCenter Server scripting API contains classes, with their respective attributes, methods, and
constructors that allow interaction between vRealize Orchestrator and vCenter Server. You can use the API
to develop custom workflows.
The vCenter Server plug-in exposes all objects of the connected vCenter Server instances in the Inventory
view. You can use the Inventory tab to add authorization elements or to run workflows on vCenter Server
objects.
If you enable the Use contextual menu in inventory option from the Inventory tab of the User preferences
tool, all of the workflows that you can run on the selected inventory object appear in a pop-up menu.
Access the vCenter Server Plug-In Workflow Library
You must use the Orchestrator client or the vSphere Web Client to access the elements from the
vCenter Server plug-in workflow library.
Prerequisites
Configure a connection to a vCenter Server Instance.
n
Log in to the Orchestrator client as a user who can run vCenter Server workflows.
n
VMware, Inc. 21
Using VMware vRealize Orchestrator Plug-Ins
Procedure
1Log in to the Orchestrator client and select Design or Run from the drop-down menu in the left upper
corner.
2Click the Workflows view in the Orchestrator client left pane.
3Expand the hierarchical list to Library > vCenter.
What to do next
Review the workflow library.
vCenter Server Plug-In Workflow Library
The vCenter Server plug-in workflow library contains workflows that you can use to run automated
processes related to the management of vCenter Server.
Batch Workflows on page 24
n
Batch workflows populate configuration elements or run workflows on a selected vCenter Server
object.
Cluster and Compute Resource Workflows on page 25
n
With cluster and compute resource workflows, you can create, rename or delete a cluster, and enable
or disable high availability, Distributed Resource Scheduler, and vCloud Distributed Storage on a
cluster.
Configuration Workflows on page 25
n
The Configuration workflow category of the vCenter Server plug-in contains workflows that let you
manage the connections to vCenter Server instances.
Custom Attributes Workflows on page 26
n
With custom attributes workflows, you can add custom attributes to virtual machines or get a custom
attribute for a virtual machine.
Datacenter Workflows on page 26
n
With datacenter workflows, you can create, delete, reload, rename, or rescan a datacenter.
Datastore and Files Workflows on page 27
n
With datastore and files workflows, you can delete a list of files, find unused files in a datastore, and
so on.
Datacenter Folder Management Workflows on page 27
n
With datacenter folder management workflows, you can create, delete, or rename a datacenter folder.
Host Folder Management Workflows on page 27
n
With host folder management workflows, you can create, delete, or rename a host folder.
Virtual Machine Folder Management Workflows on page 28
n
With virtual machine folder management workflows, you can create, delete, or rename a virtual
machine folder.
Guest Operation Files Workflows on page 28
n
With guest operation files workflows, you can manage files in a guest operating system.
Guest Operation Processes Workflows on page 29
n
With guest operation processes workflows, you can get information and control the running processes
in a guest operating system.
22 VMware, Inc.
Chapter 3 Using the vCenter Server Plug-In
Power Host Management Workflows on page 29
n
With power host management workflows you can reboot or shut down a host.
Basic Host Management Workflows on page 29
n
With basic host management workflows, you can put a host into maintenance mode, make a host exit
maintenance mode, move a host to a folder or a cluster, and reload data from a host.
Host Registration Management Workflows on page 30
n
With host registration management workflows, you can add a host to a cluster, disconnect or
reconnect a host from a cluster, and so on.
Networking Workflows on page 30
n
With networking workflows you can add a port group to distributed virtual switch, create a
distributed virtual switch with a port group, and so on.
Distributed Virtual Port Group Workflows on page 30
n
With distributed virtual port group workflows you can update or delete a port group, and reconfigure
the port group.
Distributed Virtual Switch Workflows on page 31
n
With distributed virtual switch workflows, you can create, update or delete a distributed virtual
switch, and create, delete, or update a private VLAN.
Standard Virtual Switch Workflows on page 31
n
With standard virtual switch workflows you can create, update, or delete a standard virtual switch,
and create, delete, or update port groups in standard virtual switches.
Networking Virtual SAN Workflows on page 32
n
With Virtual SAN workflows you can configure Virtual SAN network traffic.
Resource Pool Workflows on page 32
n
With resource pool workflows you can create, rename, reconfigure or delete a resource pool, and get
resource pool information.
Storage Workflows on page 32
n
With storage workflows you can perform storage-related operations.
Storage DRS Workflows on page 33
n
With storage DRS workflows you perform storage-related operations, such as creating and
configuring a datastore cluster, removing a datastore from cluster, adding storage to a cluster, and so
on.
Storage VSAN Workflows on page 34
n
With Virtual SAN workflows you can manage non-SSD disks and disk groups in Virtual SAN cluster
Basic Virtual Machine Management Workflows on page 34
n
With basic virtual machine management workflows you can perform basic operations on virtual
machines, for example, create, rename or delete a virtual machine, upgrade virtual hardware, and so
on.
Clone Workflows on page 35
n
With clone workflows you can clone virtual machines with or without customizing the virtual
machine properties.
Linked Clone Workflows on page 36
n
With linked clone workflows, you can perform linked clone operations such as restoring a virtual
machine from a linked clone, creating a linked clone, and so on.
VMware, Inc. 23
Using VMware vRealize Orchestrator Plug-Ins
Linux Customization Clone Workflows on page 36
n
With Linux customization workflows you can clone a Linux virtual machine and customize the guest
operating system.
Tools Clone Workflows on page 37
n
With tools clone workflows you can obtain customization information about the operating system of
the virtual machine, information needed to update a virtual device, and so on.
Windows Customization Clone Workflows on page 37
n
With Windows customization clone workflows you can clone Windows virtual machines and
customize the guest operating system.
Device Management Workflows on page 38
n
With device management workflows you can manage the devices that are connected to a virtual
machine or to a host datastore.
Move and Migrate Workflows on page 38
n
With move and migrate workflows, you can migrate virtual machines.
Other Workflows on page 39
n
With other workflows, you can enable and disable Fault Tolerance (FT), extract virtual machine
information, and find orphaned virtual machines.
Power Management Workflows on page 40
n
With power management workflows, you can power on and off virtual machines, reboot the guest
operating system of a virtual machine, suspend a virtual machine, and so on.
Snapshot Workflows on page 41
n
With snapshot workflows, you can perform snapshot-related operations.
VMware Tools Workflows on page 41
n
With VMware Tools workflows, you can perform VMware Tools-related tasks on virtual machines.
Batch Workflows
Batch workflows populate configuration elements or run workflows on a selected vCenter Server object.
You can access the batch workflows from Library > vCenter > Batch in the Workflows view of the
Orchestrator client.
Fill batch configuration
elements
Populates the configuration elements that the Run a workflow on a selection
of objects workflow uses. Performs the following tasks:
Resets the BatchObject and BatchAction configuration elements.
n
Fills the BatchObject configuration element with all of the workflows
n
that have only one input parameter.
Fills the BatchAction configuration element with all of the actions that
n
have no input parameters or one input parameter and that have an array
as the returnType.
Run a workflow on a
selection of objects
Runs a workflow on a selection of vCenter Server objects, taking one action
as input. This is the action that retrieves the list of objects on which to run the
workflow. To return the objects without running the selected workflow, run
the workflow in simulation mode.
24 VMware, Inc.
Chapter 3 Using the vCenter Server Plug-In
Cluster and Compute Resource Workflows
With cluster and compute resource workflows, you can create, rename or delete a cluster, and enable or
disable high availability, Distributed Resource Scheduler, and vCloud Distributed Storage on a cluster.
You can access the cluster and compute resource workflows from Library > vCenter > Cluster and ComputeResource in the Workflows view of the Orchestrator client.
Add DRS virtual
machine group to
cluster
Add virtual machines to
DRS group
Create cluster
Delete cluster
Disable DRS on cluster
Disable HA on cluster
Disable vCloud
Distributed Storage on
cluster
Enable DRS on cluster
Enable HA on cluster
Enable vCloud
Distributed Storage on
cluster
Remove virtual machine
DRS group from cluster
Adds a DRS virtual machine group to a cluster.
Adds a virtual machine list to an existing DRS virtual machine group.
Creates a new cluster in a host folder.
Deletes a cluster.
Disables DRS on a cluster.
Disables high availability on a cluster.
Disables vCloud Distributed Storage on a cluster.
Enables DRS on a cluster.
Enables high availability on a cluster.
Enables vCloud Distributed Storage on a cluster.
Removes a DRS virtual machine group from a cluster.
Remove virtual
machines from DRS
group
Rename cluster
Removes virtual machines from a cluster DRS group.
Renames a cluster.
Configuration Workflows
The Configuration workflow category of the vCenter Server plug-in contains workflows that let you manage
the connections to vCenter Server instances.
You can access these workflows from Library > vCenter > Configuration in the Workflows view of the
Orchestrator client.
Add a vCenter Server
instance
List the Orchestrator
extensions of vCenter
Server
VMware, Inc. 25
Configures Orchestrator to connect to a new vCenter Server instance so that
you can run workflows over the objects in the vSphere infrastructure.
Lists all Orchestrator extensions of vCenter Server.
Using VMware vRealize Orchestrator Plug-Ins
Register Orchestrator
as a vCenter Server
extension
Remove a vCenter
Server instance
Update a vCenter Server
instance
Unregister a vCenter
Server extension
Registers the Orchestrator instance as a vCenter Server extension.
Removes a vCenter Server instance from the Orchestrator inventory. You
will no longer be able to orchestrate this vCenter Server instance.
Updates the connection to a vCenter Server instance. For example, if the IP
address of your vCenter Server system changes, you must update the
connection parameters to the vCenter Server instance so that you can
manage your vSphere inventory with Orchestrator.
Unregisters a vCenter Server extension.
Custom Attributes Workflows
With custom attributes workflows, you can add custom attributes to virtual machines or get a custom
attribute for a virtual machine.
You can access the custom attributes workflows from Library > vCenter > Custom Attributes in the
Workflows view of the Orchestrator client.
Add custom attribute to
a virtual machine
Add custom attribute to
multiple virtual
machines
Adds a custom attribute to a virtual machine.
Adds a custom attribute to a selection of virtual machines.
Get custom attribute
Gets a custom attribute for a virtual machine in vCenter Server.
Datacenter Workflows
With datacenter workflows, you can create, delete, reload, rename, or rescan a datacenter.
You can access the datacenter workflows from Library > vCenter > Datacenter in the Workflows view of the
Orchestrator client.
Create datacenter
Delete datacenter
Reload datacenter
Rename datacenter
Rescan datacenter
HBAs
Creates a new data center in a data center folder.
Deletes a data center.
Forces vCenter Server to reload data from a data center.
Renames a data center and waits for the task to complete.
Scans the hosts in a data center and initiates a rescan on the host bus
adapters to discover new storage.
26 VMware, Inc.
Chapter 3 Using the vCenter Server Plug-In
Datastore and Files Workflows
With datastore and files workflows, you can delete a list of files, find unused files in a datastore, and so on.
You can access the datastore and files workflows from Library > vCenter > Datastore and Files in the
Workflows view of the Orchestrator client.
Delete all files
Delete all unused
datastore files
Export unused
datastore files
Find unused files in
datastores
Get all configuration,
template, and disk files
from virtual machines
Log all datastore files
Log unused datastore
files
Upload file to datastore
Deletes a list of files.
Searches all datastores in the vCenter Server environment and deletes all
unused files.
Searches all datastores and creates an XML descriptor file that lists all
unused files.
Searches the vCenter Server environment for all unused disks (*.vmdk),
virtual machines (*.vmx), and template (*.vmtx) files that are not associated
with any vCenter Server instances registered with Orchestrator.
Creates a list of all virtual machine descriptor files and a list of all virtual
machine disk files, for all datastores.
Creates a log for every virtual machine configuration file and every virtual
machine file found in all datastores.
Searches the vCenter Server environment for unused files that are registered
on virtual machines and exports a log of the files in a text file.
Uploads a file to an existing folder on a specific datastore. The uploaded file
will overwrite any existing file with the same name in the same destination
folder.
Datacenter Folder Management Workflows
With datacenter folder management workflows, you can create, delete, or rename a datacenter folder.
You can access the datacenter folder management workflows from Library > vCenter > Folder management> Datacenter folder in the Workflows view of the Orchestrator client.
Create datacenter folder
Delete datacenter folder
Rename datacenter
folder
Creates a data center folder.
Deletes a data center folder and waits for the task to complete.
Renames a data center folder and waits for the task to complete.
Host Folder Management Workflows
With host folder management workflows, you can create, delete, or rename a host folder.
You can access the host folder management workflows from Library > vCenter > Folder management >Host folder in the Workflows view of the Orchestrator client.
Create host folder
Delete host folder
Rename host folder
Creates a host folder.
Deletes a host folder and waits for the task to complete.
Renames a host folder and waits for the task to complete.
VMware, Inc. 27
Using VMware vRealize Orchestrator Plug-Ins
Virtual Machine Folder Management Workflows
With virtual machine folder management workflows, you can create, delete, or rename a virtual machine
folder.
You can access the virtual machine folder management workflows from Library > vCenter > Foldermanagement > VM folder in the Workflow view of the Orchestrator client.
Create virtual machine
folder
Delete virtual machine
folder
Rename virtual machine
folder
Creates a virtual machine folder.
Deletes a virtual machine folder and waits for the task to complete.
Renames a virtual machine folder and waits for the task to complete.
Guest Operation Files Workflows
With guest operation files workflows, you can manage files in a guest operating system.
You can access the guest operation files workflows from Library > vCenter > Guest operations > Files in the
Workflows view of the Orchestrator client.
Check for directory in
guest
Check for file in guest
Copy file from guest to
Orchestrator
Copy file from
Orchestrator to guest
Create directory in
guest
Verifies that a directory exists in a guest virtual machine.
Verifies that a file exists in a guest virtual machine.
Copies a specified file from a guest file system to an Orchestrator server.
Copies a specified file from an Orchestrator server to a guest file system.
Creates a directory in a guest virtual machine.
Create temporary
directory in guest
Create temporary file in
guest
Delete directory in
guest
Delete file in guest
List path in guest
Move directory in guest
Move file in guest
28 VMware, Inc.
Creates a temporary directory in a guest virtual machine.
Creates a temporary file in a guest virtual machine.
Deletes a directory from a guest virtual machine.
Deletes a file from a guest virtual machine.
Shows a path in a guest virtual machine.
Moves a directory in a guest virtual machine.
Moves a file in a guest virtual machine.
Chapter 3 Using the vCenter Server Plug-In
Guest Operation Processes Workflows
With guest operation processes workflows, you can get information and control the running processes in a
guest operating system.
You can access the guest operation files workflows from Library > vCenter > Guest operations > Processes
in the Workflows view of the Orchestrator client.
Get environment
variables from guest
Get processes from
guest
Run program in guest
Kill process in guest
Returns a list with environmental variables from a guest. An interactive
session returns the variables of the user who is currently logged in.
Returns a list with the processes running in the guest operating system and
the recently completed processes started by the API.
Starts a program in a guest operating system.
Treminates a process in a guest operating system.
Power Host Management Workflows
With power host management workflows you can reboot or shut down a host.
You can access the power host management workflows from Library > vCenter > Host management >Power in the Workflows view of the Orchestrator client.
Reboot host
Shut down host
Reboots a host. If the Orchestrator client is connected directly to the host, it
does not receive an indication of success in the returned task, but rather loses
the connection to the host if the operation succeeds.
Shuts down a host. If the Orchestrator client is connected directly to the host,
it does not receive an indication of success in the returned task, but rather
loses the connection to the host if the operation succeeds.
Basic Host Management Workflows
With basic host management workflows, you can put a host into maintenance mode, make a host exit
maintenance mode, move a host to a folder or a cluster, and reload data from a host.
You can access the basic host management workflows from Library > vCenter > Host management > Basic
in the Workflows view of the Orchestrator client.
Enter maintenance
mode
Exit maintenance mode
Move host to cluster
Move host to folder
Reload host
Puts the host into maintenance mode. You can cancel the task.
Exits maintenance mode. You can cancel the task.
Moves an existing host into a cluster. The host must be part of the same data
center, and if the host is part of a cluster, the host must be in maintenance
mode.
Moves a host into a folder as a standalone host. The host must be part of a
ClusterComputeResource in the same data center and the host must be in
maintenance mode.
Forces vCenter Server to reload data from a host.
VMware, Inc. 29
Using VMware vRealize Orchestrator Plug-Ins
Host Registration Management Workflows
With host registration management workflows, you can add a host to a cluster, disconnect or reconnect a
host from a cluster, and so on.
You can access the host management registration workflows from Library > vCenter > Host management >Registration in the Workflows view of the Orchestrator client.
Add host to cluster
Add standalone host
Disconnect host
Reconnect host
Reconnect host with all
information
Remove host
Adds a host to the cluster. This workflow fails if it cannot authenticate the
SSL certificate of the host.
Registers a host as a standalone host.
Disconnects a host from vCenter Server.
Reconnects a disconnected host by providing only the host information.
Reconnects a disconnected host by providing all information about the host.
Removes a host and unregisters it from vCenter Server. If the host is part of a
cluster, you must put it in maintenance mode before attempting to remove it.
Networking Workflows
With networking workflows you can add a port group to distributed virtual switch, create a distributed
virtual switch with a port group, and so on.
You can access the networking workflows from Library > vCenter > Networking in the Workflows view of
the Orchestrator client.
Add port group to
distributed virtual
switch
Attach host system to
distributed virtual
switch
Adds a new distributed virtual port group to a specified distributed virtual
switch.
Adds a host to a distributed virtual switch.
Create distributed
virtual switch with port
group
Creates a new distributed virtual switch with a distributed virtual port
group.
Distributed Virtual Port Group Workflows
With distributed virtual port group workflows you can update or delete a port group, and reconfigure the
port group.
You can access the distributed virtual port group workflows from Library > vCenter > Networking >Distributed virtual port group in the Workflows view of the Orchestrator client.
Connect virtual machine
NIC number to
distributed virtual port
group
Delete distributed
virtual port group
30 VMware, Inc.
Reconfigures the network connection of the specified virtual machine NIC
number to connect to the specified distributed virtual port group. If no NIC
number is specified, the number zero is used.
Deletes a specified distributed virtual port group.
Chapter 3 Using the vCenter Server Plug-In
Set teaming options
Update distributed
virtual port group
Provides an interface to manage the teaming options for a distributed virtual
port group.
Updates the configuration of a specified distributed virtual port group.
Distributed Virtual Switch Workflows
With distributed virtual switch workflows, you can create, update or delete a distributed virtual switch, and
create, delete, or update a private VLAN.
You can access the distributed virtual switch workflows from Library > vCenter > Networking >Distributed virtual switch in the Workflows view of the Orchestrator client.
Create distributed
virtual switch
Create private VLAN
Delete distributed
virtual switch
Delete private VLAN
Update distributed
virtual switch
Creates a distributed virtual switch in the specified network folder with a
name and uplink port names that you specify. You must specify at least one
uplink port name.
Creates a VLAN on the specified distributed virtual switch.
Deletes a distributed virtual switch and all associated elements.
Deletes a VLAN from a specified distributed virtual switch. If a secondary
VLAN exists, you should first delete the secondary VLAN.
Updates the properties of a distributed virtual switch.
Update private VLAN
Updates a VLAN on the specified distributed virtual switch.
Standard Virtual Switch Workflows
With standard virtual switch workflows you can create, update, or delete a standard virtual switch, and
create, delete, or update port groups in standard virtual switches.
You can access the standard virtual switch workflows from Library > vCenter > Networking > Standardvirtual switch in the Workflows view of the Orchestrator client.
Add port group in
standard virtual switch
Create standard virtual
switch
Delete port group from
standard virtual switch
Delete standard virtual
switch
Retrieve all standard
virtual switches
Update port group in
standard virtual switch
Adds a port group in a standard virtual switch.
Creates a standard virtual switch.
Deletes a port group from a standard virtual switch.
Deletes a standard virtual switch from a host's network configuration.
Retrieves all standard virtual switches from a host.
Updates the properties of a port group in a standard virtual switch.
VMware, Inc. 31
Using VMware vRealize Orchestrator Plug-Ins
Update standard virtual
switch
Update VNIC for port
group in standard
virtual switch
Updates the properties of a standard virtual switch.
Updates a VNIC associated with a port group in a standard virtual switch.
Networking Virtual SAN Workflows
With Virtual SAN workflows you can configure Virtual SAN network traffic.
You can access the networking workflows from Library > vCenter > Networking > VSAN in the Workflows
view of the Orchestrator client.
Set a cluster's VSAN
traffic network
Set a host's VSAN
traffic network
Sets a cluster's Virtual SAN traffic network.
Sets a host's Virtual SAN traffic network.
Resource Pool Workflows
With resource pool workflows you can create, rename, reconfigure or delete a resource pool, and get
resource pool information.
You can access the resource pool workflows from Library > vCenter > Resource Pool in the Workflows
view of the Orchestrator client.
Create resource pool
Create resource pool
with specified values
Delete resource pool
Get resource pool
information
Reconfigure resource
pool
Rename resource pool
Creates a resource pool with the default CPU and memory allocation values.
To create a resource pool in a cluster, the cluster must have VMware DRS
enabled.
Creates a resource pool with CPU and memory allocation values that you
specify. To create a resource pool in a cluster, the cluster must have VMware
DRS enabled.
Deletes a resource pool and waits for the task to complete.
Returns CPU and memory information about a given resource pool.
Reconfigures CPU and memory allocation configuration for a given resource
pool.
Renames a resource pool and waits for the task to complete.
Storage Workflows
With storage workflows you can perform storage-related operations.
You can access the storage workflows from Library > vCenter > Storage in the Workflows view of the
Orchestrator client.
Add datastore on
iSCSI/FC/local SCSI
Creates a datastore on a Fibre Channel, iSCSI or local SCSI disk. Only disks
that are not currently in use by an existing VMFS are applicable to new
datastore creation. The new datastore allocates the maximum available space
of the specified disk.
Add datastore on NFS
32 VMware, Inc.
Adds a datastore on an NFS server.
Chapter 3 Using the vCenter Server Plug-In
Add iSCSI target
Create VMFS for all
Adds iSCSI targets to a vCenter Server host. The targets can be of the type
Send or Static.
Creates a VMFS volume for all available disks of a specified host.
available disks
Delete datastore
Delete iSCSI target
Disable iSCSI adapter
Display all datastores
Deletes datastores from a vCenter Server host.
Deletes already configured iSCSI targets. The targets can be of type Send or
Static.
Disables the software iSCSI adapter of a specified host.
Displays the existing datastores and available disks on a specified host.
and disks
Enable iSCSI adapter
List all storage adapters
Enables an iSCSI adapter.
Lists all storage adapters of a specified host.
Storage DRS Workflows
With storage DRS workflows you perform storage-related operations, such as creating and configuring a
datastore cluster, removing a datastore from cluster, adding storage to a cluster, and so on.
You can access the storage DRS workflows from Library > vCenter > Storage > Storage DRS in the
Workflows view of the Orchestrator client.
Add datastore to cluster
Change Storage DRS
per virtual machine
configuration
Configure datastore
cluster
Create simple datastore
cluster
Create Storage DRS
scheduled task
Create virtual machine
anti-affinity rule
Create VMDK antiaffinity rule
Remove datastore
cluster
Remove datastore from
cluster
Adds datastores to a datastore cluster. Datastores must be able to connect to
all hosts to be included in the datastore cluster. Datastores must have the
same connection type to reside within a datastore cluster.
Sets Storage DRS settings for each virtual machine.
Configures datastore cluster setting values for automation and runtime rules.
Creates a simple datastore cluster with default configuration. The new
datastore cluster contains no datastores.
Creates a scheduled task for reconfiguring a datastore cluster. Only
automation and runtime rules can be set.
Creates an anti-affinity rule to indicate that all virtual disks of certain virtual
machines must be kept on different datastores.
Creates a VMDK anti-affinity rule for a virtual machine that indicates which
of its virtual disks must be kept on different datastores. The rule applies to
the virtual disks of the selected virtual machine.
Removes a datastore cluster. Removing a datastore cluster also removes all
of the settings and the alarms for the cluster from the vCenter Server system.
Removes a datastore from a datastore cluster and puts the datastore in a
datastore folder.
Remove Storage DRS
Removes a scheduled Storage DRS task.
scheduled task
VMware, Inc. 33
Using VMware vRealize Orchestrator Plug-Ins
Remove virtual machine
anti-affinity rule
Remove VMDK antiaffinity rule
Removes a virtual machine anti-affinity rule for a given datastore cluster.
Removes a VMDK anti-affinity rule for a given datastore cluster.
Storage VSAN Workflows
With Virtual SAN workflows you can manage non-SSD disks and disk groups in Virtual SAN cluster
You can access the networking workflows from Library > vCenter > Storage > VSAN in the Workflows
view of the Orchestrator client.
Add disks to a disk
group
Claim disks into disk
groups
Create a disk group
List hosts, disk groups
and disks
Remove disk groups
Remove disks from disk
groups
Adds a non-SSD disks to a Virtual SAN disk group
Claims disks for use by the Virtual SAN system and automatically creates
disk groups and/or distributes the disks into existing disk groups.
Creates a new Virtual SAN disk group.
Lists all hosts in a cluster, their disk groups and disks, used or eligible for use
by the Virtual SAN system.
Removes Virtual SAN disk groups.
Removes non-SSD disks from Virtual SAN disk groups.
Basic Virtual Machine Management Workflows
With basic virtual machine management workflows you can perform basic operations on virtual machines,
for example, create, rename or delete a virtual machine, upgrade virtual hardware, and so on.
You can access the basic virtual machine management workflows from Library > vCenter > VirtualMachine management > Basic in the Workflows view of the Orchestrator client.
Create custom virtual
machine
Create simple
dvPortGroup virtual
machine
Create simple virtual
machine
Delete virtual machine
Get virtual machines by
name
Mark as template
Mark as virtual machine
Move virtual machine to
folder
Creates a virtual machine with the specified configuration options and
additional devices.
Creates a simple virtual machine. The network used is a Distributed Virtual
Port Group.
Creates a virtual machine with the most common devices and configuration
options.
Removes a virtual machine from the inventory and datastore.
Returns a list of virtual machines from all registered vCenter Server instances
that match the provided expression.
Converts an existing virtual machine to a template, not allowing it to start.
You can use templates to create virtual machines.
Converts an existing template to a virtual machine, allowing it to start.
Moves a virtual machine to a specified virtual machine folder.
Move virtual machine to
resource pool
34 VMware, Inc.
Moves a virtual machine to a resource pool. If the target resource pool is not
in the same cluster, you must use the migrate or relocate workflows.
Chapter 3 Using the vCenter Server Plug-In
Move virtual machines
to folder
Move virtual machines
to resource pool
Register virtual machine
Reload virtual machine
Rename virtual machine
Set virtual machine
performance
Unregister virtual
machine
Upgrade virtual
machine hardware
(force if required)
Upgrade virtual
machine
Moves several virtual machines to a specified virtual machine folder.
Moves several virtual machines to a resource pool.
Registers a virtual machine. The virtual machine files must be placed in an
existing datastore and must not be already registered.
Forces vCenter Server to reload a virtual machine.
Renames an existing virtual machine on the vCenter Server system or host
and not on the datastore.
Changes performance settings such as shares, minimum and maximum
values, shaping for network, and disk access of a virtual machine.
Removes an existing virtual machine from the inventory.
Upgrades the virtual machine hardware to the latest revision that the host
supports. This workflow forces the upgrade to continue, even if VMware
Tools is out of date. If the VMware Tools is out of date, forcing the upgrade
to continue reverts the guest network settings to the default settings. To
avoid this situation, upgrade VMware Tools before running the workflow.
Upgrades the virtual hardware to the latest revision that the host supports.
An input parameter allows a forced upgrade even if VMware Tools is out of
date.
Wait for task and
answer virtual machine
question
Waits for a vCenter Server task to complete or for the virtual machine to ask
a question. If the virtual machine requires an answer, accepts user input and
answers the question.
Clone Workflows
With clone workflows you can clone virtual machines with or without customizing the virtual machine
properties.
You can access the clone workflows from Library > vCenter > Virtual Machine management > Clone in the
Workflows view of the Orchestrator client.
Clone virtual machine
from properties
Clone virtual machine,
no customization
Customize virtual
machine from
properties
Clones virtual machines by using properties as input parameters.
Clones a virtual machine without changing anything except the virtual
machine UUID.
Customizes a virtual machine by using properties as input parameters.
VMware, Inc. 35
Using VMware vRealize Orchestrator Plug-Ins
Linked Clone Workflows
With linked clone workflows, you can perform linked clone operations such as restoring a virtual machine
from a linked clone, creating a linked clone, and so on.
You can access the linked clone workflows from Library > vCenter > Virtual Machine management > Clone> Linked Clone folder and its subfolders in the Workflows view of the Orchestrator client.
Restore virtual machine
from linked clone
Set up virtual machine
for linked clone
Create a linked clone of
a Linux machine with
multiple NICs
Create a linked clone of
a Linux machine with a
single NIC
Create a linked clone of
a Windows machine
with multiple NICs and
credential
Create a linked clone of
a Windows machine
with a single NIC and
credential
Create a linked clone
with no customization
Removes a virtual machine from a linked clone setup.
Prepares a virtual machine to be link cloned.
Creates a linked clone of a Linux virtual machine, performs the guest
operating system customization, and configures up to four virtual network
cards.
Creates a linked clone of a Linux virtual machine, performs the guest
operating system customization, and configures one virtual network card.
Creates a linked clone of a Windows virtual machine and performs the guest
operating system customization. Configures up to four virtual network cards
and a local administrator user account.
Creates a linked clone of a Windows virtual machine and performs the guest
operating system customization. Configures one virtual network card and a
local administrator user account.
Creates the specified number of linked clones of a virtual machine.
Linux Customization Clone Workflows
With Linux customization workflows you can clone a Linux virtual machine and customize the guest
operating system.
You can access the Linux customization clone workflows from Library > vCenter > Virtual Machinemanagement > Clone > Linux Customization in the Workflows view of the Orchestrator client.
Clone a Linux machine
with multiple NICs
Clone a Linux machine
with a single NIC
Clones a Linux virtual machine, performs the guest operating system
customization, and configures up to four virtual network cards.
Clones a Linux virtual machine, performs the guest operating system
customization, and configures one virtual network card.
36 VMware, Inc.
Chapter 3 Using the vCenter Server Plug-In
Tools Clone Workflows
With tools clone workflows you can obtain customization information about the operating system of the
virtual machine, information needed to update a virtual device, and so on.
You can access the tools clone workflows from Library > vCenter > Virtual Machine management > Clone >Tools in the Workflows view of the Orchestrator client.
Get a virtual Ethernet
card to change the
network
Get Linux customization
Get multiple virtual
Ethernet card device
changes
Get NIC setting map
Get Windows
customization for
Sysprep with
credentials
Get Windows
customization for
Sysprep with
Unattended.txt
Get Windows
customization for
Sysprep
Returns a new ethernet card to update a virtual device. Contains only the
device key of the given virtual device and the new network.
Returns the Linux customization preparation.
Returns an array of VirtualDeviceConfigSpec objects for add and remove
operations on VirtualEthernetCard objects.
Returns the setting map for a virtual network card by using
VimAdapterMapping.
Returns customization information about the Microsoft Sysprep process,
with credentials. Workflows for cloning Windows virtual machines use this
workflow.
Returns customization information about the Microsoft Sysprep process by
using an Unattended.txt file. Workflows for cloning Windows virtual
machines use this workflow.
Returns customization information about the Microsoft Sysprep process.
Workflows for cloning Windows virtual machines use this workflow.
Windows Customization Clone Workflows
With Windows customization clone workflows you can clone Windows virtual machines and customize the
guest operating system.
You can access the Windows customization clone workflows from Library > vCenter > Virtual Machinemanagement > Clone > Windows Customization folder and its subfolder in the Workflows view of the
Orchestrator client.
Customize a Windows
machine with single NIC
and credential
Clone a thin
provisioned Windows
machine with single NIC
and credential
Clone a Windows
machine Sysprep with
single NIC and
credential
Performs guest operating system customization, configures one virtual
network card and a local administrator user account on a Windows virtual
machine.
Clones a Windows virtual machine performing the guest operating system
customization. Specifies virtual disk thin provisioning policy and configures
one virtual network card and a local administrator user account. Sysprep
tools must be available on the vCenter Server system.
Clones a Windows virtual machine performing the guest operating system
customization. Configures one virtual network card and a local
administrator user account. Sysprep tools must be available on vCenter
Server.
VMware, Inc. 37
Using VMware vRealize Orchestrator Plug-Ins
Clone a Windows
machine with multiple
NICs and credential
Clone a Windows
machine with single NIC
Clone a Windows
machine with single NIC
and credential
Clones a Windows virtual machine performing the guest operating system
customization. Configures the local administrator user account and up to
four virtual network cards. Sysprep tools must be available on the vCenter
Server system.
Clones a Windows virtual machine performing the guest operating system
customization and configures one virtual network card. Sysprep tools must
be available on the vCenter Server system.
Clones a Windows virtual machine performing the guest operating system
customization. Configures one virtual network card and a local
administrator user account. Sysprep tools must be available on the vCenter
Server system.
Device Management Workflows
With device management workflows you can manage the devices that are connected to a virtual machine or
to a host datastore.
You can access the device management workflows from Library > vCenter > Virtual Machine management> Device Management in the Workflows view of the Orchestrator client.
Add CD-ROM
Add disk
Adds a virtual CD-ROM to a virtual machine. If the virtual machine has no
IDE controller, the workflow creates one.
Adds a virtual disk to a virtual machine.
Change RAM
Convert disks to thin
provisioning
Convert independent
disks
Disconnect all
detachable devices
from a running virtual
machine
Mount CD-ROM
Mount floppy disk drive
Changes the amount of RAM of a virtual machine.
Converts thick-provisioned disks of virtual machines to thin-provisioned
disks.
Converts all independent virtual machine disks to normal disks by removing
the independent flag from the disks.
Disconnects floppy disks, CD-ROM drives, parallel ports, and serial ports
from a running virtual machine.
Mounts the CD-ROM of a virtual machine. If the virtual machine has no IDE
controller and/or CD-ROM drive, the workflow creates them.
Mounts a floppy disk drive FLP file from the ESX datastore.
Move and Migrate Workflows
With move and migrate workflows, you can migrate virtual machines.
You can access the move and migrate workflows from Library > vCenter > Virtual Machine management >Move and Migrate in the Workflows view of the Orchestrator client.
Mass migrate virtual
machines with storage
vMotion
Uses Storage vMotion to migrate a single virtual machine, a selection of
virtual machines, or all available virtual machines.
Mass migrate virtual
machines with vMotion
38 VMware, Inc.
Uses vMotion, Storage vMotion, or both vMotion and Storage vMotion to
migrate a single virtual machine, a selection of virtual machines, or all
available virtual machines.
Chapter 3 Using the vCenter Server Plug-In
Migrate virtual machine
with vMotion
Move virtual machine to
Migrates a virtual machine from one host to another by using the
MigrateVM_Task operation from the vSphere API.
Moves a list of virtual machines to another vCenter Server system.
another vCenter Server
system
Quick migrate multiple
virtual machines
Quick migrate virtual
machine
Relocate virtual
machine disks
Suspends the virtual machines if they are powered on and migrates them to
another host using the same storage.
Suspends the virtual machine if it is powered on and migrates it to another
host using the same storage.
Relocates virtual machine disks to another host or datastore while the virtual
machine is powered off by using the RelocateVM_Task operation from the
vSphere API.
Other Workflows
With other workflows, you can enable and disable Fault Tolerance (FT), extract virtual machine information,
and find orphaned virtual machines.
You can access these workflows from Library > vCenter > Virtual Machine management > Others in the
Workflows view of the Orchestrator client.
Disable FT
Disables Fault Tolerance for a specified virtual machine.
Enable FT
Extract virtual machine
information
Find orphaned virtual
machines
Get Virtual Machine by
Name and BIOS UUID
Enables Fault Tolerance for a specified virtual machine.
Returns the virtual machine folder, host system, resource pool, compute
resource, datastore, hard drive sizes, CPU and memory, network, and IP
address for a given virtual machine. Might require VMware Tools.
Lists all virtual machines in an orphaned state in the Orchestrator inventory.
Lists the VMDK and VMTX files for all datastores in the Orchestrator
inventory that have no association with any virtual machines in the
Orchestrator inventory. Sends the lists by email (optional).
Searches virtual machines by name and then filters the result with particular
universally unique identifier (UUID) in order to identify a unique virtual
machine.
NOTE This workflow is needed when DynamicOps calls
vRealize Orchestrator workflows having input parameters of
VC:VirtualMachine type in order to make the correspondence between a
particular DynamicOps and vRealize Orchestrator virtual machine.
VMware, Inc. 39
Using VMware vRealize Orchestrator Plug-Ins
Get Virtual Machine by
Name and UUID
Searches virtual machines by name and then filters the result with particular
universally unique identifier (UUID) in order to identify a unique virtual
machine.
NOTE This workflow is needed when DynamicOps calls
vRealize Orchestrator workflows having input parameters of
VC:VirtualMachine type in order to make the correspondence between a
particular DynamicOps and vRealize Orchestrator virtual machine.
Get Virtual Machine
UUID
Searches virtual machines by name and then filters the result with particular
universally unique identifier (UUID) in order to identify a unique virtual
machine.
NOTE This workflow is needed when DynamicOps calls
vRealize Orchestrator workflows having input parameters of
VC:VirtualMachine type in order to make the correspondence between a
particular DynamicOps and vRealize Orchestrator virtual machine.
Power Management Workflows
With power management workflows, you can power on and off virtual machines, reboot the guest
operating system of a virtual machine, suspend a virtual machine, and so on.
You can access the power management workflows from Library > vCenter > Virtual Machine management> Power Management in the Workflows view of the Orchestrator client.
Power off virtual
machine and wait
Reboot guest OS
Reset virtual machine
and wait
Resume virtual machine
and wait
Set guest OS to standby
mode
Shut down and delete
virtual machine
Shut down guest OS
and wait
Start virtual machine
and wait
Suspend virtual
machine and wait
Powers off a virtual machine and waits for the process to complete.
Reboots the virtual machine's guest operating system. Does not reset
nonpersistent virtual machines. VMware Tools must be running.
Resets a virtual machine and waits for the process to complete.
Resumes a suspended virtual machine and waits for the process to complete.
Sets the guest operating system to standby mode. VMware Tools must be
running.
Shuts down a virtual machine and deletes it from the inventory and disk.
Shuts down a guest operating system and waits for the process to complete.
Starts a virtual machine and waits for VMware Tools to start.
Suspends a virtual machine and waits for the process to complete.
40 VMware, Inc.
Chapter 3 Using the vCenter Server Plug-In
Snapshot Workflows
With snapshot workflows, you can perform snapshot-related operations.
You can access the snapshot workflows from Library > vCenter > Virtual Machine management >Snapshot in the Workflows view of the Orchestrator client.
Create a snapshot
Create snapshots of all
virtual machines in a
resource pool
Remove all snapshots
Remove excess
snapshots
Remove old snapshots
Remove snapshots of a
given size
Revert to current
snapshot
Revert to snapshot and
wait
Creates a snapshot.
Creates a snapshot of each virtual machine in a resource pool.
Removes all existing snapshots without reverting to a previous snapshot.
Finds virtual machines with more than a given number of snapshots and
optionally deletes the oldest snapshots. Sends the results by email.
Gets all snapshots that are older than a given number of days and prompts
the user to select which ones to delete.
Gets all snapshots that are larger than a given size and prompts the user to
confirm deletion.
Reverts to the current snapshot.
Reverts to a specific snapshot. Does not delete the snapshot.
VMware Tools Workflows
With VMware Tools workflows, you can perform VMware Tools-related tasks on virtual machines.
You can access the VMware Tools workflows from Library > vCenter > Virtual Machine management >VMware Tools in the Workflows view of the Orchestrator client.
Mount VMware tools
installer
Set console screen
resolution
Turn on time
synchronization
Unmount VMware tools
installer
Upgrade VMware tools
Upgrade VMware tools
at next reboot
VMware, Inc. 41
Mounts the VMware Tools installer on the virtual CD-ROM.
Sets the console window's resolution. The virtual machine must be powered
on.
Turns on time synchronization between the virtual machine and the ESX
server in VMware Tools.
Unmounts the VMware Tools CD-ROM.
Upgrades VMware Tools on a virtual machine.
Upgrades VMware Tools on a virtual machine without performing an
automatic reboot.
Using VMware vRealize Orchestrator Plug-Ins
42 VMware, Inc.
Using the Configuration Plug-In4
In addition to configuring Orchestrator by using the Orchestrator Web Configuration interface, you can
modify the Orchestrator server configuration settings by running workflows from the Configuration plugin.
With the Configuration plug-in you can configure the Orchestrator server networking, authentication
settings, database, and so on.
This chapter includes the following topics:
“Access the Configuration Plug-In Workflow Library,” on page 43
n
“Configuration Plug-In Workflow Library,” on page 43
n
Access the Configuration Plug-In Workflow Library
You must use the Orchestrator client to access the elements from the Configuration plug-in workflow
library.
Procedure
1From the drop-down menu in the Orchestrator client, select Run or Design.
2Click the Workflows view.
3Expand the hierarchical list to Library > Configuration.
What to do next
Review the workflow library.
Configuration Plug-In Workflow Library
The Configuration plug-in workflow library contains workflows that you can use to run automated
processes related to the configuration of vRealize Orchestrator.
Authentication Workflows
The Authentication category contains workflows related to the LDAP and vCenter Single Sign-On
authentication modes.
VMware, Inc.
43
Using VMware vRealize Orchestrator Plug-Ins
You access the workflows related to LDAP configuration from Library > Configuration > Authentication >
LDAP in the Workflows view of the Orchestrator client.
Configure Active
Directory
Configure eDirectory
Configure Embedded
LDAP
Configure OpenLDAP
Configure Sun One
Directory
You access the workflows related to the vCenter Single Sign-On configuration from Library > Configuration
> Authentication > SSO in the Workflows view of the Orchestrator client.
Changes the server authentication mode to LDAP and configures a
connection to an Active Directory LDAP server. If you try to change the
authentication settings and the new configuration is not successful, it does
not override the existing one.
Changes the server authentication mode to LDAP and configures a
connection to an eDirectory LDAP server. If you try to change the
authentication settings and the new configuration is not successful, it does
not override the existing one.
Changes the server authentication mode to LDAP and configures a
connection to an embedded LDAP server. If you try to change the
authentication settings and the new configuration is not successful, it does
not override the existing one.
Changes the server authentication mode to LDAP and configures a
connection to an OpenLDAP LDAP server. If you try to change the
authentication settings and the new configuration is not successful, it does
not override the existing one.
Changes the server authentication mode to LDAP and configures a
connection to a Sun ONE Directory LDAP server. If you try to change the
authentication settings and the new configuration is not successful, it does
not override the existing one.
Configure SSO
Changes the server authentication mode to SSO and configures a connection
to a VMware vCenter Single Sign-On server. If you try to change the
authentication settings and the new configuration is not successful, it does
not override the existing one.
Availability Workflows
The Availability category contains a workflow that configures the Orchestrator server availability mode.
You access this workflow from Library > Configuration > Availability in the Workflows view of the
Orchestrator client.
Configure server
availability
Configures the server availability mode of the Orchestrator server.
Orchestrator can run as a standalone instance or in cluster mode.
Database Workflows
The Database category contains workflows for configuring the Orchestrator database connection.
44 VMware, Inc.
Chapter 4 Using the Configuration Plug-In
You access these workflows from Library > Configuration > Database in the Workflows view of the
Orchestrator client.
Embedded database
Microsoft SQL Server
Oracle
PostgreSQL
Changes the database provider to embedded database and configures the
connection to it. If you try to change the database settings and the new
configuration is not successful, it does not override the existing one.
Changes the database provider to Microsoft SQL Server and configures the
connection to it. If you try to change the database settings and the new
configuration is not successful, it does not override the existing one.
Changes the database provider to Oracle Database and configures the
connection to it. If you try to change the database settings and the new
configuration is not successful, it does not override the existing one.
Changes the database provider to PostgreSQL and configures the connection
to it. If you try to change the database settings and the new configuration is
not successful, it does not override the existing one.
Package Signing Certificate Workflows
The Package Signing Certificate category contains a workflow that you can use for creating a certificate
database and inserting a self-signed certificate into it.
You access this workflow from Library > Configuration > Package Signing Certificate in the Workflows
view of the Orchestrator client.
Create a certificate
database and a selfsigned server certificate
Creates a certificate database and inserts a self-signed certificate into it. The
certificate is used to sign the packages created with this server.
SSL Trust Manager Workflows
The SSL Trust Manager category contains workflows that you can use for deleting and importing SSL
certificates.
You access these workflows from Library > Configuration > SSL Trust Manager workflows in the
Workflows view of the Orchestrator client.
Delete trusted
certificate
Import trusted
certificate from a file
Import trusted
certificate from URL
Deletes an SSL certificate from the server trust store.
Imports an SSL certificate from a file into the server trust store.
Imports an SSL certificate from a URL into the server trust store.
Troubleshooting Workflows
You access these workflows from Library > Configuration > Troubleshooting in the Workflows view of the
Orchestrator client.
Delete all workflow runs
Reinstall the plug-ins
when the server starts
Deletes all workflow runs.
Reinstalls the installed plug-ins when the Orchestrator server is restarted.
VMware, Inc. 45
Using VMware vRealize Orchestrator Plug-Ins
Network Workflows
You access the Network configuration workflows from Library > Configuration > Network in the
Workflows view of the Orchestrator client.
Configure the network
settings
Configures the network settings of the Orchestrator server.
License Workflows
You access the License configuration workflows from Library > Configuration > License in the Workflows
view of the Orchestrator client.
Enter license key
Use vCenter Server
license
Adds a manually provided license key.
Adds a license key by connecting to a running vCenter Server instance and
using its license.
vSphere Workflows
You access the vSphere configuration workflows from Library > Configuration > vSphere in the Workflows
view of the Orchestrator client.
vSphere configuration
Configures Single Sign-On, licensing, and the vCenter Server plug-in.
vSphere configuration connects to the vCenter Server Appliance to retrieve
relevant data.
46 VMware, Inc.
Using the vCO Library Plug-In5
You can use the vCO Library plug-in workflows as templates for customization and automation of client
processes, and to troubleshoot Orchestrator.
vCO Library Plug-In Workflows
The vCO Library plug-in provides workflows in the Locking, Orchestrator, and Troubleshooting workflow
categories.
Locking Workflows
You access these workflows from Library > Locking in the Workflows view of the Orchestrator client.
Display all locks
Locking test
Locking test (x5)
Release all locks
Shows all locks.
A test workflow that creates a lock.
A test workflow that creates five locks.
Releases all locks.
Orchestrator Task Workflows
You access these workflows from Library > Orchestrator > Tasks in the Workflows view of the Orchestrator
client.
Create recurrent task
Create task
Creates a recurrent task an returns the newly created task.
Schedules a workflow to run at a later time and date, as a task.
VMware, Inc. 47
Using VMware vRealize Orchestrator Plug-Ins
Orchestrator Workflows
You access these workflows from Library > Orchestrator > Workflows in the Workflows view of the
Orchestrator client.
Start workflows in a
series
Start workflows in
parallel
Runs a workflow multiple times in a series, one instance after the other. You
provide workflow parameters in an array. You also provide a property list,
with one property per workflow input, for each instance of the workflow
that starts. The number of properties in the array define the number of
workflow runs.
Runs a workflow multiple times, with different parameters. You provide
workflow parameters in an array. You also provide a property list, with one
property per workflow input, for each instance of the workflow that starts.
The number of properties in the array define the number of workflow runs.
Troubleshooting Workflows
You access these workflows from Library > Troubleshooting in the Workflows view of the Orchestrator
client.
Export logs and
application settings
Generates a ZIP archive of troubleshooting information that contains
configuration files and server, configuration, wrapper, and installation log
files. The output directory must exist and Orchestrator must have writing
permissions.
Tagging Workflows
You access these workflows from Library > Tagging in the Workflows view of the Orchestrator client.
Find objects by tag
List workflow tags
Tagging example
Tag workflow
Untag workflow
Finds objects by the tags assigned to them. You provide the names and
values of the tags and the workflow returns a list of the objects to which
these tags apply.
Lists the tags assigned to the workflow you specified as an input parameter.
Demonstrates workflow tagging.
Assigns a tag to a workflow. You must specify the workflow you want to tag
and the tag name and value.
Removes a tag from a workflow. You must specify the workflow you want to
untag and the tag you want to remove from the specified workflow.
48 VMware, Inc.
Using the SQL Plug-In6
You can use the API that the SQL plug-in provides to implement connectivity to SQL databases and other
tabular data sources, such as spreadsheets or flat files.
The SQL plug-in API which is based on JDBC, provides a call-level API for SQL-based database access. The
SQL plug-in also provides sample workflows that demonstrate how to use the API in workflows.
This chapter includes the following topics:
“Configuring the SQL Plug-In,” on page 49
n
“Running the SQL Sample Workflows,” on page 52
n
“Using the SQL Plug-In Standard Workflows,” on page 56
n
Configuring the SQL Plug-In
You can use the workflows included in the SQL plug-in and run them from the Orchestrator client to
configure the SQL plug-in and to add, update, or remove a database.
SQL Plug-In Configuration Workflows
The Configuration workflow category of the SQL plug-in contains workflows that allow you to manage
databases and database tables.
You can access these workflows from Library > SQL > Configuration in the Workflows view of the
Orchestrator client.
Workflow NameDescription
Add a databaseAdds a database object to the Database plug-in inventory.
Add tables to a databaseAdds database tables to a database in the Database plug-in inventory.
Remove a databaseRemoves a database object from the Database plug-in inventory.
Remove a table from a database Removes a database table from a database in the Database plug-in inventory.
Update a databaseUpdates the configuration of a database object in the Database plug-in inventory.
Validate a databaseValidates a database in the Database plug-in inventory.
VMware, Inc. 49
Using VMware vRealize Orchestrator Plug-Ins
Add a Database
You can run a workflow to add a database to the Orchestrator server and configure the host connection
parameters.
When you add a database that requires a secure connection, you must import the database SSL certificate.
You can import the SSL certificate by using the options available in the Network tab in the Orchestrator
configuration interface.
Procedure
1Log in to the Orchestrator client as an administrator.
2Click the Workflows view in the Orchestrator client.
3In the workflows hierarchical list, select Library > SQL > Configuration and navigate to the Add a
database workflow.
4Right-click the Add a database workflow and select Start workflow.
5In the Name text box, type the name of the database.
6Select the type of the database.
7In the Connection URL text box, type the address of the database.
Database TypeSyntax
Oracle
Microsoft SQL (with SQL
authentication)
Microsoft SQL (with Windows
account authentication)
8Select the session mode that the plug-in uses to connect to the database.
OptionDescription
Shared Session
Session Per User
The plug-in uses shared credentials to connect to the database. You must
provide the database credentials for the shared session.
The Orchestrator client retrieves credentials from the user who is logged
in.
NOTE To use session per user mode, you must authenticate by using a
user name only. You should not use domain\user or user@domain for
authentication.
9Click Submit to run the workflow.
After the workflow runs successfully, the database and all tables that belong to it appear in the Inventory
view.
Add Tables to a Database
You can run a workflow to add tables to a database that is in the Database plug-in inventory.
Prerequisites
Verify that you are logged in to the Orchestrator client as an administrator.
n
50 VMware, Inc.
Chapter 6 Using the SQL Plug-In
Verify that you have a connection to a database from the Inventory view.
n
Procedure
1Click the Workflows view in the Orchestrator client.
2In the workflows hierarchical list, select Library > SQL > Configuration and navigate to the Add tables
to a database workflow.
3Right-click the Add tables to a database workflow and select Start workflow.
4Select a database to which to add tables.
5Select the tables that you want to add.
6Click Submit to run the workflow.
After the workflow runs successfully, the added database tables appear in the Inventory view of the
Orchestrator client.
Update a Database
You can run a workflow to update the configuration of a database that is in the plug-in's inventory.
Procedure
1Log in to the Orchestrator client as an administrator.
2Click the Workflows view in the Orchestrator client.
3In the Workflows hierarchical list, select Library > SQL > Configuration and navigate to the Update a
database workflow.
4Right-click the Update a database workflow and select Start workflow.
5Select a database that you want to update.
6In the Name text box, type the new name of the database.
The database appears in the Inventory view with the name that you specify.
7Select the type of the database.
8In the Connection URL text box, type the new address of the database.
9Select the session mode that the plug-in uses to connect to the database.
OptionDescription
Shared Session
Session Per User
The plug-in uses shared credentials to connect to the database. You must
provide the database credentials for the shared session.
The Orchestrator client retrieves credentials from the user who is logged
in.
NOTE To use session per user mode, you must authenticate by using a
user name only. You should not use domain\user or user@domain for
authentication.
10 Click Submit to run the workflow.
VMware, Inc. 51
Using VMware vRealize Orchestrator Plug-Ins
Running the SQL Sample Workflows
You can run the SQL plug-in workflows to perform JDBC operations such as generating a JDBC URL,
testing a JDBC connection, and managing rows in JDBC tables. You can also run the SQL plug-in workflows
to manage databases and database tables, as well as to run SQL operations.
Generate a JDBC URL
You can run a workflow from the Orchestrator client to generate a JDBC connection URL.
Prerequisites
Log in to the Orchestrator client as a user who can run JDBC workflows.
Procedure
1Click the Workflows view in the Orchestrator client.
2In the workflows hierarchical list, open Library > JDBC to navigate to the JDBC URL generator
workflow.
3Right-click the JDBC URL generator workflow and select Start workflow.
4Select the type of database for which to generate a URL.
NOTE If you use a Microsoft database, you might have to click Next and to provide the database
instance name and database user domain name.
5Provide the required information to generate a database URL.
aType a database server name or IP address.
bType a database name.
c(Optional) Type a database port number.
If you do not specify a port number, the workflow uses a default port number.
dType a user name to access the database.
eType a password to access the database.
6Click Submit to run the workflow.
Test a JDBC Connection
You can run a workflow from the Orchestrator client to test the connection to a database.
Prerequisites
Log in to the Orchestrator client as a user who can run JDBC workflows.
Procedure
1Click the Workflows view in the Orchestrator client.
2In the workflows hierarchical list, open Library > JDBC > JDBC Examples to navigate to the JDBC
connection example workflow.
3Right-click the JDBC connection example workflow and select Start workflow.
52 VMware, Inc.
Chapter 6 Using the SQL Plug-In
4Provide the required information to test a database connection.
aType a user name to access the database.
bType the URL to test.
cType a password to access the database.
5Click Submit to run the workflow.
Create a Table by Using JDBC
You can run a workflow from the Orchestrator client to create a database.
Prerequisites
Log in to the Orchestrator client as a user who can run JDBC workflows.
Procedure
1Click the Workflows view in the Orchestrator client.
2In the workflows hierarchical list, open Library > JDBC > JDBC Examples to navigate to the JDBC
create table example workflow.
3Right-click the JDBC create table example workflow and select Start workflow.
4Provide the required information, and click Next.
You can run a workflow from the Orchestrator client to test the insertion of a row into a JDBC table.
Prerequisites
Log in to the Orchestrator client as a user who can run JDBC workflows.
Procedure
1Click the Workflows view in the Orchestrator client.
2In the workflows hierarchical list, open Library > JDBC > JDBC Examples to navigate to the JDBC
insert into table example workflow.
3Right-click the JDBC insert into table example workflow and select Start workflow.
VMware, Inc. 53
Using VMware vRealize Orchestrator Plug-Ins
4Provide the required information, and click Next.
aType a database connection URL.
bType a user name to access the database.
cType a password to access the database.
5Type an SQL insert statement, and click Next.
An example syntax is:
INSERT INTO "table_name" ("column1", "column2")
VALUES ("value1", "value2")
6Type the values to insert into the row.
7Click Submit to run the workflow.
Select Rows from a JDBC Table
You can run a workflow from the Orchestrator client to select rows from a JDBC table.
Prerequisites
Log in to the Orchestrator client as a user who can run JDBC workflows.
Procedure
1Click the Workflows view in the Orchestrator client.
2In the workflows hierarchical list, open Library > JDBC > JDBC Examples to navigate to the JDBC
select from table example workflow.
3Right-click the JDBC select from table example workflow and select Start workflow.
4Provide the required information, and click Next.
aType a database connection URL.
bType a user name to access the database.
cType a password to access the database.
5Type an SQL select statement.
An example syntax is:
SELECT * FROM "table_name"
6Click Submit to run the workflow.
Delete an Entry from a JDBC Table
You can run a workflow from the Orchestrator client to test the deletion of an entry from a JDBC table.
Prerequisites
Log in to the Orchestrator client as a user who can run JDBC workflows.
Procedure
1Click the Workflows view in the Orchestrator client.
2In the workflows hierarchical list, open Library > JDBC > JDBC Examples to navigate to the JDBC
delete entry from table example workflow.
3Right-click the JDBC delete entry from table example workflow and select Start workflow.
54 VMware, Inc.
4Provide the required information, and click Next.
aType the first name of the user entry to be deleted.
bType a user name to access the database.
cType a JDBC connection URL.
dType the last name of the user entry to be deleted.
eType a password to access the database.
5Type an SQL delete statement.
An example syntax is:
DELETE FROM "table_name" where ("column1" = ?, "column2" = ?)
6Click Submit to run the workflow.
Delete All Entries from a JDBC Table
You can run a workflow from the Orchestrator client to delete all entries from a JDBC table.
Prerequisites
Log in to the Orchestrator client as a user who can run JDBC workflows.
Chapter 6 Using the SQL Plug-In
Procedure
1Click the Workflows view in the Orchestrator client.
2In the workflows hierarchical list, open Library > JDBC > JDBC Examples to navigate to the JDBC
delete all from table example workflow.
3Right-click the JDBC delete all from table example workflow and select Start workflow.
4Provide the required information, and click Next.
aType a database connection URL.
bType a user name to access the database.
cType a password to access the database.
5Type an SQL delete statement.
An example syntax is:
DELETE FROM "table_name"
6Click Submit to run the workflow.
Drop a JDBC Table
You can run a workflow from the Orchestrator client to test the dropping of a JDBC table.
Prerequisites
Log in to the Orchestrator client as a user who can run JDBC workflows.
Procedure
1Click the Workflows view in the Orchestrator client.
2In the workflows hierarchical list, open Library > JDBC > JDBC Examples to navigate to the JDBC drop
table example workflow.
3Right-click the JDBC drop table example workflow and select Start workflow.
VMware, Inc. 55
Using VMware vRealize Orchestrator Plug-Ins
4Provide the required information, and click Next.
aType a password to access the database.
bType a database connection URL.
cType a user name to access the database.
5Type an SQL drop statement.
An example syntax is:
DROP TABLE "table_name"
6Click Submit to run the workflow.
Run a Complete JDBC Cycle
You can run a workflow from the Orchestrator client to test all JDBC example workflows in one full cycle.
Prerequisites
Log in to the Orchestrator client as a user who can run JDBC workflows.
Procedure
1Click the Workflows view in the Orchestrator client.
2In the workflows hierarchical list, open Library > JDBC > JDBC Examples to navigate to the Full JDBC
cycle example workflow.
3Right-click the Full JDBC cycle example workflow and select Start workflow.
4Provide the required information, and click Next..
aType a database connection URL.
bType a user name to access the database.
cType a password to access the database.
5Type the values to be used as entries in the database.
6Click Submit to run the workflow.
Using the SQL Plug-In Standard Workflows
You can use the SQL workflows to run SQL operations.
SQL Plug-In Workflow Library
You can run the SQL plug-in workflows to manage databases and database tables as well as to run SQL
operations.
You can access the database configuration workflows from Library > SQL > Configuration in the
Workflows view of the Orchestrator client.
Add a database
Add tables to a
database
Remove a database
Remove a table from a
database
56 VMware, Inc.
Adds a database object to the plug-in's inventory.
Adds database tables to a database in the plug-in's inventory.
Removes a database object from the plug-in's inventory.
Removes a database table from a database in the plug-in's inventory.
Chapter 6 Using the SQL Plug-In
Update a database
Validate a database
Updates the configuration of a database object in the plug-in's inventory.
Validates a database in the plug-in's inventory.
You can access the SQL operations workflows from Library > SQL in the Workflows view of the
Orchestrator client.
Execute a custom query
on a database
Executes a custom query on a specified database and returns the number of
affected rows. You can run the workflow to update, delete, insert, and write
queries
Generate CRUD
Generates Create, Read, Update and Delete workflows for a particular table.
workflows for a table
Read a custom query
from a database
Executes a custom query on a specified database and returns the result in an
array of properties. You can run the workflow to select and read queries.
Generate CRUD Workflows for a Table
You can run a workflow to generate Create, Read, Update, and Delete workflows for a particular table.
Prerequisites
Verify that you are logged in to the Orchestrator client as an administrator.
n
Verify that you have a connection to a database from the Inventory view.
n
Procedure
1Click the Workflows view in the Orchestrator client.
2In the workflows hierarchical list, select Library > SQL and navigate to the Generate CRUD workflows
for a table workflow.
3Right-click the Generate CRUD workflows for a table workflow and select Start workflow.
4Select a table for which to generate the workflows.
5Select the workflow folder in which to generate the workflows.
6Select whether to overwrite any existing workflows.
OptionDescription
Yes
No
The generated workflows overwrite existing workflows with the same
name.
New workflows are not generated if workflows with the same name exist
in the folder.
7(Optional) Select columns that should not be populated.
You cannot edit the selected columns with the generated CRUD workflows.
8Click Submit to run the workflow.
After the workflow runs successfully, the CRUD workflows appear in the selected workflow folder.
What to do next
You can run the generated workflows on the selected database table.
VMware, Inc. 57
Using VMware vRealize Orchestrator Plug-Ins
58 VMware, Inc.
Using the SSH Plug-In7
You can use the SSH plug-in workflows to run SSH commands on a remote host that supports SSH and
transfer files between an Orchestrator server and a remote host through a secure connection.
This chapter includes the following topics:
“Configure the SSH Plug-In,” on page 59
n
“Running the SSH Plug-In Sample Workflows,” on page 59
n
Configure the SSH Plug-In
You can set up the SSH plug-in to ensure encrypted connections.
Procedure
1Log in to the Orchestrator configuration interface as vmware.
2Click SSH.
3Click New connection.
4In the Host name text box, type the host to access with SSH through Orchestrator.
NOTE No username and password are required because Orchestrator uses the credentials of the
currently logged-in user to run SSH commands. You must reproduce the accounts you want to work on
SSH on target hosts from the LDAP server.
5Click Apply changes.
The host is added to the list of SSH connections.
6(Optional) Configure an entry path on the server.
aClick New root folder.
bEnter the new path and click Apply changes.
The SSH host is available in the Inventory view of the Orchestrator client.
Running the SSH Plug-In Sample Workflows
You can run the SSH plug-in sample workflows from the Orchestrator client to test the connection between
the Orchestrator server and the SSH host.
Generate a Key Pair on page 60
n
You can run a workflow from the Orchestrator client to generate a key pair. You can use the key pair
to connect to an SSH host without a password.
VMware, Inc.
59
Using VMware vRealize Orchestrator Plug-Ins
Change the Key Pair Passphrase on page 61
n
You can run a workflow from the Orchestrator client to change the passphrase for the key pair that
you generated last.
Register an Orchestrator Public Key on an SSH Host on page 61
n
You can use a public key instead of a password. To register an Orchestrator public key on an SSH host,
you can run a workflow from the Orchestrator client.
Run an SSH Command on page 61
n
You can run a workflow from the Orchestrator client to run SSH commands on a remote SSH server.
Copy a File from an SSH Host on page 62
n
You can run a workflow on the Orchestrator client to copy files from an SSH host to the Orchestrator
server.
Copy a File to an SSH Host on page 63
n
You can run a workflow from the Orchestrator client to copy files from the Orchestrator server to an
SSH host.
Generate a Key Pair
You can run a workflow from the Orchestrator client to generate a key pair. You can use the key pair to
connect to an SSH host without a password.
A key pair consists of a public key and a private key. Orchestrator can use the private key to connect to the
public key on an SSH host. You can use a passphrase to improve security.
CAUTION All Orchestrator users with the right set of privileges can read, use, and overwrite your private
key.
Prerequisites
Configure the SSH plug-in in the Orchestrator configuration interface.
n
Log in to the Orchestrator client as a user who can run SSH workflows.
n
Procedure
1Click the Workflows view in the Orchestrator client.
2In the workflows hierarchical list, open Library > SSH to navigate to the Generate key pair workflow.
3Right-click the Generate key pair workflow and select Start workflow.
4Provide the required information.
aSelect the key type.
bSelect the key size.
c(Optional) Type a passphrase.
NOTE You can change the passphrase later.
d(Optional) Type a comment.
5Click Submit to run the workflow.
If a key pair exists, the new key pair overwrites it.
60 VMware, Inc.
Chapter 7 Using the SSH Plug-In
Change the Key Pair Passphrase
You can run a workflow from the Orchestrator client to change the passphrase for the key pair that you
generated last.
Prerequisites
Configure the SSH plug-in in the Orchestrator configuration interface.
n
Log in to the Orchestrator client as a user who can run SSH workflows.
n
Procedure
1Click the Workflows view in the Orchestrator client.
2In the workflows hierarchical list, open Library > SSH to navigate to the Change key pair passphrase
workflow.
3Right-click the Change key pair passphrase workflow and select Start workflow.
4Reset the key pair passphrase.
aType the current passphrase.
bType the new passphrase.
5Click Submit to run the workflow.
Register an Orchestrator Public Key on an SSH Host
You can use a public key instead of a password. To register an Orchestrator public key on an SSH host, you
can run a workflow from the Orchestrator client.
Prerequisites
Configure the SSH plug-in in the Orchestrator configuration interface.
n
Log in to the Orchestrator client as a user who can run SSH workflows.
n
Procedure
1Click the Workflows view in the Orchestrator client.
2In the workflows hierarchical list, open Library > SSH to navigate to the Register vCO public key on
host workflow.
3Right-click the Register vCO public key on host workflow and select Start workflow.
4Provide the host and authentication information.
NOTE You must provide credentials that are registered on the SSH host.
5Click Submit to run the workflow.
You can use public key authentication instead of password authentication when you connect to the SSH
host as the registered user.
Run an SSH Command
You can run a workflow from the Orchestrator client to run SSH commands on a remote SSH server.
Prerequisites
Configure the SSH plug-in in the Orchestrator configuration interface.
n
VMware, Inc. 61
Using VMware vRealize Orchestrator Plug-Ins
Log in to the Orchestrator client as a user who can run SSH workflows.
n
Procedure
1Click the Workflows view in the Orchestrator client.
2In the workflows hierarchical list, open Library > SSH to navigate to the Run SSH command workflow.
3Right-click the Run SSH command workflow and select Start workflow.
4Type an SSH host name or IP address, and click Next.
5Type an SSH command to run, and click Next.
NOTE The default SSH command is uptime. It shows how long the server has been active and the user
load for that period.
6Select Yes to use password authentication, and click Next.
NOTE The default option is to use key file authentication.
7Type a user name, and click Next.
8Type a password if the authentication method requires a password. Otherwise, type the path to the
private key and type the passphrase for the private key.
9Click Submit to run the workflow.
Copy a File from an SSH Host
You can run a workflow on the Orchestrator client to copy files from an SSH host to the Orchestrator server.
The SSH plug-in uses the Java JCraft library, which implements SFTP. The SCP get command workflow
transfers files by using SFTP.
Prerequisites
Configure the SSH plug-in in the Orchestrator configuration interface.
n
Log in to the Orchestrator client as a user who can run SSH workflows.
n
NOTE Orchestrator must have explicit write permissions in order to write in folders.
Procedure
1Click the Workflows view in the Orchestrator client.
2In the workflows hierarchical list, open Library > SSH to navigate to the SCP get command workflow.
3Right-click the SCP get command workflow and select Start workflow.
4Provide the required information, and click Next.
aType an SSH host name or IP address.
bType the SSH authentication information.
5Type the file information.
aType the path to the directory on the Orchestrator server into which to copy the file.
bType the path to the file to get from the remote SSH host.
6Click Submit to run the workflow.
62 VMware, Inc.
Chapter 7 Using the SSH Plug-In
Copy a File to an SSH Host
You can run a workflow from the Orchestrator client to copy files from the Orchestrator server to an SSH
host.
The SSH plug-in uses the Java JCraft library, which implements SFTP. The SCP put command workflow
transfers files by using SFTP.
Prerequisites
Configure the SSH plug-in in the Orchestrator configuration interface.
n
Log in to the Orchestrator client as a user who can run SSH workflows.
n
Procedure
1Click the Workflows view in the Orchestrator client.
2In the workflows hierarchical list, open Library > SSH to navigate to the SCP put command workflow.
3Right-click the SCP put command workflow and select Start workflow.
4Provide the required information, and click Next.
aType an SSH host name or IP address.
bType the SSH authentication information.
5Type the file information.
aType the path to the file that you want to copy from the local Orchestrator server to the remote SSH
host.
bType the path to the directory on the remote SSH host into which to copy the file.
6Click Submit to run the workflow.
VMware, Inc. 63
Using VMware vRealize Orchestrator Plug-Ins
64 VMware, Inc.
Using the XML Plug-In8
You can use the XML plug-in to run workflows that create and modify XML documents.
The XML plug-in adds an implementation of a Document Object Model (DOM) XML parser to the
Orchestrator JavaScript API. The XML plug-in also provides some sample workflows to demonstrate how
you can create and modify XML documents from workflows.
Alternatively, you can use the ECMAScript for XML (E4X) implementation in the Orchestrator JavaScript
API to process XML documents directly in JavaScript. For an E4X scripting example, see Developing withVMware vRealize Orchestrator.
For information about E4X, go to the Web site of the organization that maintains the ECMA-357 standard.
Running the XML Plug-In Sample Workflows
You can run the XML plug-in sample workflows from the Orchestrator client to create and modify XML
documents for testing purposes.
Because the workflows can create, read, or modify files, you must have sufficient access rights to the
working directory.
Orchestrator has read, write, and execute rights to a folder named orchestrator, at the root of the server
system. Although workflows have permission to read, write, and execute in this folder, you must create the
folder on the server system. If you use the Orchestrator Appliance, the folder is named vco and is located
at /var/run/vco.
VMware, Inc.
You can allow access to other folders by changing the settings for server file system access from workflows
and JavaScript. See Installing and Configuring VMware vRealize Orchestrator, Setting Server File System Accessfrom Workflows and JavaScript.
Create a Simple XML Document on page 66
n
You can run a workflow from the Orchestrator client to create a simple XML document for testing
purposes.
Find an Element in an XML Document on page 66
n
You can run a workflow from the Orchestrator client to find an element in the XML created by the
Create a simple XML document workflow.
Modify an XML Document on page 67
n
You can run a workflow from the Orchestrator client to modify the XML that the Create a simple XML
document workflow creates.
Create an Example Address Book from XML on page 67
n
You can run a workflow from the Orchestrator client to create an address book for testing purposes.
65
Using VMware vRealize Orchestrator Plug-Ins
Create a Simple XML Document
You can run a workflow from the Orchestrator client to create a simple XML document for testing purposes.
Prerequisites
Log in to the Orchestrator client as a user who can run XML workflows.
n
Verify that you created the c:/orchestrator folder at the root of the Orchestrator server system or set
n
access rights to another folder.
Procedure
1Click the Workflows view in the Orchestrator client.
2In the workflows hierarchical list, open Library > XML > Samples XML (Simple) to navigate to the
Create a simple XML document workflow.
3Right-click the Create a simple XML document workflow and select Start workflow.
4Type the filepath to the XML document to create.
For example, c:/orchestrator/filename.xml.
5Click Submit to run the workflow.
The workflow creates an XML document that contains a list of users. The attributes for each entry are user
ID and name.
Find an Element in an XML Document
You can run a workflow from the Orchestrator client to find an element in the XML created by the Create a
simple XML document workflow.
Prerequisites
Log in to the Orchestrator client as a user who can run XML workflows.
n
Verify that you created the c:/orchestrator folder at the root of the Orchestrator server system or set
n
access rights to another folder.
Procedure
1Click the Workflows view in the Orchestrator client.
2In the workflows hierarchical list, open Library > XML > Samples XML (Simple) to navigate to the
Find element in document workflow.
3Right-click the Find element in document workflow and select Start workflow.
4Type the filepath to the XML document.
For example, c:/orchestrator/filename.xml.
5Click Submit to run the workflow.
The workflow searches for an element and displays the result in the system log.
What to do next
To view the result, select the completed workflow run in the Orchestrator client and click Logs on the
Schema tab.
66 VMware, Inc.
Chapter 8 Using the XML Plug-In
Modify an XML Document
You can run a workflow from the Orchestrator client to modify the XML that the Create a simple XML
document workflow creates.
Prerequisites
Log in to the Orchestrator client as a user who can run XML workflows.
n
Verify that you created the c:/orchestrator folder at the root of the Orchestrator server system or set
n
access rights to another folder.
Procedure
1Click the Workflows view in the Orchestrator client.
2In the workflows hierarchical list, open Library > XML > Samples XML (Simple) to navigate to the
Modify XML document workflow.
3Right-click the Modify XML document workflow and select Start workflow.
4Provide the input and output filepaths.
aType the filepath to the XML document to modify.
For example, c:/orchestrator/filename.xml.
bType the filepath to the modified XML document.
For example, c:/orchestrator/filename.xml.
NOTE If you type the same filepath in both fields, the workflow overwrites the original file with the
modified file. If you type an output filepath to a file that does not exist, the workflow creates a modified
file.
5Click Submit to run the workflow.
The workflow searches for an element and modifies the entry where the element is found.
Create an Example Address Book from XML
You can run a workflow from the Orchestrator client to create an address book for testing purposes.
Prerequisites
Log in to the Orchestrator client as a user who can run XML workflows.
n
Verify that you created the c:/orchestrator folder at the root of the Orchestrator server system or set
n
access rights to another folder.
Procedure
1Click the Workflows view in the Orchestrator client.
2In the workflows hierarchical list, open Library > XML > Samples XML (Address Book) to navigate to
the Full address book test workflow.
3Right-click the Full address book test workflow and select Start workflow.
4Type the path to the address book folder.
For example, c:/orchestrator/foldername.
The workflow automatically creates the folder if it does not exist.
VMware, Inc. 67
Using VMware vRealize Orchestrator Plug-Ins
5Click Submit to run the workflow.
The workflow creates a DTD, an XML, and a CSS file, appends the stylesheet, and stores the files in the
specified folder.
68 VMware, Inc.
Using the Mail Plug-In9
You can send email messages from workflows by using the Mail plug-in, which uses the Simple Mail
Transfer Protocol (SMTP). For example, you can create a workflow to send an email to a given address if the
workflow requires user interaction or when it completes its run.
This chapter includes the following topics:
“Define the Default SMTP Connection,” on page 69
n
“Using the Mail Plug-In Sample Workflows,” on page 70
n
Define the Default SMTP Connection
The Mail plug-in is installed together with the Orchestrator server and is used for email notifications. The
only option available for this plug-in is to use default values for new mail messages. You can set the default
email account.
Avoid load balancers when configuring mail in Orchestrator. You might receive SMTP_HOST_UNREACHABLE
error.
Procedure
1Log in to the Orchestrator configuration interface as vmware.
VMware, Inc.
2Click Mail.
3Select the Define default values check box and fill in the required text boxes.
Text BoxDescription
SMTP host
SMTP port
User name
Password
From name and address
Enter the IP address or domain name of your SMTP server.
Enter a port number to match your SMTP configuration.
The default SMTP port is 25.
Enter a valid email account.
This is the email account Orchestrator uses to send emails.
Enter the password associated with the user name.
Enter the sender information to appear in all emails sent by Orchestrator.
4Click Apply changes.
69
Using VMware vRealize Orchestrator Plug-Ins
Using the Mail Plug-In Sample Workflows
You can call the sample workflows of the Mail plug-in from custom workflows to implement email
functionality. You can run an example workflow to test interaction with email.
Access the Mail Plug-In Sample Workflows on page 70
n
You must use the Orchestrator client to access the Mail plug-in sample workflows.
Mail Plug-In Sample Workflows on page 70
n
You can enhance your custom workflows by integrating the sample Mail plug-in workflows.
Test an Example Interaction with Email on page 71
n
You can run a workflow from the Orchestrator client to send an email to respond to a query, known as
a user interaction.
Access the Mail Plug-In Sample Workflows
You must use the Orchestrator client to access the Mail plug-in sample workflows.
Prerequisites
Configure the Mail plug-in in the Orchestrator configuration interface.
n
Log in to the Orchestrator client as a user who can run Mail workflows.
n
Procedure
1Click the Workflows view in the Orchestrator client.
2Expand the hierarchical list to Library > Mail.
What to do next
Review the sample workflows.
Mail Plug-In Sample Workflows
You can enhance your custom workflows by integrating the sample Mail plug-in workflows.
You can access the Mail workflows from Library > Mail in the Workflows view of the Orchestrator client.
Retrieve messages
Retrieve messages (via
MailClient)
Send interaction
Send notification
Retrieves the messages of a given email account by using the POP3 protocol.
Retrieves the messages of a certain email account, without deleting them, by
using the new scripting API provided by the MailClient class.
Sends an email to answer a user interaction. The email body contains both
the URL to the direct answer, and an interaction URL to process this request.
If optional parameters are not specified, the workflow uses the default values
set in the Orchestrator configuration interface.
Sends an email with specified content to a given email address. If optional
parameters are not specified, the workflow uses the default values set in the
Orchestrator configuration interface.
Send notification to
mailing list
70 VMware, Inc.
Sends an email with specified content to a given email address list, CC list,
and BCC list. If optional parameters are not specified, the workflow uses the
default values set in the Orchestrator configuration interface.
Chapter 9 Using the Mail Plug-In
Test an Example Interaction with Email
You can run a workflow from the Orchestrator client to send an email to respond to a query, known as a
user interaction.
The workflow uses the default mail server configuration that you set in the Orchestrator configuration
interface. See “Define the Default SMTP Connection,” on page 69.
Prerequisites
Configure the Mail plug-in in the Orchestrator configuration interface.
n
Log in to the Orchestrator client as a user who can run Mail workflows.
n
Procedure
1Click the Workflows view in the Orchestrator client.
2In the workflows hierarchical list, open Library > Mail to navigate to the Example interaction with
email workflow.
3Right-click the Example interaction with email workflow and select Start workflow.
4Provide the required information.
aType a recipient address.
bSelect an LDAP group of users who are authorized to answer the query.
5Click Submit to run the workflow.
The workflow suspends its run and sends an email to the given address.
VMware, Inc. 71
Using VMware vRealize Orchestrator Plug-Ins
72 VMware, Inc.
Using the Net Plug-In10
You can use the Net plug-in to implement the Telnet, FTP, POP3, and IMAP protocols in workflows. The
POP3 and IMAP implementations allow downloading and reading email. In combination with the Mail
plug-in, the Net plug-in provides full email sending and receiving capabilities in workflows.
VMware, Inc. 73
Using VMware vRealize Orchestrator Plug-Ins
74 VMware, Inc.
Using the Enumeration Plug-In11
You can use the Enumeration plug-in to implement common enumerated types in workflows.
Time Zone Codes
You can use the time zone codes as possible values for the Enums:MSTimeZone enumeration.
Time Zone CodeTime Zone NameDescription
000Dateline Standard Time(GMT-12:00) International Date Line
West
001Samoa Standard Time(GMT-11:00) Midway Island, Samoa
002Hawaiian Standard Time(GMT-10:00) Hawaii
003Alaskan Standard Time(GMT-09:00) Alaska
004Pacific Standard Time(GMT-08:00) Pacific Time (US and
Canada); Tijuana
010Mountain Standard Time(GMT-07:00) Mountain Time (US and
Canada)
013Mexico Standard Time 2(GMT-07:00) Chihuahua, La Paz,
Mazatlan
015U.S. Mountain Standard Time(GMT-07:00) Arizona
020Central Standard Time(GMT-06:00) Central Time (US and
Canada)
025Canada Central Standard Time(GMT-06:00) Saskatchewan
030Mexico Standard Time(GMT-06:00) Guadalajara, Mexico City,
Monterrey
033Central America Standard Time(GMT-06:00) Central America
035Eastern Standard Time(GMT-05:00) Eastern Time (US and
Canada)
040U.S. Eastern Standard Time(GMT-05:00) Indiana (East)
045S.A. Pacific Standard Time(GMT-05:00) Bogota, Lima, Quito
050Atlantic Standard Time(GMT-04:00) Atlantic Time (Canada)
055S.A. Western Standard Time(GMT-04:00) Caracas, La Paz
056Pacific S.A. Standard Time(GMT-04:00) Santiago
060Newfoundland and Labrador
Standard Time
065E. South America Standard Time(GMT-03:00) Brasilia
(GMT-03:30) Newfoundland and
Labrador
VMware, Inc. 75
Using VMware vRealize Orchestrator Plug-Ins
Time Zone CodeTime Zone NameDescription
070S.A. Eastern Standard Time(GMT-03:00) Buenos Aires,
073Greenland Standard Time(GMT-03:00) Greenland
075Mid-Atlantic Standard Time(GMT-02:00) Mid-Atlantic
080Azores Standard Time(GMT-01:00) Azores
083Cape Verde Standard Time(GMT-01:00) Cape Verde Islands
085GMT Standard Time(GMT) Greenwich Mean Time :
090Greenwich Standard Time(GMT) Casablanca, Monrovia
095Central Europe Standard Time(GMT+01:00) Belgrade, Bratislava,
100Central European Standard Time(GMT+01:00) Sarajevo, Skopje,
105Romance Standard Time(GMT+01:00) Brussels, Copenhagen,
110W. Europe Standard Time(GMT+01:00) Amsterdam, Berlin, Bern,
113W. Central Africa Standard Time(GMT+01:00) West Central Africa
115E. Europe Standard Time(GMT+02:00) Bucharest
120Egypt Standard Time(GMT+02:00) Cairo
125FLE Standard Time(GMT+02:00) Helsinki, Kyiv, Riga,
130GTB Standard Time(GMT+02:00) Athens, Istanbul, Minsk
135Israel Standard Time(GMT+02:00) Jerusalem
140South Africa Standard Time(GMT+02:00) Harare, Pretoria
145Russian Standard Time(GMT+03:00) Moscow, St. Petersburg,
150Arab Standard Time(GMT+03:00) Kuwait, Riyadh
155E. Africa Standard Time(GMT+03:00) Nairobi
158Arabic Standard Time(GMT+03:00) Baghdad
160Iran Standard Time(GMT+03:30) Tehran
165Arabian Standard Time(GMT+04:00) Abu Dhabi, Muscat
170Caucasus Standard Time(GMT+04:00) Baku, Tbilisi, Yerevan
175Transitional Islamic State of
180Ekaterinburg Standard Time(GMT+05:00) Ekaterinburg
185West Asia Standard Time(GMT+05:00) Islamabad, Karachi,
190India Standard Time(GMT+05:30) Chennai, Kolkata,
193Nepal Standard Time(GMT+05:45) Kathmandu
195Central Asia Standard Time(GMT+06:00) Astana, Dhaka
200Sri Lanka Standard Time(GMT+06:00) Sri Jayawardenepura
201N. Central Asia Standard Time(GMT+06:00) Almaty, Novosibirsk
Georgetown
Dublin, Edinburgh, Lisbon, London
Budapest, Ljubljana, Prague
Warsaw, Zagreb
Madrid, Paris
Rome, Stockholm, Vienna
Sofia, Tallinn, Vilnius
Volgograd
(GMT+04:30) Kabul
Afghanistan Standard Time
Tashkent
Mumbai, New Delhi
76 VMware, Inc.
Chapter 11 Using the Enumeration Plug-In
Time Zone CodeTime Zone NameDescription
203Myanmar Standard Time(GMT+06:30) Yangon (Rangoon)
205S.E. Asia Standard Time(GMT+07:00) Bangkok, Hanoi, Jakarta
207North Asia Standard Time(GMT+07:00) Krasnoyarsk
210China Standard Time(GMT+08:00) Beijing, Chongqing,
Hong Kong SAR, Urumqi
215Singapore Standard Time(GMT+08:00) Kuala Lumpur,
Singapore
220Taipei Standard Time(GMT+08:00) Taipei
225W. Australia Standard Time(GMT+08:00) Perth
227North Asia East Standard Time(GMT+08:00) Irkutsk, Ulaan Bataar
230Korea Standard Time(GMT+09:00) Seoul
235Tokyo Standard Time(GMT+09:00) Osaka, Sapporo, Tokyo
240Yakutsk Standard Time(GMT+09:00) Yakutsk
245A.U.S. Central Standard Time(GMT+09:30) Darwin
250Cen. Australia Standard Time(GMT+09:30) Adelaide
255A.U.S. Eastern Standard Time(GMT+10:00) Canberra, Melbourne,
Sydney
260E. Australia Standard Time(GMT+10:00) Brisbane
265Tasmania Standard Time(GMT+10:00) Hobart
270Vladivostok Standard Time(GMT+10:00) Vladivostok
275West Pacific Standard Time(GMT+10:00) Guam, Port Moresby
280Central Pacific Standard Time(GMT+11:00) Magadan, Solomon
Islands, New Caledonia
285Fiji Islands Standard Time(GMT+12:00) Fiji Islands, Kamchatka,
Marshall Islands
290New Zealand Standard Time(GMT+12:00) Auckland, Wellington
300Tonga Standard Time(GMT+13:00) Nuku'alofa
VMware, Inc. 77
Using VMware vRealize Orchestrator Plug-Ins
78 VMware, Inc.
Using the Workflow Documentation
Plug-In12
You can use the Workflow Documentation plug-in to generate PDF documentation about a specific
workflow or workflow category.
This chapter includes the following topics:
“Workflow Library for the Workflow Documentation Plug-In,” on page 79
n
“Generate Workflow Documentation,” on page 79
n
Workflow Library for the Workflow Documentation Plug-In
With the Workflow Documentation plug-in workflows you can generate PDF documentation about specific
workflows or workflow categories.
You can access these workflows from Library > Workflow documentation in the Workflows view of the
Orchestrator client.
Get documentation for
workflow
Get documentation for
workflow category
Generates information about a workflow that you select.
Generates information about a workflow category that you select.
Generate Workflow Documentation
You can export documentation in PDF format about a workflow or a workflow folder that you select at any
time.
The exported document contains detailed information about the selected workflow or the workflows in the
folder. The information about each workflow includes name, version history of the workflow, attributes,
parameter presentation, workflow schema, and workflow actions. In addition, the documentation also
provides the source code for the used actions.
Procedure
1From the drop-down menu in the Orchestrator client, select Run or Design.
2Click the Workflows view.
3Navigate to the workflow or workflow folder for which you want to generate documentation and right-
click it.
4Select Generate documentation.
5Browse to locate the folder in which to save the PDF file, provide a file name, and click Save.
VMware, Inc.
79
Using VMware vRealize Orchestrator Plug-Ins
The PDF file containing the information about the selected workflow, or the workflows in the folder, is
saved on your system.
80 VMware, Inc.
Using the HTTP-REST Plug-In13
The HTTP-REST plug-in allows you to manage REST Web services by providing interaction between
vRealize Orchestrator and REST hosts. You can define REST services and their operations as inventory
objects by running configuration workflows, and perform REST operations on the defined objects.
The plug-in contains a set of standard workflows related to managing REST hosts and invoking REST
operations. You can also generate custom workflows to automate tasks in a REST environment.
This chapter includes the following topics:
“Configuring the HTTP-REST Plug-In,” on page 81
n
“Generate a New Workflow from a REST Operation,” on page 84
n
“Invoke a REST Operation,” on page 85
n
Configuring the HTTP-REST Plug-In
You must use the Orchestrator client to configure the HTTP-REST plug-in.
Configuration Workflows
The Configuration workflow category contains workflows that allow you to manage REST hosts.
You can access these workflows from Library > HTTP-REST > Configuration on the Workflows view in the
Orchestrator client.
Workflow NameDescription
Add a REST hostAdds a REST host to the plug-in's inventory.
Add a REST operationAdds an operation to a REST host.
Add schema to a REST hostAdds an XSD schema to a REST host.
Clone a REST hostCreates a clone of a REST host.
Clone a REST operationCreates a clone of a REST operation.
Manage SSL certificatesVerifies a host URL, and if required, shows a user interaction message for the
approval of SSL certificates.
Reload plug-in configurationRefreshes the list of REST hosts in the plug-in's inventory.
Remove a REST hostRemoves a REST host from the plug-in's inventory.
Remove a REST operationRemoves an operation from a REST host.
Remove schemas form a REST host Removes all associated XSD schemas from a REST host.
VMware, Inc. 81
Using VMware vRealize Orchestrator Plug-Ins
Workflow NameDescription
Update a REST hostUpdates a REST host in the plug-in's inventory.
Update a REST operationUpdates an operation on a REST host.
Configure Kerberos Authentication
You can use Kerberos authentication when you add a host.
The krb5.conf file contains the following information:
Kerberos configuration information
n
Locations of Key Distribution Centers (KDC) and administration servers for the Kerberos realms of
n
interest
Default values for the current realm and for Kerberos applications
n
Mappings of host names onto Kerberos realms
n
Procedure
Create a krb5.conf file and save it to the following location.
u
Operating SystemPath
Windows
Linux
A krb5.conf file has the following structure:
C:\Program Files\Common Files\VMware\VMware vCenter Server
NOTE The Kerberos authentication requires a Fully Qualified Domain Name (FQDN) host address.
IMPORTANT When you add or modify the krb5.conf file, you must restart the Orchestrator server
service.
Add a REST Host
You can run a workflow to add a REST host and configure the host connection parameters.
Procedure
1Log in to the Orchestrator client as an administrator.
2Click the Workflows view in the Orchestrator client.
3In the workflows hierarchical list, select Library > HTTP-REST > Configuration and navigate to the
Add a REST host workflow.
82 VMware, Inc.
Chapter 13 Using the HTTP-REST Plug-In
4Right-click the Add a REST host workflow and select Start workflow.
5In the Name text box, type the name of the host.
6In the URL text box, type the address of the host.
NOTE The Kerberos authentication requires a Fully Qualified Domain Name (FQDN) host address.
7In the Connection timeout text box, type the number of seconds before a connection times out.
8In the Operation timeout text box, type the number of seconds before an operation times out.
9Select the authentication type.
OptionDescription
None
OAuth 1.0
OAuth 2.0
Basic
Digest
Kerberos
No authentication is required.
Provide the required authentication parameters.
Provide the authentication token.
Provides basic access authentication.
Select the session mode.
If you select Shared Session, provide credentials for the shared
n
session.
If you select Per User Session, the Orchestrator client retrieves
n
credentials from the user who is logged in.
Provides digest access authentication that uses encryption.
Select the session mode.
If you select Shared Session, provide credentials for the shared
n
session.
If you select Per User Session, the Orchestrator client retrieves
n
credentials from the user who is logged in.
Provides Kerberos access authentication.
Select the session mode.
If you select Shared Session, provide credentials for the shared
n
session.
If you select Per User Session, the Orchestrator client retrieves
n
credentials from the user who is logged in.
10 Click Submit to run the workflow.
After the workflow runs successfully, the REST host appears in the Inventory view.
What to do next
You can add opearations and XSD schema to the REST host, and run workflows from the Inventory view.
Add a REST Operation
You can run a workflow to add an operation to a REST host from the plug-in's inventory.
Prerequisites
Verify that you are logged in to the Orchestrator client as an administrator.
n
Verify that you have a connection to a REST host from the Inventory view.
n
Procedure
1Click the Workflows view in the Orchestrator client.
2In the workflows hierarchical list, select Library > HTTP-REST > Configuration and navigate to the
Add a REST operation workflow.
VMware, Inc. 83
Using VMware vRealize Orchestrator Plug-Ins
3Right-click the Add a REST operation workflow and select Start workflow.
4Select the host to which you want to add the operation.
5In the Name text box, type the name of the operation.
6In the Template URL text box, type only the operation part of the URL.
You can include placeholders for parameters that are provided when you run the operation.
The following is an example URL syntax.
/customer/{id}/orders?date={date}
7Select the HTTP method that the operation uses.
If you select POST or PUT, you can provide content type for the method.
8Click Submit to run the workflow.
What to do next
You can run workflows on the operation from the Inventory view.
Add a Schema to a REST Host
You can run a workflow to add an XSD schema to a REST host from the plug-in's inventory.
The XSD schema describes the XML documents that are used as input and output content from Web
services. By associating such a schema with a host, you can specify the XML element that is required as an
input when you are generating a workflow from a REST operation.
Prerequisites
Verify that you are logged in to the Orchestrator client as an administrator.
n
Verify that you have a connection to a REST host from the Inventory view.
n
Procedure
1Click the Workflows view in the Orchestrator client.
2In the workflows hierarchical list, select Library > HTTP-REST > Configuration to navigate to the Add
a schema to a REST host workflow.
3Right-click the Add a schema to a REST host workflow and select Start workflow.
4Select the host to which you want to add the XSD schema.
5Select whether to load the schema from URL.
OptionAction
Yes
No
Type the URL of the schema.
Provide the schema content.
6Click Submit to run the workflow.
Generate a New Workflow from a REST Operation
You can create a custom workflow from a REST operation.
You can integrate custom-generated workflows into high-level workflows. For more information about
workflow development, see the vRealize OrchestratorDeveloper's Guide.
84 VMware, Inc.
Chapter 13 Using the HTTP-REST Plug-In
Prerequisites
Verify that you are logged in to the Orchestrator client as an administrator.
n
Verify that you have a connection to a REST host from the Inventory view.
n
Procedure
1Click the Workflows view in the Orchestrator client.
2In the workflows hierarchical list, select Library > HTTP-REST and navigate to the Generate a new
workflow from a REST operation workflow.
3Right-click the Generate a new workflow from a REST operation workflow and select Start workflow.
4Select the REST operation from the list of available operations.
If the operation takes input and XSD schemas are added to its host, you can specify the request input
type.
5In the Name text box, type the name of the workflow to generate.
6Select the workflow folder in which to generate the new workflow.
You can select any existing folder from the worklfow library.
7Click Submit to run the workflow.
Invoke a REST Operation
You can call a REST operation directly, without generating a new workflow.
Prerequisites
Verify that you are logged in to the Orchestrator client as an administrator.
n
Verify that you have a connection to a REST host from the Inventory view.
n
Procedure
1Click the Workflows view in the Orchestrator client.
2In the workflows hierarchical list, select Library > HTTP-REST and navigate to the Invoke a REST
operation workflow.
3Right-click the Invoke a REST operation workflow and select Start workflow.
4Select the REST operation from the list of available operations.
5Provide the input parameters and content that the operation requires.
6Click Submit to run the workflow.
VMware, Inc. 85
Using VMware vRealize Orchestrator Plug-Ins
86 VMware, Inc.
Using the SOAP Plug-In14
The SOAP plug-in allows you to manage SOAP Web services by providing interaction between
vRealize Orchestrator and SOAP hosts. You can define SOAP services as inventory objects by running
configuration workflows, and perform SOAP operations on the defined objects.
The plug-in contains a set of standard workflows related to managing SOAP hosts and invoking SOAP
operations. You can also generate custom workflows to automate tasks in a SOAP environment.
This chapter includes the following topics:
“Configuring the SOAP Plug-In,” on page 87
n
“Generate a New Workflow from a SOAP Operation,” on page 90
n
“Invoke a SOAP Operation,” on page 91
n
Configuring the SOAP Plug-In
You must use the Orchestrator client to configure the SOAP plug-in.
Configuration Workflows
The Configuration workflow category contains workflows that allow you to manage SOAP hosts.
You can access these workflows from Library > SOAP > Configuration on the Workflows view in the
Orchestrator client.
Workflow NameDescription
Add a SOAP hostAdds a SOAP host to the plug-in's inventory.
Manage SSL certificatesVerifies a host URL, and if required, shows a user interaction message for the
approval of SSL certificates.
Reload plug-in configurationRefreshes the list of SOAP hosts in the plug-in's inventory.
Remove a SOAP hostRemoves a SOAP host from the plug-in's inventory.
CAUTION When you remove a host from the inventory, all workflows generated
from it will stop working.
Update a SOAP hostUpdates a SOAP host in the plug-in's inventory.
Update a SOAP host with an
endpoint URL
VMware, Inc. 87
Updates a SOAP host with a preferred endpoint address. The new endpoint
address is used for sending and receiving SOAP messages, instead of the endpoint
address defined within the WSDL.
Using VMware vRealize Orchestrator Plug-Ins
Add a SOAP Host
You can run a workflow to add a SOAP host and configure the host connection parameters.
Procedure
1Log in to the Orchestrator client as an administrator.
2Click the Workflows view in the Orchestrator client.
3In the workflows hierarchical list, select Library > SOAP > Configuration and navigate to the Add a
SOAP host workflow.
4Right-click the Add a SOAP host workflow and select Start workflow.
5In the Name text box, type the name of the host.
6Select whether to provide the WSDL content as text.
OptionAction
Yes
No
7In the Connection timeout text box, specify the number of seconds before a connection times out.
Copy the text in the WSDL content text box.
Type the correct path in the WSDL URI text box.
8In the Request timeout text box, specify the number of seconds before a request times out.
9Select whether to use proxy.
OptionAction
Yes
No
Provide the proxy address and proxy port.
Continue to the next step.
10 Select the authentication type.
OptionDescription
None
Basic
Digest
No authentication is required.
Provides basic access authentication.
Select the session mode.
If you select Shared Session, provide credentials for the shared
n
session.
If you select Per User Session, the Orchestrator client retrieves
n
credentials from the user who is logged in.
Provides digest access authentication that uses encryption.
Select the session mode.
If you select Shared Session, provide credentials for the shared
n
session.
If you select Per User Session, the Orchestrator client retrieves
n
credentials from the user who is logged in.
88 VMware, Inc.
Chapter 14 Using the SOAP Plug-In
OptionDescription
NTLM
Kerberos
Provides NT LAN Manager (NTLM) access authentication within the
Window Security Support Provider (SSPI) framework.
Select the session mode.
If you select Shared Session, provide credentials for the shared
n
session.
If you select Per User Session, the Orchestrator client retrieves
n
credentials from the user who is logged in.
Provide the NTLM settings.
Provides Kerberos access authentication.
Select the session mode.
If you select Shared Session, provide credentials for the shared
n
session.
If you select Per User Session, the Orchestrator client retrieves
n
credentials from the user who is logged in.
11 Click Submit to run the workflow.
After the workflow runs successfully, the SOAP host appears in the Inventory view.
What to do next
You can explore the SOAP host objects and run workflows on them from the Inventory view.
Configure Kerberos Authentication
You can use Kerberos authentication when you add a host.
The krb5.conf file contains the following information:
Kerberos configuration information
n
Locations of Key Distribution Centers (KDC) and administration servers for the Kerberos realms of
n
interest
Default values for the current realm and for Kerberos applications
n
Mappings of host names onto Kerberos realms
n
Procedure
Create a krb5.conf file and save it to the following location.
NOTE The Kerberos authentication requires a Fully Qualified Domain Name (FQDN) host address.
IMPORTANT When you add or modify the krb5.conf file, you must restart the Orchestrator server
service.
Generate a New Workflow from a SOAP Operation
You can create a custom workflow from a SOAP operation.
You can integrate custom-generated workflows into high-level workflows. For more information about
workflow development, see the vRealize OrchestratorDeveloper's Guide.
Prerequisites
Verify that you are logged in to the Orchestrator client as an administrator.
n
Verify that you have a connection to a SOAP host from the Inventory view.
n
Procedure
1Click the Workflows view in the Orchestrator client.
2In the workflows hierarchical list, select Library > SOAP to navigate to the Generate a new workflow
from a SOAP operation workflow.
3Right-click the Generate a new workflow from a SOAP operation workflow and select Start workflow.
4Select the SOAP operation from the list of available operations.
5In the Name text box, type the name of the workflow to generate.
6Select the workflow folder in which to generate the new workflow.
You can select any existing folder from the workflow library.
7Click Submit to run the workflow.
What to do next
You can test the generated workflow.
Test a Custom-Generated Workflow
You can run a custom workflow generated from a SOAP operation to get the output parameters of the
operation.
Prerequisites
Verify that you are logged in to the Orchestrator client as an administrator.
n
Verify that you have a connection to a SOAP host from the Inventory view.
n
Procedure
1Click the Workflows view in the Orchestrator client.
2Navigate to the workflow location.
3Right-click the custom workflow and select Start workflow.
90 VMware, Inc.
4Provide the input parameters that the SOAP operation requires.
5Click Submit to run the workflow.
6(Optional) In the Logs tab, review the list of available output parameters.
Invoke a SOAP Operation
You can call a SOAP operation directly, without generating a new workflow.
Prerequisites
Verify that you are logged in to the Orchestrator client as an administrator.
n
Verify that you have a connection to a SOAP host from the Inventory view.
n
Procedure
1Click the Workflows view in the Orchestrator client.
2In the workflows hierarchical list, select Library > SOAP and navigate to the Invoke a SOAP operation
workflow.
3Right-click the Invoke a SOAP operation workflow and select Start workflow.
4Select the SOAP operation from the list of available operations.
Chapter 14 Using the SOAP Plug-In
5Provide the input parameters that the SOAP operation requires.
6Click Submit to run the workflow.
7(Optional) In the Logs tab, review the list of available output parameters.
VMware, Inc. 91
Using VMware vRealize Orchestrator Plug-Ins
92 VMware, Inc.
Using the AMQP Plug-In15
The AMQP plug-in allows you to interact with Advanced Message Queuing Protocol (AMQP) servers also
known as brokers. You can define AMQP brokers and queue subscriptions as inventory objects by running
configuration workflows, and perform AMQP operations on defined objects.
The plug-in contains a set of standard workflows related to managing AMQP brokers and calling AMQP
operations.
This chapter includes the following topics:
“Configuring the AMQP Plug-In,” on page 93
n
“Using the AMQP Plug-In Standard Workflows,” on page 95
n
Configuring the AMQP Plug-In
You must use the Orchestrator client to configure the AMQP plug-in.
Configuration Workflows
The Configuration workflow category contains workflows that allow you to manage AMQP brokers.
You can access these workflows from Library > AMQP > Configuration on the Workflows view in the
Orchestrator client.
Workflow NameDescription
Add a brokerAdds an AMQP broker.
Reload plug-in configuration Reloads the plug-in configuration. You can run the workflow when you import new
Remove a brokerRemoves an AMQP broker.
Remove a subscriptionRemoves an AMQP message subscription.
Subscribe to queuesCreates a new subscription element.
Update a brokerUpdates broker properties.
Validate a brokerValidate a broker by attempting to start a connection.
Add a Broker
You can run a workflow to add an AMQP broker.
Procedure
1Log in to the Orchestrator client as an administrator.
VMware, Inc.
resources containing new broker definitions handled by the plug-in.
93
Using VMware vRealize Orchestrator Plug-Ins
2Click the Workflows view in the Orchestrator client.
3In the hierarchical list of workflows, select Library > AMQP > Configuration and navigate to the Add a
broker workflow.
4Right-click the Add a broker workflow and select Start workflow.
5Provide the information required for the Add a broker workflow.
OptionAction
Name
Host
Port
Virtual host
Use SSL
Accept all certificates
User name
Password
6Click Submit to run the workflow.
After the workflow runs successfully, the AMQP broker appears in the Inventory view.
Type the name of the broker.
Type the address of the host.
Type the port of the AMQP broker service. The default port is 5672.
Type the address of the virtual host. The default value provided is /.
Select whether to use SSL certificates.
Select whether to accept all SSL certificates without validation.
Type the user name for the broker.
Type the password for the broker.
What to do next
You can run a Validate a broker workflow. If an error occurs, use the Update a broker workflow to change
the broker's properties before validating again.
Subscribe to Queues
You can run a workflow to create a new subscription elements.
Prerequisites
Verify that you are logged in to the Orchestrator client as an administrator.
n
Verify that you have a connection to an AMQP broker from the Inventory view.
n
Verify that the AMQP broker has all queues included in the subscription declared.
n
Procedure
1Click the Workflows view in the Orchestrator client.
2In the hierarchical list of workflows, select Library > AMQP > Configuration and navigate to the
Subscribe to queues workflow.
3Right-click the Subscribe to queues workflow and select Start workflow.
4In the Name text box, type the name of the queue to display.
5Select the broker to which you want to add the subscription.
6Select all the queues for message subscription.
7Click Submit to run the workflow.
After the workflow runs successfully a child of the broker appears in the Inventory view.
What to do next
You can create a policy.
94 VMware, Inc.
Chapter 15 Using the AMQP Plug-In
Update a Broker
You can run a workflow to update the broker properties.
Prerequisites
Verify that you are logged in to the Orchestrator client as an administrator.
n
Verify that you have a connection to an AMQP broker from the Inventory view.
n
Procedure
1Click the Workflows view in the Orchestrator client.
2In the hierarchical list of workflows, select Library > AMQP and navigate to the Update a broker
workflow.
3Right-click the Update a broker workflow and select Start workflow.
4Select the broker that you want to update.
Current properties of the broker appear.
5Edit the properties that you want.
6Click Submit to run the workflow.
Using the AMQP Plug-In Standard Workflows
The AMQP workflow category contains workflows that allow you to run AMQP operations.
You can access these workflows from Library > AMQP on the Workflows view in the Orchestrator client.
Workflow NameDescription
BindCreates a binding in a specified broker.
Declare a queueAdds a queue to a specified broker.
Declare an exchangeAdds an exchange to a specified broker.
Delete a queueDeletes a queue from a specified broker.
Delete an exchangeDeletes an exchange from a specified broker.
Receive a text message Receives a text message from a specified broker.
Send a test messageSends a text message using a specified broker.
UnbindUnbinds binding in a specified broker.
Declare a Binding
You can run a workflow to create a binding in a specified broker.
Prerequisites
Verify that you are logged in to the Orchestrator client as an administrator.
n
Verify that you have a connection to an AMQP broker from the Inventory view.
n
Procedure
1Click the Workflows view in the Orchestrator client.
2In the hierarchical list of workflows, select Library > AMQP and navigate to the Bind workflow.
3Right-click the Bind workflow and select Start workflow.
VMware, Inc. 95
Using VMware vRealize Orchestrator Plug-Ins
4Select a broker in which you want create a binding.
5Provide information about the binding.
OptionAction
Queue name
Exchange name
Routing key
6Click Submit to run the workflow.
Declare a Queue
You can run a workflow to add a queue to a specified broker.
Prerequisites
Verify that you are logged in to the Orchestrator client as an administrator.
n
Verify that you have a connection to an AMQP broker from the Inventory view.
n
Procedure
1Click the Workflows view in the Orchestrator client.
Type the name of the queue.
Type the name of the exchange.
Type the routing key.
2In the hierarchical list of workflows, select Library > AMQP and navigate to the Declare a queue
workflow.
3Right-click the Declare a queue workflow and select Start workflow.
4Select a broker to which you want to add the queue.
5In the Name text box, type the name of the queue to display.
6Select whether the queue is durable.
OptionDescription
Yes
No
The queue is removed after a broker restart.
The queue remains after a broker restart.
7Select whether an exclusive client is set for the specific queue.
OptionDescription
Yes
No
Sets one client for this specific queue.
Sets more clients for this specific queue.
8Select whether to automatically delete the queue with activated subscription.
OptionDescription
Yes
No
Automatically deletes the queue when no more clients are connected to it.
The queue remains until at least one client subscribes to it.
Does not automatically delete the queue.
9Click Submit to run the workflow.
96 VMware, Inc.
Chapter 15 Using the AMQP Plug-In
Declare an Exchange
You can run a workflow to add an exchange in a specified broker.
Prerequisites
Verify that you are logged in to the Orchestrator client as an administrator.
n
Verify that you have a connection to an AMQP broker from the Inventory view.
n
Procedure
1Click the Workflows view in the Orchestrator client.
2In the hierarchical list of workflows, select Library > AMQP and navigate to the Declare an exchange
workflow.
3Right-click the Declare an exchange workflow and select Start workflow.
4Select a broker to which you want to add the exchange.
5In the Name text box, type a name for the exchange.
6Select the exchange type.
OptionDescription
direct
fanout
headers
topic
Makes a direct match between the routing key provided in the message
and the routing criteria used when a queue is bound to this exchange.
Forwards any message sent to this exchange to all queues bound to it.
Queues that are bound to this exchange contain no arguments.
Queues are bound to this exchange with a table of arguments that can
contain headers and values. A special argument named x-match
determines the matching algorithm.
Performs a wildcard match between the routing key and the routing
pattern specified in the binding.
7Select whether the exchange is durable.
OptionDescription
Yes
No
The exchange remains after a broker restart.
The exchange is removed after a broker restart.
8Select whether to automatically delete the exchange with activated subscription.
OptionDescription
Yes
No
Automatically deletes the exchange when no more queues are bound to it.
The exchange remains until at least one queue is bound to it.
Does not automatically delete the exchange.
9Click Submit to run the workflow.
Send a Text Message
You can run a workflow to send a text message using a specified broker.
Prerequisites
Verify that you are logged in to the Orchestrator client as an administrator.
n
VMware, Inc. 97
Using VMware vRealize Orchestrator Plug-Ins
Verify that you have a connection to an AMQP broker from the Inventory view.
n
Procedure
1Click the Workflows view in the Orchestrator client.
2In the hierarchical list of workflows, select Library > AMQP and navigate to the Send a text message
workflow.
3Right-click the Send a text message workflow and select Start workflow.
4Select a broker from which you want to send a message.
5In the Exchange name text box, specify the name of the exchange.
6In the Routing key text box, specify the routing key.
7In the Content text box, type the message you want to send.
8Click Submit to run the workflow.
Delete a Binding
You can run a workflow to delete a binding in a specified broker.
Prerequisites
Verify that you are logged in to the Orchestrator client as an administrator.
n
Verify that you have a connection to an AMQP broker from the Inventory view.
n
Procedure
1Click the Workflows view in the Orchestrator client.
2In the hierarchical list of workflows, select Library > AMQP and navigate to the Unbind workflow.
3Right-click the Unbind workflow and select Start workflow.
4Select a broker to remove the binding from.
5Provide information about the binding.
OptionAction
Queue name
Exchange name
Routing key
Specify the name of the queue.
Specify the name of the exchange.
Specify the routing key.
6Click Submit to run the workflow.
98 VMware, Inc.
Using the SNMP Plug-In16
The SNMP plug-in allows vRealize Orchestrator to connect and receive information from SNMP-enabled
systems and devices. You can define SNMP devices as inventory objects by running workflows, and
perform SNMP operations on the defined objects.
You can use the plug-in to connect to SNMP devices such as routers, switches, network printers, and UPS
devices. The plug-in can also receive events from vCenter Server over the SNMP protocol.
The SNMP plug-in provides two methods of communication with the SNMP devices.
Queries for the values of specific SNMP variables.
n
Listening for events (SNMP traps) that are generated from the devices and pushed to the registered
n
SNMP managers.
The plug-in contains a set of standard workflows related to managing SNMP devices, queries, the trap host,
and performing SNMP operations. You can also create custom workflows to automate tasks in an SNMP
environment.
This chapter includes the following topics:
“Managing SNMP Devices,” on page 99
n
“Managing SNMP Queries,” on page 100
n
“Managing the SNMP Trap Host,” on page 101
n
“Receiving SNMP Traps,” on page 102
n
“Generic SNMP Request Workflows,” on page 104
n
Managing SNMP Devices
You can run workflows to register SNMP devices with Orchestrator, edit the settings for existing devices,
and unregister devices.
Device Management Workflows
The Device Management workflow category contains workflows that allow you to manage SNMP devices.
You can access these workflows from Library > SNMP > Device Management on the Workflows view in
the Orchestrator client.
VMware, Inc.
99
Using VMware vRealize Orchestrator Plug-Ins
Workflow NameDescription
Edit an SNMP deviceEdits the configuration of a registered SNMP device.
Register an SNMP deviceRegisters an SNMP-enabled device to the plug-in's inventory.
Unregister an SNMP device Unregisters an SNMP device from the plug-in's inventory.
Register an SNMP Device
You can run a workflow to register an SNMP device and optionally configure advanced connection
parameters.
Procedure
1Log in to the Orchestrator client as an administrator.
2Click the Workflows view in the Orchestrator client.
3In the workflows hierarchical list, select Library > SNMP > Device Management and navigate to the
Register an SNMP device workflow.
4Right-click the Register an SNMP device workflow and select Start workflow.
5In the Device address text box, type the IP address or DNS name of the SNMP device.
NOTE To establish a more reliable connection, you should use IP address.
6(Optional) In the Name text box, type a name for the device as you want it to appear in the Inventory
view.
If you leave the text box blank, the device address is used to generate a name automatically.
7(Optional) To configure the advanced connection parameters, select Yes.
aIn the Port text box, specify the connection port.
The default port is 161.
bFrom the Version drop-down menu, select the SNMP version that you want to use and provide the
credentials.
NOTE The support for SNMPv3 is limited to the AuthPriv security level with MD5 authentication.
The DES passphrase is the same as the MD5 password.
8Click Submit to run the workflow.
After the workflow runs successfully, the SNMP device appears in the Inventory view.
What to do next
You can add queries to the SNMP device and run workflows from the Inventory view.
Managing SNMP Queries
You can add queries to SNMP devices, run, copy, and edit existing queries, and remove queries from SNMP
devices.
Query Management Workflows
The Query Management workflow category contains workflows that allow you to manage SNMP queries.
You can access these workflows from Library > SNMP > Query Management on the Workflows view in the
Orchestrator client.
100 VMware, Inc.
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.