Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • VMware vRealize Orchestrator Cookbook
  • Toc
  • feedback
VMware vRealize Orchestrator Cookbook

VMware vRealize Orchestrator Cookbook

By : Langenhan
4 (3)
close
VMware vRealize Orchestrator Cookbook

VMware vRealize Orchestrator Cookbook

4 (3)
By: Langenhan

Overview of this book

VMware vRealize Orchestrator is a powerful automation tool designed for system administrators and IT operations staff who are planning to streamline their tasks and are waiting to integrate the functions with third-party operations software. This book is an update to VMware vRealize Orchestrator Cookbook and is blend of numerous recipes on vRealize Orchestrator 7. This book starts with installing and configuring vRealize Orchestrator. We will demonstrate how to upgrade from previous versions to vRealize Orchestrator 7. You will be taught all about orchestrator plugins and how to use and develop various plugins that have been enhanced in Orchestrator 7. Throughout this book, you will explore the new features of Orchestrator 7, such as the introduction of the control center, along with its uses. You will also come to understand visual programming, how to integrate base plugins into workflows, and how to automate VMware. You will also get to know how to troubleshoot vRealize Orchestrator. By the end of this book, you will be able to get the most out of your Orchestrator installation, and will be able to develop complex workflows and create your own highly integrated automations of vRealize environments.
Table of Contents (14 chapters)
close

Using the Locking System


Here we will have a look at the Locking System. We will learn how to lock and unlock objects using locks. Locks are used to make sure objects are only used by one owner.

Getting ready

The Locking System doesn't need anything, as it itself is just virtual.

How to do it...

There are three phases to locking: locking, checking and unlocking.

Create a lock

We will now create a lock:

  1. Create a new workflow and add a scriptable task.

  2. Add the following variables as input:

    Name

    Type

    Section

    Use

    object

    String

    IN

    Any string

    owner

    String

    IN

    Any string

  3. Enter the following script:

    LockingSystem.lockAndWait(object ,owner); 
    
  4. Add the workflow Display all Locks at the end.

  5. Save and run the workflow. Enter as object any string, such as Test and as owner or any other string such as Goofy.

  6. Check the logs.

Check for lock

We will now check if an object is locked:

  1. Create a new workflow and add a scriptable task.

  2. Add the following variables as input:

    Name

    Type

    Section...

Unlock full access

Continue reading for free

A Packt free trial gives you instant online access to our library of over 7000 practical eBooks and videos, constantly updated with the latest in tech
bookmark search playlist font-size

Change the font size

margin-width

Change margin width

day-mode

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Delete Bookmark

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete