Quantcast
Channel: VMware Communities : All Content - vRealize Orchestrator
Viewing all 10285 articles
Browse latest View live

In case you run into this with a 7.3 upgrade -- Lost access to control center


VRO Automation - Vcentre server

$
0
0

Hi.I am working on automating vro workflows. Can you please tell me how to find the dunesId of any object in the inventory "vCenter Server"?

XML Node output from action

$
0
0

I'm building a lot of workflows invoking REST operations against NSX and other API's that uses XML for the request body, and I wanted to programmatically build the XML from an XMLManager document then convert to string to invoke against the API. The problem I'm running into is that if I run the code to build the object via a function in a scriptable task, it works fine... but if I take the same code and turn it into an action (with a return type set to ANY), the resulting variable in my scripting task is always set to null.. which is frustrating. What am I doing wrong?!

 

Inputs would be document (the XML document, type is set to ANY), parent (the root node for the new XML node, also set to type of ANY)... nodeName is a string input, as is nodeText.

 

Code looks like this:

var newNode = document.createElement(nodeName);
parent.appendChild(newNode);
if (nodeText!= null){
var newTxt = doc.createTextNode(nodeText);
newNode.appendChild(newTxt);
}
return newNode;

 

Any help would be greatly appreciated!!!

get datacenters

$
0
0

Hi,

 

How can I get all the datacenters in specific vCneter with VMWare Orchestrator?

 

Thanks!

vAPI list all tagged objects doesn't seem to work. Anyone accomplished this via the vAPI plugin successfully?

$
0
0

I'm trying to make sense of the vAPI plugin and also reading through the online documentation and I haven't seen any examples of listing tagged objects.  If I access the rest api directly and look at the resource definitions for com/vmware/vapi/rest/navigation/resource/id:com.vmware.cis.tagging.Tag I see this which sounds like what I need:


{

      "name": "list_attached_objects",

      "documentation": "Fetches the {@term list} of attached objects for the given tag. To invoke this {@term operation}, you need the read privilege on the input tag. Only those objects for which you have read privileges will be returned.",

      "service": "com.vmware.cis.tagging.tag_association",

      "links": [

        {

          "method": "POST",

          "href": "https://server.example.com/rest/com/vmware/cis/tagging/tag-association/id:{tag_id}?~action=list-attached-objects"

        }

      ],

      "metadata": {

        "method": "GET",

        "href": "https://server.example.com/rest/com/vmware/vapi/metadata/metamodel/service/operation/id:com.vmware.cis.tagging.tag_association/id:list_attached_objects"

      }

    }

 

When I attempt to run this I get an error from the api as follows:

 

{

  "name": "com.vmware.vapi.rest.httpNotFound",

  "localizableMessages": [

    {

      "defaultMessage": "Not found.",

      "id": "com.vmware.vapi.rest.httpNotFound"

    }

  ],

  "majorErrorCode": 404

}

 

Does anyone here know this api well enough to tell me if I am making the correct call and if so can you verify that it is working?  eternallyfrustratedbyvmware how's that for a tag? hopeijustneededtortfm

How to setup VRO clustering

$
0
0

I would like to setup a VRO Clustering for my environment, Any document that helps with clear procedure.

Im getting uneditable error in few of the library workflows

$
0
0

Im getting uneditable error in few of the library workflows

For example Workflow :- Get a VirtualEthernetCard to change the network

May i Know the reason for it

query hosts

$
0
0

Hi,

 

I get all the hosts from a cluster with the command:

var hosts = cluster.getAllHostSystemOfCluster();

 

I want to pass over the array of hosts, and check if the host is available and not in maintenance mode and get all the datastore from the host.

 

Thanks!


problem with timezone during sysprep

$
0
0

I deployed a remote vcenter (6.5) and vro (7.2) and when I create vms there, the timezone within the vms are not set correctly. (The VCSA/vRO appliances are independent and not linked to anything else)

 

For the sake of argument, lets say we're dealing with new york and paris timezone.

 

