VMware Cloud Community
halr9000
Commander
Commander
Jump to solution

need a favor, output from the Get-VMHostFirmware cmdlet (requires ESXi)

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)

My signature used to be pretty, but then the forum software broked it. vExpert. Microsoft MVP (Windows PowerShell). Author, Podcaster, Speaker. I'm @halr9000
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
Dave_Mishchenko
Immortal
Immortal
Jump to solution

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 Smiley Happy )

View solution in original post

0 Kudos
7 Replies
Dave_Mishchenko
Immortal
Immortal
Jump to solution

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 Smiley Happy )

0 Kudos
halr9000
Commander
Commander
Jump to solution

Thanks, Dave, that'll do the trick!

Author of the upcoming book: Managing VMware Infrastructure with PowerShell

Co-Host, PowerScripting Podcast (http://powerscripting.net)

My signature used to be pretty, but then the forum software broked it. vExpert. Microsoft MVP (Windows PowerShell). Author, Podcaster, Speaker. I'm @halr9000
0 Kudos
halr9000
Commander
Commander
Jump to solution

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)

My signature used to be pretty, but then the forum software broked it. vExpert. Microsoft MVP (Windows PowerShell). Author, Podcaster, Speaker. I'm @halr9000
0 Kudos
Dave_Mishchenko
Immortal
Immortal
Jump to solution

UploadUrl : http://esx10.mishchenko.net/tmp/configBundle.tgz

Host : esx10.mishchenko.net

halr9000
Commander
Commander
Jump to solution

I'm loading you up with easy points tonight. Smiley Happy

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. Smiley Happy

Author of the upcoming book: Managing VMware Infrastructure with PowerShell

Co-Host, PowerScripting Podcast (http://powerscripting.net)

My signature used to be pretty, but then the forum software broked it. vExpert. Microsoft MVP (Windows PowerShell). Author, Podcaster, Speaker. I'm @halr9000
0 Kudos
Dave_Mishchenko
Immortal
Immortal
Jump to solution

Thanks - something for my resume. Looking forward to your book.

0 Kudos
halr9000
Commander
Commander
Jump to solution

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)

My signature used to be pretty, but then the forum software broked it. vExpert. Microsoft MVP (Windows PowerShell). Author, Podcaster, Speaker. I'm @halr9000
0 Kudos