var bg = new Array(); //Get the tenant and Business Group var tenant = System.getContext().getParameter( "__asd_tenantRef" ); var subtenantRef = System.getContext().getParameter( "__asd_subtenantRef" ); …
var configurationElementPath = "<Folder>/"+tenant; var configurationElementName = "element"; var attributeName = "RepoRestHost"; var category = Server.getConfigurationElementCategoryWithPath(c…
var vcacVm = Server.findAllForType( "vCAC:VirtualMachine" ).filter( function ( v ) { return v.vmUniqueID == vm.config.instanceUuid })[ 0 ]; if (!vcacVm) { throw new Error ( "VM not managed by vRA" …
Input: BG: string type // Business group name var tenant = host.tenant; var BG = bg.toUpperCase(); var hostReservation =[]; var resArr =Server.findAllForType( "vCAC:Reservation" ); for ( var k = 0 ;k < re…
var port = 22; // any port number var target = "localhost"; // string Hostname or IP //checking the connectivity applying try catch and finally try { // testing for port connectivity on target host …
Inputs:- folder String type (name of the ResourceElementCategory ) templateFile String type (name of the resource element) vmName String type (name of the VM) (or the content needs to be replaced with) //Get all res…