Hi,
I have written a workflow to retrieve QuickStats for virtual machines it works fine for all vCenter virtual machines except virtual machine’s those are contains in the vAPps(virtual Appliance).
Script for my workflow is herein
var resContentAsString = “”;
resContentAsString='<?xml version="1.0" encoding="UTF-8"?>';
resContentAsString='<virtualmachinesquickstats>';
resContentAsString=’<title> VirtualMachines Quickstats</title>';
resContentAsString='<vm name=\"'+virtualMc.name+'\">';
resContentAsString='<balloonedMemory value=\"'+virtualMc.summary.quickStats.balloonedMemory+'\" />';
resContentAsString='<compressedMemory value=\"'+virtualMc.summary.quickStats.compressedMemory+'\" />';
resContentAsString='<consumedOverheadMemory value=\"'+virtualMc.summary.quickStats.consumedOverheadMemory+'\" />';
resContentAsString='<distributedCpuEntitlement value=\"'+virtualMc.summary.quickStats.distributedCpuEntitlement+'\" />';
resContentAsString='<distributedMemoryEntitlement value=\"'+virtualMc.summary.quickStats.distributedMemoryEntitlement+'\" />';
resContentAsString='<guestMemoryUsage value=\"'+virtualMc.summary.quickStats.guestMemoryUsage+'\" />';
resContentAsString='<hostMemoryUsage value=\"'+virtualMc.summary.quickStats.hostMemoryUsage+'\" />';
resContentAsString='<overallCpuDemand value=\"'+virtualMc.summary.quickStats.overallCpuDemand+'\" />';
resContentAsString='<overallCpuUsage value=\"'+virtualMc.summary.quickStats.overallCpuUsage+'\" />';
resContentAsString='<privateMemory value=\"'+virtualMc.summary.quickStats.privateMemory+'\" />';
resContentAsString='<sharedMemory value=\"'+virtualMc.summary.quickStats.sharedMemory+'\" />';
resContentAsString='<ssdSwappedMemory value=\"'+virtualMc.summary.quickStats.ssdSwappedMemory+'\" />';
resContentAsString='<staticCpuEntitlement value=\"'+virtualMc.summary.quickStats.staticCpuEntitlement+'\" />';
resContentAsString='<staticMemoryEntitlement value=\"'+virtualMc.summary.quickStats.staticMemoryEntitlement+'\" />';
resContentAsString='<swappedMemory value=\"'+virtualMc.summary.quickStats.swappedMemory+'\" />';
resContentAsString='<uptimeSeconds value=\"'+virtualMc.summary.quickStats.uptimeSeconds+'\" />';
resContentAsString='</vm>';
resContentAsString = '</virtualmachinesquickstats>';
System.log(resContentAsString);
Please lets me know whats wrong in my workflow.
--AVR