VMware {code} Community
jithinraj
Contributor
Contributor
Jump to solution

Looking for perl script to find VM details

Hi All,

I’m in search of a perl  script (example – vminfo.pl) to find VM details including the ESX server which VM running. If I have script I can use VIPerlToolkit utilities to `run the script from any of the Linux machines…can anyone please help me with script

Regards

Jithin

Reply
0 Kudos
1 Solution

Accepted Solutions
lamw
Community Manager
Community Manager
Jump to solution

Take a look at the whichClusterIsMyVmIn.pl (http://communities.vmware.com/docs/DOC-10439) script in the repo which provides both the ESX(i) host the VM is hosted on as well as the vCenter cluster.

View solution in original post

Reply
0 Kudos
7 Replies
lamw
Community Manager
Community Manager
Jump to solution

Not sure what type of VM details you're looking for, but have a look at this script - http://communities.vmware.com/docs/DOC-9842

It can be customized based on what you're looking for and there is a sample report to give you an idea. Also check out this script repository which also contains various vSphere SDK for Perl sample scripts - http://communities.vmware.com/docs/DOC-9852

Reply
0 Kudos
jithinraj
Contributor
Contributor
Jump to solution

Thanks very much lamw

I will check the provided links and I'm looking for perl script to find VM to ESX mapping. If I give VM name script should provide esx host name..is it possible ..I'm big zero in scripting...

Thanks again

Reply
0 Kudos
jithinraj
Contributor
Contributor
Jump to solution

Hi lamw, I have gone many your scripts but I'm looking for script to find VM deatils include ESX host which VM is running? I got PowerCLI script but I want perl script...could you please help me on this.

Jithin

Reply
0 Kudos
lamw
Community Manager
Community Manager
Jump to solution

Take a look at the whichClusterIsMyVmIn.pl (http://communities.vmware.com/docs/DOC-10439) script in the repo which provides both the ESX(i) host the VM is hosted on as well as the vCenter cluster.

Reply
0 Kudos
jithinraj
Contributor
Contributor
Jump to solution

Thank you very much Lamw..I will test and let you know...Jithin

Reply
0 Kudos
TomHowarth
Leadership
Leadership
Jump to solution

I am moving this post to a more relvant section of the forum.

Please remember to award LamW points if you found his answers useful.

Tom Howarth VCP / VCAP / vExpert
VMware Communities User Moderator
Blog: http://www.planetvm.net
Contributing author on VMware vSphere and Virtual Infrastructure Security: Securing ESX and the Virtual Environment
Contributing author on VCP VMware Certified Professional on VSphere 4 Study Guide: Exam VCP-410
Reply
0 Kudos
jithinraj
Contributor
Contributor
Jump to solution

Thanks very much Lamw. Now I'm able to find the VM deatils using your script.

thanks again - Jithin

Reply
0 Kudos