Hi,
I'd like to find out what my ESX host's IP is from within vMA but i don't see a esxcfg-vswif command in vMA. Is there another way when connected to an ESX host via vMA to get the IP of vswif0?
Thanks in advance
You can get this using the vSphere APIs, but it's not available in any canned VMware script because you should not be configuring the vswif interface remotely, especially if you only have one.
Though if you want to query it, here is a script I just wrote that gets you what you need:
=========================================================================
William Lam
VMware vExpert 2009
VMware ESX/ESXi scripts and resources at:
VMware Code Central - Scripts/Sample code for Developers and Administrators
If you find this information useful, please award points for "correct" or "helpful".
Hello,
Use the Perl SDK to query the HostSystem entities. An example of this is within the vGhetto repository on sourceforge.net
Best regards,
Edward L. Haletky VMware Communities User Moderator, VMware vExpert 2009
Now Available: 'VMware vSphere(TM) and Virtual Infrastructure Security'[/url]
Also available 'VMWare ESX Server in the Enterprise'[/url]
Blogging: The Virtualization Practice[/url]|Blue Gears[/url]|TechTarget[/url]|Network World[/url]
Podcast: Virtualization Security Round Table Podcast[/url]|Twitter: Texiwll[/url]
Don't suppose you know which script has that sample in it? :smileygrin:
You can get this using the vSphere APIs, but it's not available in any canned VMware script because you should not be configuring the vswif interface remotely, especially if you only have one.
Though if you want to query it, here is a script I just wrote that gets you what you need:
=========================================================================
William Lam
VMware vExpert 2009
VMware ESX/ESXi scripts and resources at:
VMware Code Central - Scripts/Sample code for Developers and Administrators
If you find this information useful, please award points for "correct" or "helpful".