Using vcenter Orchestrator AMQP Plug-in



Similar documents
Using VMware vrealize Orchestrator Plug-Ins

Patch Management. Module VMware Inc. All rights reserved

Jive Case Escalation for Salesforce

1) Go to the following URL: 2) Login with your NUS account and password.

Reporting works by connecting reporting tools directly to the database and retrieving stored information from the database.

PC Monitor Enterprise Server. Setup Guide

JORAM 3.7 Administration & Monitoring Tool

LICENTIA. InvoiceXpress Integration

Using the vcenter Orchestrator Plug-In for vsphere Auto Deploy 1.0

vrealize Automation and Storage Policy Based Management Framework Integration Installation and Configuration Guide

Hands-On Lab. Embracing Continuous Delivery with Release Management for Visual Studio Lab version: Last updated: 12/11/2013

Monitoring MySQL database with Verax NMS

Customer User Guide. Self Service CUSTOMER USER GUIDE VERSION 1

How do I load balance FTP on NetScaler?

User Manual. Main Features

Contents AP - BROWSER BASED USER INTERFACE... 3 AP - CLIENT CAPABILITIES Cabinet AP October 2014 P a g e 2

About the VM-Series Firewall

SharePoint Integration Framework Developers Cookbook

Magento module Documentation

Egnyte for Salesforce v2.1 Administrator s Guide

Using the vcenter Orchestrator Plug-In for Microsoft Active Directory

SmartConnect Users Guide

Configuring, Customizing, and Troubleshooting Outlook Express

Getting Started. Getting Started with Time Warner Cable Business Class. Voice Manager. A Guide for Administrators and Users

IBM BPM V8.5 Standard Consistent Document Managment

BarTender Integration Methods. Integrating BarTender s Printing and Design Functionality with Your Custom Application WHITE PAPER

Extensibility. vcloud Automation Center 6.0 EN

WildFire Reporting. WildFire Administrator s Guide 55. Copyright Palo Alto Networks

Getting Started Guide

Using vrealize Code Stream

Configuring Thunderbird with UEA Exchange 2007:

Uptime Infrastructure Monitor. Installation Guide

Information & Communication Technologies FTP and GroupWise Archives Wilfrid Laurier University

Monitoring PostgreSQL database with Verax NMS

Kaldeera Workflow Designer 2010 User's Guide

StreamServe Persuasion SP5 Ad Hoc Correspondence and Correspondence Reviewer

Kaseya 2. User Guide. Version 1.0

BlackBerry Mobile Voice System. Version: 5.3. Administration Guide

WHMCS Integration Manual

Startup guide for Zimonitor

Welcome to the topic on approval procedures in SAP Business One.

s sent to the FaxFinder fax server must meet the following criteria to be processed for sending as a fax:

Managing your accounts

Avigilon Control Center System Integration Guide

Distribution List Manager User s Manual

Advanced Service Design

GRAVITYZONE HERE. Deployment Guide VLE Environment

Enswitch Administrator Guide

Version 1.0 January Xerox Phaser 3635MFP Extensible Interface Platform

1: 2: : 3.1: 3.2: 4: 5: & CAPTCHA

Installing and configuring Microsoft Reporting Services

Virtual Contact Center

Remote Administration

Getting Started with WPM

Reveal Systems TrueForms Software Online Plug-in Version

McAfee Vulnerability Manager 7.5.1

Marketo Integration Setup Guide

University of Minnesota Voucher and Journal Imaging Guide for ImageNow 6.2

Aspen Cloud Server Management Console

GE Measurement & Control. Remote Comms System. Installation and User Reference Guide

Enterprise Recipes with Ruby and Rails

Monitor Print Popup for Mac. Product Manual.

MessageGuard 3.0 User Guide

WebSphere Business Monitor V7.0 Script adapter lab

WildFire Cloud File Analysis

