Hello Guys,
since a few days I'm palying around with the vSphere™ SDK for Perl API V5.0.
hostinfo.pl and vminfo.pl works fine as well as my own developed scripts.
But I cannot find the relation between a HOST and a VM or in other words, I need to know on which host my VMs are resides.
Can you give me a hint or a solution?
At the end I would like to have a structured report like this:
VC1 (uuid, name, type, ......)
|
+ DataCenter1 (uuid, name, .........)
|
+ Host1 (uuid, name, CPUs, MEM, ......)
|
+ VM1.1 (uuid, name, CPUs, MEM, ......)
+ VM1.2 (uuid, name, CPUs, MEM, ......)
|
+ Host2 (uuid, name, CPUs, MEM, ......)
|
+ VM2.1 (uuid, name, CPUs, MEM, ......)
+ VM2.2 (uuid, name, CPUs, MEM, ......)
|
+ DataCenter1 (uuid, name, .........)
a.s.o.
I know, this view is available with VMware VSphere Client GUI but I need it as xml or csv.
Any tips or ideas?
Many thanks in advance!