Quantcast
Channel: VMware Communities : Discussion List - vRealize Orchestrator
Viewing all 6251 articles
Browse latest View live

How to export workflow log to an external resource like ftp or smb server?

$
0
0

Hi all,

Recently i wrote an workflow to get all storage path status, but i need to save all of the result into an external resource like ftp or smb servers.

Can anyone suggest me the best practice?

 

 

Thank you


can't find license in licensemanager by name

$
0
0

I'm trying to find my ESXi licenses by the name I give them when added to vCenter (eg. my license 1 or my license 2) but I can't find what I need in the licenseManager class. I can find the license key, the type of license (which is the name property and returns something like ESXI 6 enterprise) but not the name I called it in the list I see in vCenter.

Anyone know how to access a license by it's vcenter name?

Deploy ovf/ova with vRO Script or vSphere API

$
0
0

Hello All,

I was wondering is there a way to do automatic deployments (imports) of ovf/ova files with just JavaScript or with the vsphere API?  I know there is a plugin but I am worried about the ongoing support so I was wondering if anybody leveraged any other solutions

Get the vRA payload properties in XaaS Action

$
0
0

Hi Friends,

in my current engagement, we have created day 2 operations for VM using vRO workflow as XaaS action. Since they need a some warning, while perform the day 2 operations.

 

Now we need Payload properties for passing the data to ITIL process (SNOW). So kindly help me to get the payload with EBS.

getProvisioningRequestData

$
0
0

Hi All,

 

When I browse the API explorer then I find a lot of methods and objects. But how can I create a object that is a dependency for another??

 

Meaning, I'd like to change the VM configuration in the Requested Phase. I found the script below and I'd like to change the network adapter to VMXNet and the storage to paravirtual.

 

var requestId = executionContextProperties.get("__asd_catalogRequestId");

var jsonData = vCACCAFERequestsHelper.getProvisioningRequestData(requestId);
var json = JSON.parse(jsonData);

System.log(json);

// Change cpu example
json.ComponentName.data.cpu = 2;

 

When I lookup the method "getProvisioningRequestData()" then a "vCACCAFECatalogItemProvisioningRequest" is required as an input. How can I create this during the subscription run?

 

I'd tried to pass in the catalog request id, but this didn't work

 

var requestId = executionContextProperties.get("__asd_catalogRequestId");

 

 

Thanks!

vRO 8 - REST API

$
0
0

Hello,

 

I'm trying to start a workflow execution using the rest api. I've noticed that the URL has changed at vRO8. The URL now is:

api/org/{id}/workflows/{workflowId}/executions

 

 

What is the {id} value?

 

I was able to anwser an user interaction using the api, but when I try to start a workflow I get error 500. The workflow does not have input parameters.

 

Any ideas?

 

Thanks.

HBA and Network Firmware & Driver Information

$
0
0

Hello

 

how can i find the next ESXI info from VRO:

 

Network Firmware & Driver Information

 

HBA  Firmware & Driver Information

 

thank you

Migrate vRO 7.6 to vRO 8

$
0
0

Hi,

 

I'm trying to migrate vRO 7.6 to new vRO 8.

I'm following the steps outlined here; Migrating Standalone vRealize Orchestrator 7.x to External vRealize Orchestrator 8.0

I Always get error that SSH Connection is not possible. But when doing "ssh [source appliance]" on new appliance I can connect and Login with provided credentials.

No Firewall between the Systems.

The vro-migrate script is not able to Login to source appliance or check SSH port is open.

vro-migration.log:

++ date

+ echo 'Migration is started at ' Wed Oct 23 10:49:33 UTC 2019

Migration is started at  Wed Oct 23 10:49:33 UTC 2019

+ SRC_VRO_HOST=cis-vro

+ SRC_VRO_ROOTUSER=root

+ set +x

+ TRG_VA_IP=

+ PATH_TO_MIGRATION_JOB_YAML=/tmp/vco-migration-job.yaml

+ touch /tmp/vco-migration-job.yaml

+ cat

+ [[ ! -e /tmp/vco-migration-job.yaml ]]

+ [[ ! -s /tmp/vco-migration-job.yaml ]]

