WilliamLam.com

  • About
    • About
    • Privacy
  • VMware Cloud
  • Tanzu
    • Application Modernization
    • Tanzu services
    • Tanzu Community Edition
    • Tanzu Kubernetes Grid
    • vSphere with Tanzu
  • Home Lab
  • Nested Virtualization
  • 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. 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
  3. simplijm 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

Author

William Lam is a Senior Staff Solution Architect working in the VMware Cloud team within the Cloud Infrastructure Business Group (CIBG) at VMware. He focuses on Cloud Native technologies, Automation, Integration and Operation for the VMware Cloud based Software Defined Datacenters (SDDC)

Connect

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

Recent

  • How to disable the Efficiency Cores (E-cores) on an Intel NUC? 03/24/2023
  • Changing the default HTTP(s) Reverse Proxy Ports on ESXi 8.0 03/22/2023
  • NFS Multi-Connections in vSphere 8.0 Update 1 03/20/2023
  • Quick Tip - How to download ESXi ISO image for all releases including patch updates? 03/15/2023
  • SSD with multiple NVMe namespaces for VMware Homelab 03/14/2023

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 © 2023

 

Loading Comments...