PowerCLI

 View Only
  • 1.  Unable Get BIOS information and firmware of ESXi

    Posted Feb 11, 2022 02:22 PM

    Hello,

    I build a script concerning specific informations of ESXi servers. I have difficuly to extract information about BIOS Vendor, major and  minor Release and I don't know how to extract firmware information. I need some help concerning these points.

    Connect-VIServer -Server $VIServer

    Get-cluster -name $clust | Get-VMHost | Select name,

    @{N="BIOS Vendor";E={$_.Hardware.BiosInfo.BiosVendor}},
    @{N="BIOS Version";E={($_ | Get-View).Hardware.BiosInfo.BiosVersion}},
    @{N="BIOS Release Date";E={$_.ExtensionData.Hardware.BiosInfo.ReleaseDate}},
    @{N="BIOS Major Release";E={$_.Hardware.BiosInfo.MajorRelease}},
    @{N="BIOS Minor Realease";E={$_.Hardware.BiosInfo.MinorRelease}},

    regards,

    David



  • 2.  RE: Unable Get BIOS information and firmware of ESXi

    Posted Feb 11, 2022 03:09 PM

    That information is not always available, it depends on the Vendor and the HW type.
    vSphere assumes that info is available in a certain location and via a specific method.
    If the HW does not comply, that info can not be retrieved.



  • 3.  RE: Unable Get BIOS information and firmware of ESXi

    Posted Feb 11, 2022 03:16 PM

    Hello LucD,

    Thanks for this information.

    There is any specific command that I can add on my script to extract ESXi firmware information?

    regards,

    David



  • 4.  RE: Unable Get BIOS information and firmware of ESXi

    Posted Feb 11, 2022 03:55 PM

    You can ssh into the ESXi node and do something like smbiosDump.
    But that most of the time reflects what you already saw via the Hardware property.

    Another option is to use the CIM interface.
    There's a handy function in ESXi get CIM via vCenter PowerCLI

    But again this probably shows the same.

    The only option I know that works, and depends again on the HW and Vendor, is to use something like iLO for HP HW for example.
    Other Vendors have similar management interfaces t their HW.