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

Upload files from laptop to datastore using vRO workflow

$
0
0

Hi team,
We wanted to create a blueprint which provides users an option to upload files from their local pc to datastore or File share ( NFS/https/http) .

 

(We tried using the inbuilt SCP vrp workflow, but that provides option to uploads files from vra applaince only )

 

Any inputs would be greatly appreacited

 

Thanks in advance


Determining vCloud Director initiating organisation at Presentation level (Started from vCD - Service Library)

$
0
0

Hi all,

 

We are building vCD Workflows for our Tenants at our vCD 9.5 environment which they can launch from the ‘Service Library’ of vCD.

In this workflows we want the user to select one of their Virtual Machine at the Presentation layer to perform some modifications.

 

Before we can collect the Tenants virtual machines and return them to a dropdown box at presentation layer, we of course need to know which Tenant initiated the workflow.

We have found the snippet “System.getContext().getParameter("_vcd_orgName")”, but this only works in the workflow itself.

This code is just returning ‘null’ from the presentation level when we execute this code within an action.

 

How can we retrieve the initiated orgName in an vRO action script which is building an field of type ‘Predefined list of elements’?  

 

Our environment versions:

 

vCD: 9.5.0.11038232

vRO: 7.5.0.10044239
vRO vCD Plugin: 9.5.0.10198325

What to do in order to run Powershell Code in VRO

$
0
0

Hi,

 

I am looking at running some powershell on VRO, my syntax is as follows. However I am not sure which powershell action to use or whether I need to have a custom one.

 

I am currently using VRO, however this script was written for the older version which is VCO

 

var psScript = ''

 

 

//#trap:

psScript +='\ntrap { \n';

psScript +='  foreach ($err in $error) {\n';

psScript +=' write-output $err\n';

psScript +='  }\n'

psScript +='  if ( $session -ne $null) {\n';

psScript +='    remove-pssession -session $session \n';

psScript +='  }\n';

psScript +='  exit 1\n';

psScript +='}\n';

 

 

psScript +='$ErrorActionPreference = \'Stop\'\n';

psScript +='import-module sqlps -WarningAction:SilentlyContinue -ErrorAction:Stop \n';

 

 

//#create session to targethost:

psScript +='$username = \''+buildaccount+'\'\n';

psScript +="$password = Get-Content '"+buildaccountpwdfile+"' | ConvertTo-SecureString\n";

psScript +='$credential = new-object -typename System.Management.Automation.PSCredential -argumentlist $username,$password\n';

psScript +='$session = new-pssession -computerName '+targethost+' -credential $credential -authentication credssp\n';

 

//obtain server name

psScript +='$sqlserver_server_name = \'select servername from [dbo].[buildlog] where buildno=\'\''+buildno+'\'\'\'\n';

psScript +='$instancename = invoke-sqlcmd -QueryTimeout 30 -ConnectionTimeout 30 -ServerInstance '+buildinstance+' -Database inventory -Query $sqlserver_server_name\n';

 

         

psScript += 'get-pssession -ComputerName '+targethost+'| remove-pssession\n';

 

System.getModule("").executePowershellDirectOnVCOServer(psScript, "Server Identification", null);

 

System.log(psScript);

No Roles Management at Administration

$
0
0

Author : mbanov

URL : http:////docs.vmware.com/en/vRealize-Orchestrator/7.6/com.vmware.vrealize.orchestrator-using-ops-client.doc/GUID-7C14DC2E-B315-4C35-8997-B1D351D638F6.html

Topic Name : Assign Roles in the vRealize Orchestrator Client

Publication Name : Using the VMware vRealize Orchestrator Client

Product/Version : vRealize Orchestrator/7.6

Question :

I logt in to the vRealize Orchestrator HTML 5 Client as an administrator and I want to assign a new role. But I can't find at the administration menu the roles management. How can I find this?

Executing powershell through VRO yields different results vs running powershell directly

$
0
0

Hello!

 

  I'm trying to run a powershell script that deletes an entry upon VM disposing. The script runs fine when I run it directly, using the same username/password as what is setup in VRO PSHost:

 

 

 

PS C:\Users\rpcvpshost> D:\steve\remove-dns.ps1 serverName1.as 10.0.0.1 89.10.in-addr.arpa

 

