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
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.
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
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
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
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.
Thank you very much Lamw..I will test and let you know...Jithin
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.
Thanks very much Lamw. Now I'm able to find the VM deatils using your script.
thanks again - Jithin