VMware Cloud Community
amitsinha
Contributor
Contributor

How to find host info like host ip address from within guest os?

Hi,

Is it possible to find out the information about physical host (e.g. IP address) from within the guest OS, e.g. liunx?

I am looking some script/command that I could run in the linux guest OS to get this info.

Thanks,

With best regards,

-amit-

0 Kudos
3 Replies
Troy_Clavell
Immortal
Immortal

the guest has no idea of the underlying hypervisor (hardware). So, getting this information from the guest, I will not say impossible, but not likely to happen.

0 Kudos
amitsinha
Contributor
Contributor

I have seen that this kind of information is visible in vCenter, so would it be possible to extract it through some vCenter API call?

0 Kudos
AndreTheGiant
Immortal
Immortal

Yes, you can... But you need to talk with vCenter with RCLI or PowerCLI.

Andre

Andrew | http://about.me/amauro | http://vinfrastructure.it/ | @Andrea_Mauro
0 Kudos