DNSName is: serverName1.as

 

DNSServer is: 10.0.0.1

 

Check for existing DNS record(s) of serverName1.as

 

Using Get-DnsServerResourceRecord -ZoneName redactedname.com -ComputerName 10.0.0.1 -Node serverName1.as -RRType A -ErrorAction SilentlyContinue

 

An A-record found to be: DnsServerResourceRecord

 

IPAddress is: 10.89.28.50

 

Querying with Get-DnsServerResourceRecord -ZoneName 0.10.in-addr.arpa -ComputerName 10.0.0.1 -Node 50.28 -RRType Ptr -ErrorAction SilentlyContinue

 

Value of NodePTRRecord is: DnsServerResourceRecord

 

Remove-DnsServerResourceRecord -ZoneName 0.10.in-addr.arpa -ComputerName 10.0.0.1 -RRtype

 

PTR -Node 50.28 -RecordData serverName1.as.redactedname.com.  -Force

 

PTR gone: 50.28

 

A-record has been removed: serverName1.as

 

 

 

But when I kick-off the same powershell script, I get the following error. I don't believe it's a network issue or permission issue, because I can run the script directly on the PSHost server, with same user/pass, and it works. ** Note, ignore if the IPs don't 100% matchup in the errors pasted here... I just did a quick search-replace so I'm not putting too much personal server information on the web :-)

 

 

 

 

 

