Quantcast
Channel: VMware Communities : Discussion List - vSphere SDK for Perl
Viewing all articles
Browse latest Browse all 1577

VM on HOST?

$
0
0

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!


Viewing all articles
Browse latest Browse all 1577

Trending Articles



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