+ kubectl -n prelude scale deployment vco-app --replicas=0

deployment.extensions/vco-app scaled

+ kubectl apply -n prelude -f /tmp/vco-migration-job.yaml

job.batch/vco-migration created

++ kubectl get pods -n prelude -o=name

++ grep vco-migration

++ sed 's/^.\{4\}//'

+ VCO_MIGRATION_POD_NAME=vco-migration-fwcwt

++ kubectl get pods -n prelude vco-migration-fwcwt -o 'jsonpath={.status.conditions[?(@.type=="Ready")].status}'

+ MIGRATION_POD_STATUS_CMD=False

+ [[ False == \T\r\u\e ]]

++ kubectl get po -n prelude vco-migration-fwcwt -o 'jsonpath={.status.conditions[?(@.type=="Ready")].status}'

+ MIGRATION_POD_STATUS_CMD=False

+ echo 'Migration container is not ready.'

Migration container is not ready.

+ sleep 5

+ [[ False == \T\r\u\e ]]

++ kubectl get po -n prelude vco-migration-fwcwt -o 'jsonpath={.status.conditions[?(@.type=="Ready")].status}'

+ MIGRATION_POD_STATUS_CMD=True

+ echo 'Migration container is not ready.'

Migration container is not ready.

+ sleep 5

+ [[ True == \T\r\u\e ]]

+ set +x

Wed Oct 23 10:49:45 UTC 2019 : Start installation of vco configuration cli.

Preparing...                          ################################# [100%]

Updating / installing...

   1:vco-cfg-cli-8.0.0.1570646260-1483################################# [100%]

Wed Oct 23 10:49:46 UTC 2019 : Installation of vco configuration cli is completed

Wed Oct 23 10:49:46 UTC 2019 : Verify ssh connection to source host is possible

Wed Oct 23 10:49:46 UTC 2019 : IS_SSH_CONNECTION=

Wed Oct 23 10:49:46 UTC 2019 : Verify connection on port 22 to the source host machine is possible.

Wed Oct 23 10:49:46 UTC 2019 : Connection to cis-vro on port 22 is not possible.

Wed Oct 23 10:49:46 UTC 2019 : Please verify that the correct hostname is provided: cis-vro.

Wed Oct 23 10:49:46 UTC 2019 : Please make sure that port 22 on the source host machine is opened while making the migration.

Wed Oct 23 10:49:46 UTC 2019 : If the port is opened then verify that the correct username and password are entered.

command terminated with exit code 1

+ startVcoDeploy

+ echo 'Start vco-app containers again.'

Start vco-app containers again.

+ kubectl -n prelude scale deployment vco-app --replicas=1

deployment.extensions/vco-app scaled

+ echo 'Delete migration job artifacts.'

Delete migration job artifacts.

+ kubectl delete job -n prelude vco-migration

job.batch "vco-migration" deleted

+ rm /tmp/vco-migration-job.yaml

+ rm /tmp/vco_migration_on

++ date

+ echo 'Migration finished at' Wed Oct 23 10:49:47 UTC 2019

Migration finished at Wed Oct 23 10:49:47 UTC 2019

+ set +x

Container migration script failed.

 

 

Any ideas what would be causing this?


vRO 8 and Kerberos / Powershell

$
0
0

Hi,

 

I´ve installed a complete fresh version of vRO 8 and tried to migrate some of my 7.x workflows.

While adding a powershell host I came across krb5.conf file...

 

On 7.x installation the manual says I should but it in /usr/java/jre-vmware/lib/security/

For 8.x there manual says nothing about krb5.conf or kerberos at all (or I can´t find it)...

 

Has anyone already successfully added a powershell host with kerberos to vRO 8.x and can help me out ?

 

Thanks

Delete Old Snapshots via vRO(vRealize Orchestrator)

$
0
0

Hi,

 

I want to schedule vRO workflow to delete old snapshot based on the its age(days). I know there is default workflow in vRO that we can use to delete old snapshots, however I need more information on that.

 

1) If we have more than 1 vCenter instances added in vRO, then does this vRP workflow runs on all vCenter servers or do we need to modify it as per our requirment.