I was checking the management interface of the appliances (the stuff on port 5480). The VCSA is set to UTC and the vRO appliance was set to new york timezone. I have fixed the vRO appliance to be the paris timezone.

 

Within the OS the timezone is shown as new york instead of paris even though I'm setting timezone=105.0 as part of my customization. Anyone have any idea as to what could be wrong? (The time within the OS is also wrong but it's the same value as the VCSA so i'm guessing i need to change the timezone on the VCSA too? )

 

Thanks

Modify user interaction email

$
0
0

I am using the "user interaction" object in vRO.   I'd like to customize the email that is sent to the user by the user interaction to include attributes of the workflow.   Is that possible?

 

 

If not, is there an alternative way to create a user interaction where I can control the email content?

 

Thanks.

How to start a vRO workflow in the background?

$
0
0

When I run a workflow in the vRO Workflow Designer app for MacOS, the workflow starts in the foreground; while the workflow compiles I am blocked from starting other workflows for several tens of seconds. It there any way to get a workflow to launch immediately into the background?

 

Thanks

w

How to pull the details of SCSi Controller from guest via vro

$
0
0

We have tried the possibilities to get the details by using below scripts..

 

//To print Disks Name

var vmDisks=myvm.guest.disk;

for (var i=0 in vmDisks)

{

var name=myvm.guest.disk[i].diskPath;

var guestdisk = new VcVirtualDisk();

var guestdisks =myvm.guest.disk[i];

 

 

System.log(guestdisk.guestdisks[i].ControllerKey);

System.log(name +": capacity : "+ myvm.guest.disk[i].capacity/1024 /1024 /1024 + " GB and FreeSpace: " + myvm.guest.disk[i].freeSpace/1024 /1024 /1024 + "GB");

}

 

We are not able to find the right scripting object to pull the SCSi controller details from the guest OS (windows).

 

Note :- from Vmlevel we are able to pull the scsi details, but we would like to pull from guest os, if i select the vm it should give E drive is connected to hardisk 1 and its SCSI details and present in this datastore.

How to get detailed list in presentation in VRO 7.2

$
0
0

I am trying to figure out how I can get the same detailed information when I get a list of vm's or datastores that was available in VCO 5.5.  When I display elements in a list I used to get more than just the objects name in 5.5.  We have now moved to VRO 7.2 and now when I show elements as a list it only shows the name.  Is there a way to change this?

get vCenter VM from vCAC VM

$
0
0

I couldn't find an action for this and it doesn't seem to be  a property of the vCAC vm.  It sure would be nice if it were.  I snagged this code from one of the workflows in the vCAC plugin that does what I would like so I figured I would repost here.  I also attached an action.  Takes a vCAC:VirtualMachine input and returns a VC:VirtualMachine out.

 

var sdkConnections = VcPlugin.allSdkConnections;

System.log(sdkConnections.length + " sdk Connections found...");

for each (var sdkConnection in sdkConnections) {

  try {

  vCenterVm = sdkConnection.searchIndex.findByUuid(null, vCACVm.vmUniqueID, true, false);

  } catch(e) {System.log("Error for SDK connection " + sdkConnection.name + " : " + e);}

  if (vCenterVm != null) {

  System.log("Resolved vCenter VM " + vCenterVm.name);

  return vCenterVm;

  break;

  }

}

Can't register vCenter in vRO 7.3 stand-alone appliance

$
0
0

Trying to setup a new vRO utility stand-alone appliance.  When I register vCenter,  I'm running the Add vCenter workflow.  Any ideas?  Here is the version of the VC pllugin. VC 6.5.0.5471688  the Vcenter is 6.5d

 

[2017-08-01 19:20:16.815] [E] Workflow:Add a vCenter Server instance / Register vCenter Server instance (item1) : ch.dunes.model.type.ConvertorException: Unable to convert object, 'vcenter1.ss.local' plugin exception reason : convertToResult() --> Finder 'VC:SdkConnection' : unexpected error 'ch.dunes.model.sdk.SDKFinderException: convertToResult() --> Finder 'VC:SdkConnection' : unable to invoke read method : 'instanceUuid''

