• 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..

Thanks
0
Technical Information
Asked:
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
0
 
Technical InformationAuthor Commented:
Will this give GW info
0
 
Ajay ChananaMCSE-2003/08|RHCSA| VCP5/6 |vExpert2018Commented:
Better solution try RVtools. you will get what you are looking for.

https://www.robware.net/rvtools/download/
1
 
Ajay ChananaMCSE-2003/08|RHCSA| VCP5/6 |vExpert2018Commented:
VM-IPandGateway
0
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