2) Before running this on all VMs in Infra, I would first like to test on  2 ~ 3 specific machines in Infra. Can someone assist me in modifying default old snapshot workflow, so that it runs on these specific VMs only.

3) Is it also possible to exclude few VMs in infra that Workflow should not touch or delete their snapshots. If yes, then kindly assist how can this be done ?

vRO ServiceNow (snow) REST API Code

$
0
0

Hello,

I will preface this with the fact that I'm not a JavaScript code guy, I usually manage to muddle my way around things. 

 

I am creating a workflow to Add or Update ServiceNow CMDB records when we deploy ESXi hosts or VMs.  As I get started in our developer instance, I'm able to get the content but when I convert it using JSON.parse all of the content appears "undefined".  I've done this before without problems on simpler API calls but the snow records are a huge table so I might not be doing this correctly.  Here is the code and the log results.  As you can see, I'm successfully grabbing the data (note the urlTemplate is static for testing purposes only).

 

var urlTemplate = "/api/now/table/cmdb_ci_esx_server?sysparm_exclude_reference_link=True&sysparm_fields=name%2Cinstall_status%2Cserial_number&name=pxesx723"
var request = snowRestHost.createRequest("GET", urlTemplate, null);
var contentType = "application/json"


request.contentType = contentType
System.log("Request Content Type: " + request.contentType);
var response = request.execute();
System.log("STRING: " + response.contentAsString);
var responseInJson = JSON.parse(response.contentAsString);
System.log("Result should be Object: " + responseInJson); //confirm it is object
System.log("Headers: " + responseInJson.getAllHeaders);
System.log("Content Length: " + responseInJson.contentLength);
System.log("statusCode: " + responseInJson.statusCode);
System.log("JSON Name Field: " + responseInJson.name);
System.log("JSON Name Field: " + responseInJson.result.name);
var responseString = JSON.stringify(responseInJson);
System.log("Back to string: " + responseString);

 

Notice that when I try to get headers in the JSON object everything is "undefined".  I also see that it appears to be nested.  Where am I going wrong here?

 

[2019-10-23 09:05:59.097] [I] Request Content Type: application/json

[2019-10-23 09:05:59.425] [I] STRING: {"result":[{"install_status":"1","name":"pxesx723","serial_number":"USE4338MN9"}]}

[2019-10-23 09:05:59.431] [I] Result should be Object: [object Object]

[2019-10-23 09:05:59.436] [I] Headers: undefined

[2019-10-23 09:05:59.438] [I] Content Length: undefined

[2019-10-23 09:05:59.441] [I] statusCode: undefined

[2019-10-23 09:05:59.443] [I] JSON Name Field: undefined

[2019-10-23 09:05:59.445] [I] JSON Name Field: undefined

[2019-10-23 09:05:59.448] [I] Back to string: {"result":[{"install_status":"1","name":"pxesx723","serial_number":"USE4338MN9"}]}

 

Also, not know REST all that well, is there a difference between using a URL vs. a URI in the code above?  Here is one of the URI instances sent to me:

$uriTemplate="/api/now/identifyreconcile?sysparm_data_source=citrix"

vRO 7.4 - User Interaction

$
0
0

Hello my friends. How are you?

 

I am creating a workflow that has a User Interaction step. The security.group and security.assignees are defined as workflow attribute and seems to be ok.

 

Let's use this image as example:

 

 

As you can see, we have Start workflow -> Provide Form Variable -> User Interaction -> Custom decision -> End of Workflow. The user interaction is between a scriptable task and a Custom decision. This layout is not showing the User interaction in vRA Inbox \ Manual user action tab. I already checked variables and all things, and the interaction doesn't appear in vRA.

 

When I put the User interaction as the first element of the workflow, Start workflow -> User Interaction  -> Provide Form Variable -> Custom decision -> End of Workflow, it works fine and the interaction appears in vRA Inbox \ Manual user action.

 

Has anyone ever experienced this?

ESXi Host Event Logs

