Mac Part Number or associated Model Name [ex: MacBook Pro (15-inch, 2019)]via command line

Since some model identifiers like MacBookPro15,1 and MacBookPro15,2 span over 2 actual model names, is there any way to pull the actual Part Number (MR932xx/A) of a computer via the terminal? I do not want to use serial lookup, to find the exact linked model, such as MacBook Pro (15-inch, 2019) vs MacBook Pro (15-inch, 2018). I would like to use a table of part numbers to model names, so this will work offline. Serial number lookup would only work if the computer is online.


I have not been able to find a post for this. Based upon my findings, people say it is not possible, but I am sure there has to be a way without using the serial number and a URL to get the model name or model number.

Posted on Jun 4, 2020 7:26 PM

Reply
2 replies

Jun 4, 2020 8:10 PM in response to myownappleid

... is there any way to pull the actual Part Number (MR932xx/A) of a computer via the terminal?


That's technically the Mac's order number which serves to distinguish identical hardware (in almost all cases) for a particular market. As such it does not exist to be found anywhere in the Mac or in the macOS it's running.


As you probably already know you can use Terminal to pull the model identifier from Apple (using ioreg and curl) and I understand you don't want to do that.


I'd love to be proven wrong but I sought to find a solution to your question in the past and came up empty.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Mac Part Number or associated Model Name [ex: MacBook Pro (15-inch, 2019)]via command line

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.