• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

virtuallyGhetto

  • About
  • Privacy
  • VMware Cloud
  • Home Lab
  • Nested Virtualization
  • Automation
    • VMware Kickstart
    • VMware API/SDK/CLI
    • VMware vMA/VIMA
    • VMware OVF / OVFTOOL
  • Apple Mac
  • VCSA
  • VSAN
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 2 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
Share this...
  • Twitter
  • Facebook
  • Linkedin
  • Reddit
  • Pinterest

Filed Under: Apple, ESXi, vSphere Tagged With: apple, esxi, imac, mac mini, mac pro, smc

Reader Interactions

Comments

  1. Carib Mendez says

    11/01/2018 at 12:05 pm

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

    Reply
  2. Oran Turner says

    11/09/2018 at 6:29 am

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

    Reply

Thanks for the comment! Cancel reply

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

Primary Sidebar

Author

William Lam is a Senior Staff Solution Architect working in the VMware Cloud team within the Cloud Services Business Unit (CSBU) at VMware. He focuses on Automation, Integration and Operation for the VMware Cloud Software Defined Datacenters (SDDC)

  • Email
  • GitHub
  • LinkedIn
  • RSS
  • Twitter
  • Vimeo

Sponsors

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