VMware {code} Community
durdin
Contributor
Contributor

Resource pool tree export

have anyone tried to parse the Resource Pool tree export which you do when disabling DRS in Web Client?

It seems the file produced is some serialized data but I have trouble getting the classes needed to parse it.

java.lang.ClassNotFoundException: com.vmware.vsphere.client.cluster.rp.MorTree, xpsr.3com.vmware.vim.binding.vmodl.ManagedObjectReference

So question is where to get the classes, or if anyone tried to parse this?

Tags (1)
Reply
0 Kudos
1 Reply
durdin
Contributor
Contributor

The first required class is in /usr/lib/vmware-vsphere-client/plugin-packages/vsphere-client-modules/plugins/cluster-service.jar so and the second class is just "standard" com.vmware.vim.binding.vmodl.ManagedObjectReference so I managed to parse the export file after grabing the JAR file from VCSA. Not sure if this is correct approach but it works. FYI the entire export file is serialized MorTree<ManagedObjectReference, RpInfo>.

Reply
0 Kudos