$
0
0
I would like to retrieve events from a specific ESXi host NOT vCenter host events.  I am having trouble finding this.  I see there is host.configIssue that gives events, but those are only specific to configuration events.  I am looking to get all host events and then filter.  I also see the VCHostEvent class but unsure how to use it or if it will even return the host events.

Adding External HDD to ESXI failed

$
0
0

Hi,

I have 5 instances on my ESXI 6.5 and have connected WD Passport HDD for backup purpose but none of the instance detect the HDD, I've enabled in the settings manually to detect but still no

 

Kindly advice the solution.

 

TIA

ToDo queue

$
0
0

I need to collect deferred activities in a queue and try to perform them until a defined timeout. The usecase is to connect to a REST API and make some calls but retry for a while (few days) if the connection is unavailable.

 

My idea: try to make the call as usual, and in case of error put the call input into a queue. Run a scheduled vRO task and pick the queue elements, retry until success or predefined aging exceeded. My question is how would you implement this queue? In a DB? In resource elements? Message queue? Any recommendations appreciated.


How can I clear all values in a vRO workflow presentation?

$
0
0

I've got a popup menu in my vro workflow presentation that shows/hides different elements depending on what you select. The popup is a predefined answers property where I typed in the options they can select from.

 

If someone picks a new option from the menu I would like to clear anything that may have been set previously (basically an onChange type thing).

 

Is there a way to do this?

 

My goal is to only present the users with the options I want them to fill in rather than trying to validate every possible combination of inputs to make sure there's no unexpected data. Right now if the users change their mind and pick a new option from the menu, any data they entered is still submitted even if it no longer applies.

vRO HTML5 Interface Needs Folders

$
0
0

I have checked out the HTML5 interface for workflow editing and design, and I really like the interface for developing workflows and working on scripts. However, I am having a really hard time navigating my workflows. In the Java client, I have the workflows organized in a folder structure that makes it easy for me to find workflows I'm looking for, and unfortunately this does not translate over to a tag-based structure. I don't have anything against tags, but I find that I can't remember the names of all the tags (which were previously folder names) and so I'm unable to find a workflow if I don't know its name or a tag that it might have on it. It's also not possible to nest tags in a hierarchical structure, which is something I've made extensive use of in the old Orchestrator.

 

Over the years, I've created many smaller utility workflows that are sometimes used in other larger workflows. I don't remember the names of all these workflows, but they were still organized in the folder to which they belonged, but now it seems like they are floating in a sea of workflows when I log in to the HTML5 interface. I may get used to this over time, but folders seem like something that are easy to include and very powerful. I'd love to see them return in the new interface.

vCenter 6.7U2 / VRO 7.6 Orchestrator Client SSO Issue

$
0
0

So, when I try to SSO into the Orchestrator client from the :8281/vco/ page, it successfully redirects me to my vCenter SSO page, after a successful login, I get redirected to :8283/vco-controlcenter/saml/websso/sso with old Blue SSO screen, and an ${Message} and a button with the title ${backToLoginLabel}.

 

When I run a saml trace, I'm getting a http 401 error when trying to post the SAML payload to that same URL (vco-controlcenter/saml/websso/sso).

 

I rebuild my authentication to vCenter, but it didn't seem to have any impact.

 

Any suggestions?

Deploy VM from template in Content Library

$
0
0

Good morning, 

I got a workflow, which deploys a machine from a template on the local data store. 

I would like to deploy directly from a content library (need the replication functionality), but I dont find any native support for this without using REST.. Currently I am using the standard vRO workflows for cloning both Windows and Linux machines. 

What is your expierence of doing such, and do you have any idea about what the future brings in regards to support of content libraries in vRO?

Regards, Kjeld

vRO 8 - Bind variable to workflow input issue

$
0
0

Hi,

 

I have a String variable that I want to bind to the input of a workflow, but when I try to select the variable at the input of the workflow it does not show the variable to select. I've tryed for many workflows that have a String as input variable, and for some workflows I can bind and for othes it does not show. For example, I cannot bind to any autogenerated workflow (autogenerated from a REST operation).

 

Is someone else having this issue?

 

vRO 8.

 

Thanks.

Viewing all 6251 articles
Browse latest View live


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