Run Script in guest with vRO login credentials
var cred = Server.getCredential(); vmPassword = VcPlugin.createCustomizationPasswordFromCredentials(cred, true).value; vmUsername = cred.username;
var cred = Server.getCredential(); vmPassword = VcPlugin.createCustomizationPasswordFromCredentials(cred, true).value; vmUsername = cred.username;
Storage Class Create a new Instance
1 |
var storage = System.getModule("com.vmware.pso.classes").getStorageClass(); |
Methods addSCSIAdapter Creates a device config spec to add a SCSI adapter to a Virtual Machine use: storage.addSCSIAdapter(type, counter) String type allowed values SAS, LSI, PARA Number counter return Number counter example:
1 2 3 |
var storage = System.getModule("com.vmware.pso.classes").getStorageClass(); var ii = 0; ii = storage.addSCSIAdapter("LSI", ii); |
addDisk Creates a device config spec to add a Disk to a Virtual Machine use:…
com.basf com.bayer.bs.package-2014-05-15 com.checkpoint.mgmt.api com.daimler.als-20160303-all com.daimler.als-20160628 com.daimler.als.config com.daimler.als.optimizations com.daimler.als2.pso.package_2016-05-18 com.daimler.als2.pso.sandbox com.daimler.als2.pso.sandbox.package_2016-05-18 com.dhl.cloning.package_2014_03_24 com.dhl.cloning.package_2014_07_07 com.dhl.itscloud.DEV com.dhl.itscloud.QA com.helvetia.continuity2013 com.ibm_2015-05-28 com.ibm_2015-05-29_01 com.ibm_2015-05-29 com.ibm_2015-07-09 com.ibm.package_2015_06_15 com.ibm.package_2015-07-10 c om.ibm.package_20150710_1 com.ibm.sceplus.build.0.4 com.ibm.sceplus.build.0.16 com.ITSV.ValueListUpdate .lucent.vitalqip com.netapp.oncommand.wfa.core.v3 com.porsche.serverautomatisierung com.porsche.serverautomatisierung.package_002 com.vmware.acmset.promotevmtobp com.vmware.coe.library.vcenter.affinity com.vmware.coe.library.vcenter.clone com.vmware.coe.snapdispatcher com.vmware.coe.vcd51.vapp.customdeploy com.vmware.coe.vromaster2016 com.vmware.coe.workflowCatalog com.vmware.cse.ebs.examplesdz com.vmware.dispatcher com.vmware.eso.vra.documentation com.vmware.hf com.vmware.hferch_2014-03-12_1 com.vmware.hferch_2014-03-12 com.vmware.herch_2014-03-13_1 com.vmware.hferch_2014-03-13 com.vmware.hferch_2014-03-14 com.vmware.hferch_2014-03-18 com.vmware.hferch_2014-03-23 com.vmware.hferch Com.vmware.library.snmp.vcops com.vmware.orchestrator.operations com.vmware.pscoe.db.devbox-vra-0.0.1 com.vmware.pscoe.library.fs-1.0.0 com.vmware.pscoe.library.guestops-1.0.4 com.vmware.pscoe.library.logging-1.0.0…
Login to the vRA Appliance via Putty Run the following commands su – postgres cd /opt/vmware/vpostgres/current/bin ./psql \c vcac – connect to the vcac database Get the Script Module ID
1 |
select * from vmo_scriptmodulecategory where name = 'Name of the module'; |
e.g.
1 2 3 4 5 |
select * from vmo_scriptmodulecategory where name = 'com.vmware.cse.clm.utils'; id | name | description ----------------------------------+--------------------------+------------- ff8080815e3266b8015e32d2beab0283 | com.vmware.cse.clm.utils | (1 row) |
Get Action by name and scriptmodulcategoryid
1 |
select * from vmo_scriptmodule where name = 'name of the action' and scriptmoduleCategoryid = 'id of the scriptmodulecategory'; |
e.g
1 2 3 4 |
vcac=# select * from vmo_scriptmodule where name = 'writeToFileOverSSH' and id = 'ff8080815e3266b8015e32d2beab0283'; id | scriptmodulecategoryid | name | xmlparameter | returntype | scriptmode | objversion | description | allowedoperations | objlocked | actionpurpose ----+------------------------+------+--------------+------------+------------+------------+-------------+-------------------+-----------+--------------- (0 rows) |
Update Action allowed operations to edit the operation…
Document Id 2147109 Purpose This article provides steps for increasing the memory allocated to the vRealize Orchestrator server instance located within the vRealize Automation appliance. By default, the embedded vRealize Orchestrator server is configured to use 3GB memory approximately. Impact / Risks When modifying this setting, ensure to increase your overall appliance memory if needed…
Get events from Loginsight through vRO
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
startDate = Date.parse(startDate); endDate = Date.parse(endDate); System.log(startDate) System.log(endDate) // Get Token for LogInsight API Access var body ={ "username": username, "password": password, "provider": provider } var request = restHost.createRequest("POST","/api/v1/sessions", JSON.stringify(body)); request.setHeader("Content-Type", "application/json"); request.setHeader("Accept", "application/json"); var response = request.execute(); var json = JSON.parse(response.contentAsString); var token = json.sessionId; //var request = restHost.createRequest("GET","/api/v1/events/timestamp/%3E%3D" + startDate + "/timestamp/%3C%3D" + endDate + "/text/CONTAINS%20com.vmware.vc.ha.VmRestartedByHAEvent/com.vmware.vsphere:vmw_vm_vmx_name/EXISTS/com.vmware.vsphere:vmw_opid/EXISTS?content-pack-fields=com.vmware.vsphere&view=SIMPLE" ); // Get VMs restarted by HA Event var request = restHost.createRequest("GET","/api/v1/events/timestamp/%3E%3D" + startDate + "/timestamp/%3C%3D" + endDate + "/vc_details/CONTAINS%20id=com.vmware.vc.ha.vmrestartedbyhaevent?content-pack-fields=com.vmware.vsphere&view=SIMPLE" ); request.setHeader("Content-Type", "application/json"); request.setHeader("Accept", "application/json"); request.setHeader("Authorization", "Bearer " + token); var res = request.execute(); System.debug(res.statusCode) System.debug(JSON.stringify(JSON.parse(res.contentAsString),null,4)) response = res.contentAsString; |
package: com.vmware.loginsight Create new Alert in Log Insight Create an alert in LogInsight which will be send to vROPs. In this case a alert will be generated in case of a new Folder is created in the vCenter Server Define a Notification Event in vROPs Navigate…
Start vco-configurator during vRA or vRO startup Start vRO Configuration Service and check status service vco-configurator start service vco-configurator status Start during vRA or vRO automatically chkconfig vco-configurator on Disable automatic start of vRO Configurator chkconfig vco-configurator off WinRM HTTP Config steps Procedure 1 Run the following command to set the default WinRM…
vRA Services which can be used via vRA API Service Name used to createRestClient in vRO advanced-designer-service com.vmware.csp.core.designer.service.api approval-service com.vmware.csp.core.cafe.approvals.api authentication com.vmware.csp.cafe.authentication.api authorization com.vmware.csp.cafe.authorization.api branding-service com.vmware.csp.core.branding.service.api catalog-service com.vmware.csp.core.cafe.catalog.api component-registry com.vmware.csp.core.cafe.componentregistry.api composition-service com.vmware.csp.component.cafe.composition.api console-proxy-service com.vmware.csp.component.console.proxy.service.api container-service com.vmware.csp.component.cafe.container.api content-management com.vmware.csp.core.content.service.api endpoint-configuration-service com.vmware.csp.core.endpoint.configuration.api event-broker-service com.vmware.csp.cafe.event.broker.api eventlog-service com.vmware.csp.cafe.eventlog.api fabric-service com.vmware.csp.fabric.cafe.fabric.api forms-service com.vmware.csp.core.cafe.forms.api iaas-proxy-provider com.vmware.csp.component.iaas.proxy.provider.api iaas-service com.vmware.csp.iaas.blueprint.service.api identity com.vmware.csp.core.cafe.identity.api ipam-service…
This article describes, step-by-step, how to import a vRO package with the vRO Client Step Screenshot Log in to the vRO Client Change from Run to Design in the Drop-Box on the Top of the Windows and select the package icon Select the import icon Browse to the Export Import package and select it Click…
With vRO 7.2 it is possible to use Swagger to test the execution of a vRealize Orchestrator Workflow via REST Call. For this you need to enable basic authentication over sso.This happens by adding the following property to vmo.properties configuration file via the control center. Open the vRO Homepage: https://<vRO Server>:8281/vco/ Open the link Orchestrator…