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

Get Memory size of a VM ( vCloud:VM)

$
0
0

I am trying to execute the below script but I am getting error:-

var memory = VM.getMemory();

System.log(memory);

var sizeOfMemory = System.getModule("com.vmware.library.vCloud.operation").getMemorySizeVirtualMemory(memory);

System.log("Size of memory " + sizeOfMemory);

var newMemSize = sizeOfMemory + 4096;

System.log(newMemSize);

 

Error:-

TypeError: Cannot find function getMemorySize in object DynamicWrapper (Instance) : [VclVirtualMemory]-[class com.vmware.vmo.plugin.vcloud.model.VirtualMemory] -- VALUE : com.vmware.vmo.plugin.vcloud.model.VirtualMemory@2fd5fc11. (Dynamic Script Module name : getMemorySizeVirtualMemory#1)


Viewing all articles
Browse latest Browse all 6251

Trending Articles



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