DEPLOYMENT GUIDE Version 1.1. Deploying the BIG-IP LTM v10 with Citrix Presentation Server 4.5

Configuring Outlook 2013 For IMAP Connections

Orchestrating Document and Media Management using CMIS

Keepit starter guide

Quick Start Guide. Version R9. English

CREATE A CUSTOMER... 2 SIP TRUNK ACCOUNTS...

OCS Training Workshop LAB14. Setup

Kentico CMS 7.0 E-commerce Guide

2012 Nolio Ltd. All rights reserved

NAS 225 Introduction to FTP Explorer

Mobile Labs Plugin for IBM Urban Code Deploy

Migrating to vcloud Automation Center 6.1

WHMCS LUXCLOUD MODULE

Evaluator s Guide. PC-Duo Enterprise HelpDesk v5.0. Copyright 2006 Vector Networks Ltd and MetaQuest Software Inc. All rights reserved.

Developing Web Views for VMware vcenter Orchestrator

Chancery SMS Database Split

VCW FTP Microsoft Outlook Add-In Configuration and Implementation

Actualtests.C questions

CROWNPEAK C# API SYSTEM CONFIGURATION GUIDE VERSION 3.0.1

DNS REBINDING DENIS BARANOV, POSITIVE TECHNOLOGIES

5 Setting up a Contact Center

HP Cloud Service Automation

The Beginner s Guide to G-Lock WPNewsman Plugin for WordPress: Installation and Configuration

Sonian Getting Started Guide October 2008

Dove User Guide Copyright Virgil Trasca

TERAcloud w w w. t e r a c l o u d. u k

TIBCO ActiveMatrix BusinessWorks Plug-in for Microsoft SharePoint User s Guide

User Guide for VMware Adapter for SAP LVM VERSION 1.2

MASTERTAG DEVELOPER GUIDE

Scheduling in SAS 9.4 Second Edition

NetApp OnCommand Plug-in for VMware Backup and Recovery Administration Guide. For Use with Host Package 1.0

Transcription:

Using vcenter Orchestrator AMQP Plug-in Walkthrough guide TECHNICAL WHITE PAPER

Document Title Table of Contents What is vcenter Orchestrator AMQP Plug-in?... 2 AMQP Plug-in Installation... 2 Configure AMQP Broker Server in AMQP Plug-in... 2 Send Hello World AMQP Message Using AMQP Plug-in... 4 Suspend Workflow Waiting for AMQP Message Using AMQP Plug-in... 8 Using AMQP Queue as a vcenter Orchestrator Policy Element... 9 Overview of the Scripting API... 10 TECHNICAL WHITE PAPER /1

What is vcenter Orchestrator AMQP Plug-in? AMQP Plug-in Installation The plug-in could be installed as any vco.vmoapp file, by uploading it through the vco web configurator s Plug-ins page. Configure AMQP Broker Server in AMQP Plug-in In order to start using AMQP brokers in the vcenter Orchestrator you need to configure them in the AMQP plug-in. This could be easily done by using the provided by the plug-in configuration workflows. Figure 1: AMQP Plug-in configuration workflows To add new broker definition use the Add broker workflow. When started, you will be prompted to input all the properties of the broker.

Figure 2: Add broker workflow Some of the properties will be filled in by default (port and virtual host). After you submit the workflow your broker will be shown in the inventory. Figure 3: AMQP broker in the inventory Now you are ready to use this broker. If you want to update the broker properties use Update broker workflow, if you want to remove it just use Remove broker. The configured broker could be managed with several additional workflows provided by the plug-in. This way you could declare/delete exchanges, queues and bindings.

Send Hello World AMQP Message Using AMQP Plug-in Let s use the already configured broker to send and receive a simple text message. As a starting point let s declare an exchange. Start the Declare exchange workflow and fill in the exchange properties. Figure 4: Declare exchange There is no way visually to confirm that the exchange is created but if the workflow completes successfully the exchange is created. Now that we have the exchange, let s create a queue that we could bind to the exchange. To do this start the Declare queue workflow and fill in the queue properties

