If anyone out there has an ESXi box handy, could you do me the favor of running these commands and letting me see the output? This cmdlet only works against the host appliance, not the full meal deal. I just grabbed the ISO image but I don't yet have a box to install it on.
$foo = Get-VMHost | Get-VMHostFirmware
$foo
$foo | Get-Member
Thanks a bunch in advance!
Author of the upcoming book: Managing VMware Infrastructure with PowerShell
Co-Host, PowerScripting Podcast (http://powerscripting.net)
This in on ESXi 3.5 Update 2 with the release of the VI Toolkit. ESXi will run in a Workstation VM if you have it (with 6.0 you can just run ESXi / with 6.5 you can run ESXi and then start a nested VM on ESXi).
PS C:\Program Files\VMware\Infrastructure\VIToolkitForWindows> $foo = Get-VMHost | Get-VMHostFirmware PS C:\Program Files\VMware\Infrastructure\VIToolkitForWindows> $foo UploadUrl Host --------- ---- http://esx10.mishchenko.net/tmp/conf. esx10.mishchenko.net PS C:\Program Files\VMware\Infrastructure\VIToolkitForWindows> $foo | Get-Member TypeName: VMware.VimAutomation.Client20.Host.HostFirmwareImpl Name MemberType Definition ---- ---------- ---------- Equals Method System.Boolean Equals(Object obj) GetHashCode Method System.Int32 GetHashCode() GetType Method System.Type GetType() ToString Method System.String ToString() Host Property VMware.VimAutomation.Types.VMHost Host {get;} UploadUrl Property System.String UploadUrl {get;}
Message was edited by: halr9000 (fixed formatting so I could read it )
This in on ESXi 3.5 Update 2 with the release of the VI Toolkit. ESXi will run in a Workstation VM if you have it (with 6.0 you can just run ESXi / with 6.5 you can run ESXi and then start a nested VM on ESXi).
PS C:\Program Files\VMware\Infrastructure\VIToolkitForWindows> $foo = Get-VMHost | Get-VMHostFirmware PS C:\Program Files\VMware\Infrastructure\VIToolkitForWindows> $foo UploadUrl Host --------- ---- http://esx10.mishchenko.net/tmp/conf. esx10.mishchenko.net PS C:\Program Files\VMware\Infrastructure\VIToolkitForWindows> $foo | Get-Member TypeName: VMware.VimAutomation.Client20.Host.HostFirmwareImpl Name MemberType Definition ---- ---------- ---------- Equals Method System.Boolean Equals(Object obj) GetHashCode Method System.Int32 GetHashCode() GetType Method System.Type GetType() ToString Method System.String ToString() Host Property VMware.VimAutomation.Types.VMHost Host {get;} UploadUrl Property System.String UploadUrl {get;}
Message was edited by: halr9000 (fixed formatting so I could read it )
Thanks, Dave, that'll do the trick!
Author of the upcoming book: Managing VMware Infrastructure with PowerShell
Co-Host, PowerScripting Podcast (http://powerscripting.net)
One more thing, so I can see what the full URL looks like, could you pipe $foo to format-list?
Author of the upcoming book: Managing VMware Infrastructure with PowerShell
Co-Host, PowerScripting Podcast (http://powerscripting.net)
UploadUrl : http://esx10.mishchenko.net/tmp/configBundle.tgz
Host : esx10.mishchenko.net
I'm loading you up with easy points tonight.
Oh BTW, in case anyone ever reads my book and you see reference to the hostname "esxi.halr9000.com"--that's really Dave's box.
Author of the upcoming book: Managing VMware Infrastructure with PowerShell
Co-Host, PowerScripting Podcast (http://powerscripting.net)
Thanks - something for my resume. Looking forward to your book.
Hmm, what about get-vmhostmodule? I can't get this one to function against ESX either.
76# $esx = cvi "192.168.0.51", "192.168.0.55" 77# Get-VMHostModule -Server $esx -Name tcpip Get-VMHostModule : 7/29/2008 10:36:57 AM Get-VMHostModule 52e2bda1-303e-2b73-2f 25-f1c0a46d4645 Object not found At line:1 char:17 + Get-VMHostModule <<<< -Server $esx -Name tcpip Get-VMHostModule : 7/29/2008 10:36:57 AM Get-VMHostModule 52d86a60-9f74-0e8f-33 2d-b92560a5c0b8 Object not found At line:1 char:17 + Get-VMHostModule <<<< -Server $esx -Name tcpip
Author of the upcoming book: Managing VMware Infrastructure with PowerShell
Co-Host, PowerScripting Podcast (http://powerscripting.net)