Quantcast
Channel: VMware Communities : Discussion List - All Communities
Viewing all articles
Browse latest Browse all 193198

Script to retrieve vm info from esxi

$
0
0

Hi,

 

im trying to create a script, which would get basic (IP, MAC, Hostname) info from each vm running on each esxi. I need to run it in Linux. Since im new to this im not sure if i did all the steps correctly..:

 

I downloaded/installed:

VMware-vSphere-Perl-SDK-5.1.0-780721.x86_64.tar

 

this way i can execute command to get at least simple info:

esxcli --server x.x.x.x --username user --password passwd --formatter=csv network vm list >>/tmp/rrr.csv

however, this doesnt run on older esx versions...

 

Please let me know - correct me how to proceed with the script-commands

 

Thx


Viewing all articles
Browse latest Browse all 193198

Trending Articles



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