• Status: Solved
  • Priority: High
  • Security: Public
  • Views: 43
  • Last Modified:

Script to obtain IPs of all vms on a host

Does anyone know a script that can collect IP information on all servers on a host, giving us GW, subnet masks and IPs..

Technical Information
Technical Information
  • 2
1 Solution
Bijesh SCommented:
Please try this from VMware Power CLI.

Get-VM |Select Name,VMHost, @{N="IP Address";E={@($_.guest.IPAddress -join '|')}} |Export-Csv -NoTypeInformation <userprofile>\Desktop\machine_ip.csv
Technical InformationAuthor Commented:
Will this give GW info
Ajay ChananaMCSE-2003/08|RHCSA| VCP5/6 |vExpert2018Commented:
Better solution try RVtools. you will get what you are looking for.

Ajay ChananaMCSE-2003/08|RHCSA| VCP5/6 |vExpert2018Commented:
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Improve Your Query Performance Tuning

In this FREE six-day email course, you'll learn from Janis Griffin, Database Performance Evangelist. She'll teach 12 steps that you can use to optimize your queries as much as possible and see measurable results in your work. Get started today!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now