VMware Cloud Community
MrGod1135
Contributor
Contributor

How can I get vmnic subnet ip address from command line

My ESXi version is 6.5, and it is really easy to see vmnic subnet ip range from web page.

But is there any solution that I can get these information in ssh command line?

屏幕截图 2022-11-15 164353.png

Snipaste_2022-11-15_16-46-58.png

0 Kudos
3 Replies
scott28tt
VMware Employee
VMware Employee

This might help: https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/How-to-get-subnets-info-assigned-to-ph...

 


-------------------------------------------------------------------------------------------------------------------------------------------------------------

Although I am a VMware employee I contribute to VMware Communities voluntarily (ie. not in any official capacity)
VMware Training & Certification blog
0 Kudos
MrGod1135
Contributor
Contributor

thanks for reply!

I seen the solution you post, but I have no idea of how to run this script. Shall I run it on vm, or on my own computer. And what command should I use QAQ

0 Kudos
scott28tt
VMware Employee
VMware Employee

You can run PowerCLI on any system which supports PowerShell as far as I know, I've run it on Windows in the past.

https://docs.vmware.com/en/VMware-vSphere/7.0/com.vmware.esxi.install.doc/GUID-F02D0C2D-B226-4908-9E...

 


-------------------------------------------------------------------------------------------------------------------------------------------------------------

Although I am a VMware employee I contribute to VMware Communities voluntarily (ie. not in any official capacity)
VMware Training & Certification blog
0 Kudos