Figure 5: Declare queue Again we could not visually confirm that the queue is created but the workflow success is enough. Now it is time to bind the queue to the exchange, for this purpose start Declare binding workflow and fill in the required properties.

Figure 6: Declare binding As we already created the necessary AMQP destinations let s send and receive a message through it. There are two simple workflows provided by the plug-in that allows you to send and receive a text message, so let s use them for our test message. Start the Send text message workflow and fill in the message properties. Figure 7: Sending text message The workflow should complete successfully. Now let s read the message using the Receive text message workflow.

Figure 8: Receive text message If the workflow execution is successful we could observe the message details in the Variables tab in execution details screen. Figure 9: Message details

To clean up the test exchange and queue that we created we could use Delete exchange and Delete queue workflows. Suspend Workflow Waiting for AMQP Message Using AMQP Plug-in Being able to receive a message from a queue is nice but sometimes we need to suspend the worlflow execution until a message is received. Let s take a look how we could achieve this. The plug-in comes with an additional folder with sample workflows in /Library/AMQP Samples/. The workflow Wait for message suspends its execution until a message is received on the specified queue: Figure 10 Waiting for message workflow It uses the well known Wait Event component to achieve execution suspension: Figure 11 Creating triggers for waiting on a queue Creating the trigger to pass to the Wait Event is the only AMQP plug-in specific part: messagetrigger = broker.receiveasync(queue, timeoutseconds); Besides the queue name you must provide a timeout (in seconds) to wait for a message. When no message is received within the provided timeout, the workflow fails.

In case a message is received, you can access it using this snippet: var props = broker.retrievelosttriggerproperties(messagetrigger); if (props!= null) { body = props.get("body"); properties = props.get("properties"); headers = props.get("headers"); } Notice how you use the trigger as a parameter to the retrievelosttriggerproperties() scripting method. If you do Using AMQP Queue as a vcenter Orchestrator Policy Element A set of AMQP can serve as policy element. You create a subscription inventory item using the Subscribe to queue(s) workflow Figure 12 Create a Subscription In this fictional scenario we subscribe to the queues prices and invoices. The queues must be created in advance otherwise the policy will fail to start. The Subscription policy element has a single trigger OnMessage, which is activated whenever a message is received on any of the queues. The Subscriptions are visible as children of the Broker: Figure 13 Subscriptions shown in the inventory It is recommended to create a Policy using the provided Policy Template in /Library/AMQP/Subscription.

Figure 14 Appling a Policy Template for a Subscription The created Policy is automatically bound to the OnMessage trigger on the Subscription inventory object. There is also scripting code generated as a hint how to retrieve the message: Figure 15 Editing a Subscription based Policy In case you need to know on which queue the message was received, you can inspect the messageproperties and find out. Overview of the Scripting API Creating a broker

var broker = AMQPBrokerManager.addbroker({ host: "10.23.164.48", port: 5672, username: "guest", password: "guest" }); Removing a broker broker.remove(); Declaring an exchange broker.declareexchange("demo-exchange", { type: "direct", // fanout, topic or headers durable: false, autodelete: false }); Deleting an exchange broker.deleteexchange(name); Declaring a queue broker.declarequeue("demo-queue", { durable: false, exclusive: false, autodelete: false }); Deleting a queue broker.deletequeue(name); Declaring a binding broker.bind("demo-queue", "demo-exchange", { routingkey: "rk" }); Deleting a binding broker.unbind(queuename, exchangename, { routingkey: "rk" }); Sending a message var msg = new AMQPMessage(); msg.bodyastext = "hello world" broker.send("demo-exchange", "rk", msg); Receiving a message var msg = broker.receive("demo-queue"); if (msg!= null) { // process message } else { // no pending message in the queue

}