[2019-05-30 10:24:50.702] [E] (com.vmware.library.powershell/invokeScript) Error in (Dynamic Script Module name : invokeScript#14) PowerShellInvocationError: Errors found while executing script

 

Microsoft.Management.Infrastructure.CimException: Failed to get the zone information for redactedname.com on server 10.0.0.1.

 

   at Microsoft.Management.Infrastructure.Internal.Operations.CimAsyncObserverProxyBase`1.ProcessNativeCallback(OperationCallbackProcessingContext callbackProcessingContext, T currentItem, Boolean moreResults, MiResult operationResult, String errorMessage, InstanceHandle errorDetailsHandle)

 

 

 

[2019-05-30 10:24:50.760] [E] Workflow execution stack:

 

***

 

item: 'Invoke an external script/item0', state: 'failed', business state: 'null', exception: 'PowerShellInvocationError: Errors found while executing script

 

Microsoft.Management.Infrastructure.CimException: Failed to get the zone information for redactedname.com on server 10.0.0.1.

Capture Business Group From vRA request

$
0
0

Hi,

I need to capture user business group when opening vRA request.

I`ll explain,

I have vRA XaaS blueprint parameter that get external values from vRO action

but, the return values depends on the user business group.

so I must capture current user group before the request page done loading the external values

 

Things I tried so far:

1. System.getContext().getParameter("_asd.requestInfo_~subTenant~name");

 

2. I tried to get it from the form parameters

which leads to: (when the request done loading - reminder I need to before the request done loading)

 

3. I tried this one too current business group

    but this solution yields  all user business groups

 

help ?

no credentials found for peer of SRM server https://ip:9086/vcdr/extapi/sdk

$
0
0

Hi there,

 

I wonder if anyone can help with a strange problem I'm experiencing but can't find anything specific about online.

 

I'm using vRA 7.5 with internal vRO server, with a pair of 6.7u1 VCSAs (not linked) and SRM 8.1.1 (and the 8.1.1 plugin for vRO)

 

I've registered both VCSAs in vRO, a pair of vSphere Replication Appliances (1 per VCSA), and then SRM running the 3 configuration workflows (Configure Local Sites, Configure Remote Site, Login Remote Site) from the release notes which all seem OK.

 

I'm seeing "no credentials found for peer of SRM server https://ip:9086/vcdr/extapi/sdk" on a few different workflows within vRO under SRM..

 

- Protect Virtual Machine (but this works if I have already manually protected it!) // and the unprotect virtual machines workflow works

- Protect All unprotected virtual machines associated with protection grop

 

I can see both 'sites' during the execution of the SRM workflow "Add replicated VM to vSphere Replication Protection Group" which seems to work OK.

 

Looking at SRM from both VCSA, all looks fine with green ticks and I can bypass vRO and set the stuff up manually.

 

I can use the vSphere replication workflow tasks OK in vRO.

 

Very grateful for any thoughts!

 

 

Cheers,

 

 

K

Renaming a Workflow Task from code

$
0
0

I can do that on the vRO console.. but can't this be done from code??? 

 I'm surprised I do not see any way to do that in the docs..


vRO/vRA 7.3.1 inaccurate list of catalog resources returned when using cafeHost.createCatalogClient().getCatalogConsumerResourceService()

$
0
0

Cross posting here as I am getting no responses in the vRA community... https://communities.vmware.com/thread/611918 .

 

Attached is an action I have created to grab all the catalog resources for a given business group with an optional filter on resource type.  For some of my business groups I am getting some strange results.  It always seems to return the correct number of items based on what is in the gui but some of the items are not there.  For instance if I had a business group with System A, System B, and System C my result from the query will have 3 items but System A might be missing.  I've yet to figure out what is in place of the missing items.  Missing might not be the right term but why the data being returned isn't matching up.  I have some other workflows setup to query for catalog resources based on name and if I do so for the missing item I do get the correct item returned.  I'm hoping someone here with a fairly large inventory in a business group can give this a run and see what they get back.  It seems to only malfunction on my business groups that have at least several hundred if not more than a thousand.  Actually, it is malfunctioning on all of the business groups with more than 1000 vm's in my environment.  Possible its just not exhibiting the behavior in the smaller business groups because of the low volume of activity?  I'm going crazy trying to figure this one out.

How to list all Distributed Switches of a vCenter

$
0
0

I do not find something like VcPlugin.getAllDistributedVirtualSwitches like we have for many other objects like VcPlugin.getAllSDKConnections().  Could you one help to list and play around an array of Distributed Virtual Switches?

Unable to bundle the workflows in the modeldriven archetype in VRO 7.5

$
0
0

Hello All:

   I am using VRO 7.5 and trying to develop a plugin using Model Driven Archetype. The plugin seems to be working but i am unable to package the workflows that i have created for the plugin. On looking into the vso.xml i see that the generated file always have the name of the package as o11nplugin-examples-*  as below.

<installation mode="always">

        <action resource="packages/o11nplugin-example-package-${project.version}" type="install-package"/>

    </installation>

 

 

whereas the skeleton code that is generated by the mvn archetype is 

<packageFileName>o11nplugin-test-package-${project.version}</packageFileName>

 

if i hardcode the value of the package filename to o11nplugin-example-package this seems to be working whereas otherwise my package does not seem to be uploaded in the VRO.

Can you suggest if there is anything in the configuration that i may have missed out or is this a bug in the model driven. For VRO 7.0 that i have used earlier i did not face this issue.

 

Thanks & Regards,

Nimesh

Tab 'Permissions' missing in vRO 7.6 client

$
0
0

In vRO 7.6 client the Tab 'Permissions' is missing, in vRO clients < V7.6 Tab 'Permissions' is present:

 

Unbenannt.png

 

Any ideas?

 

Thank you!

Get virtual machines from vCACCAFE:BusinessGroup

$
0
0

Hi,

 

I'm new working with vRO and JS. I'm trying to get all VMs (VC:VirtualMachine) from a BusinessGroup (vCACCAFE:BusinessGroup). There is any way to relate this 2 object types??

 

Thanks in advance!

Getting "Connection refused" error in eclipse/IntelliJ while connecting it to vRO 7.5 which is in debug mode

$
0
0

I am getting "Connection refused" error in eclipse/IntelliJ while connecting it to vRO 7.5 which is in debug mode.

I have tried connecting to 4-5 vRO's(version 7.5) from my eclipse but getting same error.

 

How to get ESXi host's cluster object?

$
0
0

I am trying to go through few hoops to get to it and finally will get it, but wondering if anyone already know how to get the cluster name or object of a ESXi host.  I would like to avoid getting all hosts and get hold of it.  As I have the host obj already in hand I would like to see if I can get it quickly than searching in the collection of all ESXi hosts.


Chrome NET::ERR_CERT_AUTHORITY_INVALID when browsing to vRO Control Center [vRA 7.3.0.1650 (build 5604410)]

$
0
0

Using Google Chrome 72.0.3626.121 (Official Build)(64-bit) on Windows 10 generates the following when browsing to https://<vRA instance>:8283/vco-controlcenter/ :

 

 

Your connection is not private

Attackers might be trying to steal your information from <vRA instance> (for example,

passwords, messages, or credit cards). Learn more (chrome-error://chromewebdata/#)

 

NET::ERR_CERT_AUTHORITY_INVALID

 

[Hide advanced]  [Reload]

 

<vRA instance> normally uses encryption to protect your information. When Google

Chrome tried to connect to <vRA instance> this time, the website sent back unusual and

incorrect credentials. This may heppen when an attacker is trying to pretend to be

<vRA instance>, or a Wi-Fi sign-in screen has interrupted the connection. Your information

is still secure because Google Chrome stopped the connection before any data was

exchanged.

 

You cannot visit <vRA instance> right now because the website uses HSTS. Network errors

and attacks are usually temporary, so this page will probably work later.

 

This seems to be relatively new, meaning that it has worked in the past but we don't know when it stopped working. If we use the Chrome "thisisunsafe" trick then we are able to bypass this error.

 

Anyone know what is causing this error how how to fix it?

Powershell code conversion to Javascript

$
0
0

Hi. Anyone know if there's a software or website to convert Powershell code to Javascript?

Or how to specifically convert this where statement example - "where { $_.Model -match "Some_Name" }"  from Powershell to a compatibe Javscript code?

Would appreciate any help.

Powershell output has extra objects on VRO

$
0
0

Hi All,

 

 

 

 

 

 

I have a simple Ps script which just returns a name in the form of an object. what i am hoever finind is that extra objects are being returned by the Ps script when it gets to vro.

 

 

My PS script looks like this.

 

 

Param

(

[Parameter(Mandatory=$true)] [string] $ServerName

 

 

)

[CmdletBinding]

 

 

 

 

$myobject = New-Object -TypeName psobject

 

 

$myobject  | Add-Member -MemberType NoteProperty -Name FName -Value "Tom"

$myobject  | Add-Member -MemberType NoteProperty -Name Rank -Value "1"

 

 

$myobject

 

 

 

However on VRO, when I process the output which is of type PowershellRemotePSObject.

 

 

 

 

var x  = output.getRootObject();

var whatsmyname

 

 

for (idx in x) {

//each item is complex objec  having two properties (name,age)

//it is mapped to PowerShellPSObject

var obj = x[idx]

System.log("Name : " + obj.getProperty('FName') + " Rank : " + obj.getProperty('Rank'));

whatsmyname = obj.getProperty('FName');

 

}

 

 

I seem to be getting 2 rows, one is completely null and the other has the results from my script.

 

 

Is there a way to eliminate the null values, I also noticed tht my PS script brings back the following when executed from vro.

 

 

IsPublic IsSerial Name                                     BaseType                                                   

-------- -------- ----                                     --------                                                   

True     False    CmdletBindingAttribute                   System.Management.Automation.CmdletCommonMetadataAttribute 

 

 

FName : Tom

Rank  : 1

 

 

 

 

I suspect that this is the extra row being converted to null, is there a way to exclude them and only return the legitimate values ?

 

 

Param ([Parameter(Mandatory=$true)] [string] $ServerName

)[CmdletBinding]

 

 

$myobject = New-Object -TypeName psobject

$myobject  | Add-Member -MemberType NoteProperty -Name FName -Value "Tom"$myobject  | Add-Member -MemberType NoteProperty -Name Rank -Value "1"

$myobject

IP Allocations on External network

$
0
0

Hi there!

 

Get me a tip, how I can get an array of alocated IP addresses at External network through VRO (with workflow or any JS script).

 

Thanks in advance!

vRO task to update host profile after making advanced iSCSI option change.

$
0
0

I know it's possible to update host profile parameters in vRO but I've been having difficulty finding any info on how to create a vRO task to update a specific value, i.e. delayed ack in advanced iSCSI options (https://kb.vmware.com/s/article/1002598).

My objective is to have a task that would actually disable the setting on ESXi hosts then another that would update the host profile so all hosts would be in compliance. Has anyone worked on a similar issue before? Can someone please help with any info you might have? Would greatly appreciate that.

Viewing all 10285 articles
Browse latest View live


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