[2017-08-01 19:20:16.835] [E] Workflow execution stack:

***

item: 'Add a vCenter Server instance/item1', state: 'failed', business state: 'null', exception: 'Unable to convert object, 'vcenter1.ss.local' plugin exception reason : convertToResult() --> Finder 'VC:SdkConnection' : unexpected error 'ch.dunes.model.sdk.SDKFinderException: convertToResult() --> Finder 'VC:SdkConnection' : unable to invoke read method : 'instanceUuid'''

workflow: 'Add a vCenter Server instance' (f246b7b5-fe89-4da5-a640-36ffc6874069)

|  'attribute': name=hostAndPort type=string value=vcenter1.ss.local:443

|  'attribute': name=errorCode type=string value=

|  'attribute': name=serviceUrls type=Array/string value=#{#string#vcenter1.ss.local:443#;#string#https://vcenter1.ss.local:443/pbm#;#string#https://vcenter1.ss.local:443/sms/sdk#}#

|  'attribute': name=certificateImportException type=string value=

|  'input': name=enabled type=boolean value=false

|  'input': name=host type=string value=vcenter1.ss.local

|  'input': name=port type=number value=443

|  'input': name=path type=string value=/sdk

|  'input': name=sessionPerUser type=boolean value=false

|  'input': name=userName type=string value=vUser@ss.local

|  'input': name=password type=SecureString value=__NULL__

|  'input': name=domain type=string value=

|  'input': name=ignoreCertificateWarnings type=boolean value=true

|  'input': name=httpPort type=number value=null

|  'input': name=pbmUrl type=string value=https://vcenter1.ss.local:443/pbm

|  'input': name=smsUrl type=string value=https://vcenter1.ss.local:443/sms/sdk

|  'output': name=newInstance type=VC:SdkConnection value=null

*** End of execution stack.


Kick-off powershell script that is present on a vm

$
0
0

Is there a way to kick off a powershell script that is present on a vm? I want the powershell script to run whether somebody is logged on or not. I understand I would have to provide credentials though. I would rather now have to use an intermediate pshost to run scripts against another server.

How to install Plug-in other than using Control Center?

$
0
0

I want to install plugin in vRO via Postman. Since in vRO 7.3 Basic Auth is disabled, I'm looking for alternatives to install plugins. I know we can use Swagger UI to install plugin. Is there any other way to do it.

 

I had read that we can do it via vRO CLI. How do install using CLI? I have not been able to find any documentation for this? Following is the right command for this right?

/var/lib/vco/tools/configuration-cli/bin/vro-configure.sh

VCO workflow for thin/thick disk VM provisioning based on Condition

$
0
0

Hi,

please assist

 

I am trying to create a workflow for a new VM to have disk Thin/thick based on input.

 

For instance the workflow should build a VM with thick eager disk if the input is 'x'.. the workflow should build a VM with Thin disk if the input is 'y'.

 

please assist.. Any input or assistance is appreciated. Thank you

VRO 7.1 granting custom set of permissions

$
0
0

I am looking for a way to edit group permissions

in way that its members will be able to execute and view all workflows in the VRO and also will be able to see executions of other users, but won't be given with administrative rights And won't be able to edit workflows. Access rights disn't help me because unless I gave the group admin access right, the users could not see executions of other users.

 

p.s I'm glad I joined this community today and I will be happy to learn a lot from you.

Setting default value for input variable

$
0
0

Hi,

I'm looking for a possibility to set a default value for an input variable with type VC:VMFolder.

I created a workflow for creating templates of selected VMs in folders or Resourcepools. The user can either select a single vm or folder or resourcepool and if only a single vm is selected, he can set the folder in which the template will be stored.

The problem when selecting a destiantionfolder for the template is that you must go through the whole environment from the vcenter to the VM folder.

 

So my question is if there is any way to set a default starting point for the folder field?

Here is my presentation view, instead of the second "Not set" should be set the vm folder when the template is started.

 

wf.jpg

 

Thanks and Regards

Alu

Viewing all 10285 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>