WilliamLam.com

  • About
    • About
    • Privacy
  • VMware Cloud Foundation
  • VKS
  • Homelab
    • Resources
    • Nested Virtualization
  • VMware Nostalgia
  • Apple
You are here: Home / Apple / Retrieving Apple hardware details (Model, Serial, Board & EFI Boot ROM & SMC Version) from ESXi

Retrieving Apple hardware details (Model, Serial, Board & EFI Boot ROM & SMC Version) from ESXi

10.31.2018 by William Lam // 3 Comments

For customers who run ESXi on Apple Hardware, retrieving the Apple hardware specific information such as the Board ID, EFI Boot Room and SMC Version for troubleshooting or auditing purposes can be challenging. Historically, this information is only available when running the hardware with an Apple MacOS operating system and customers would have to either boot the system into the MacOS Recovery Mode to run the system profiler tool from the command-line or install a full blown MacOS operating system to retrieve the necessary information as outlined in this Apple KB.

For some customers, this may not even be an option as Apple hardware does not provide any remote management capabilities and customers must physically be in front of the system to perform this process and imagine needing to do this across a fleet of Apple servers. 

While working on a recent case with a customer, I was curious if the Apple specific information could be retrieved from within ESXi and remove the need to boot into MacOS? I reached out to one of the Engineers, Darius Davis, who I work with on a frequent basis when it comes to MacOS-related topics to see if this was possible.

He was able to quickly put together a Python script called esxi-show-mac-hardware-info.py which runs within the ESXi Shell to extract the Model, Serial ID, Board ID, EFI Boot ROM & SMC Version from any Apple systems running ESXi (including Mac Mini and Mac Pro). To use the script, simply download and upload it to your ESXi host (you can store it on a shared datastore so it can be accessed by multiple ESXi hosts). Once uploaded, simply run the following command:

python esxi-show-mac-hardware-info.py


Note: If you need to update the EFI Boot ROM and SMC version, you will still need to boot into the latest Apple MacOS operating system and perform the update there.

For those interested, a subset of these Apple hardware properties can also be retrieved programmatically using the vSphere API, specifically the Model, Serial Number and EFI Boot ROM Version. Below are quick PowerCLI snippets demonstrating the specific vSphere API properties:

(Get-VMHost -Name 192.168.30.11).ExtensionData.Hardware.SystemInfo.Model

(Get-VMHost -Name 192.168.30.11).ExtensionData.Hardware.SystemInfo.OtherIdentifyingInfo | select IdentifierValue,IdentifierType -ExpandProperty IdentifierType

(Get-VMHost -Name 192.168.30.11).ExtensionData.Hardware.BiosInfo.BiosVersion

More from my site

  • Aquantia/Marvell AQtion (Atlantic) driver now inbox in ESXi 7.0 Update 2
  • Want to run ESXi on an Apple MacBook Pro, MacBook Air & iMac? #YesYouCan!
  • How to build custom ESXi ISO for Apple Mac Mini?
  • Apple NVMe driver for ESXi using new Community NVMe Driver for ESXi Fling 
  • Virtually Speaking Podcast: MacOS Virtualization and MacStadium

Categories // Apple, ESXi, vSphere Tags // apple, ESXi, imac, mac mini, mac pro, smc

Comments

  1. *protectedCarib Mendez says

    11/01/2018 at 12:05 pm

    Wow…thanks…was looking for this info the other day!

    Reply
  2. *protectedOran Turner says

    11/09/2018 at 6:29 am

    Can this be modified to obtain the hardware UUID as well?

    Reply
  3. *protectedsimplijm says

    09/08/2021 at 11:14 am

    I tried running this on a MacPro7,1 just to see what info would be returned. I got the model, serial number, board ID and the boot ROM version but it failed trying to get the SMC version. I checked the files in /vmfs/devices/char/mem/ and the applesmc file is 0 KB.

    Any chance this script can be updated to look in the right location for the SMC version?

    Reply

Thanks for the comment!Cancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Search

Thank Author

Author

William is Distinguished Platform Engineering Architect in the VMware Cloud Foundation (VCF) Division at Broadcom. His primary focus is helping customers and partners build, run and operate a modern Private Cloud using the VMware Cloud Foundation (VCF) platform.

Connect

  • Bluesky
  • Email
  • GitHub
  • LinkedIn
  • Mastodon
  • Reddit
  • RSS
  • Twitter
  • Vimeo

Recent

  • VMware Flings is now available in Free Downloads of Broadcom Support Portal (BSP) 05/19/2025
  • VMUG Connect 2025 - Minimal VMware Cloud Foundation (VCF) 5.x in a Box  05/15/2025
  • Programmatically accessing the Broadcom Compatibility Guide (BCG) 05/06/2025
  • Quick Tip - Validating Broadcom Download Token  05/01/2025
  • Supported chipsets for the USB Network Native Driver for ESXi Fling 04/23/2025

Advertisment

Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy

Copyright WilliamLam.com © 2025

 

Loading Comments...