Posted on 01-26-2022 04:43 AM
Hello,
We are finding some error on current Extension Attribute Mac model with Year on M1 Chip devices. Let me know any suggestions.
Posted on 01-26-2022 05:21 AM
Something like this maybe;
echo "<result>`/usr/sbin/sysctl hw.model | awk '{print $2}'`</result>"
<result>MacBookAir10,1</result>
01-26-2022 05:22 AM - edited 01-26-2022 05:32 AM
Sorry I just realised you wanted the marketing model, you can craft something from this;
/usr/bin/defaults read ~/Library/Preferences/com.apple.SystemProfiler.plist 'CPU Names' | cut -sd '"' -f 4 | uniq
MacBook Air (M1, 2020)
Posted on 01-26-2022 08:25 AM
Above lines are going more details. I will try on that.
Posted on 01-26-2022 06:52 AM
Jamf inventory collection for each mac already displays the year/model of the Mac including the M1. If you go to the Hardware section of a Mac record it will display the make/model/year and the basic specs.
Posted on 01-26-2022 08:30 AM
Couple of M! Chip devices giving error like " ?xml version="1.0" encoding="utf-8" ?><root><error>0009</error><locale>en_US</locale></root>".
Posted on 01-26-2022 04:00 PM
Which models? I have 74 Apple Silicon Macs and don't have any XML errors. I am showing these models correctly:
MacBook Pro (13-inch, M1, 2020)
MacBook Pro (14-inch, 2021)
MacBook Pro (16-inch, 2021)
Posted on 01-27-2022 06:54 AM
@munirajuh Have you seen this extension attribute script, might be helpful as a reference or for testing. Came up in the recommendations
https://community.jamf.com/t5/jamf-pro/collect-year-from-mac-marketing-model-name/m-p/250495
Posted on 01-26-2022 08:31 AM
You can run a policy to run recon on those macs to see if it reports back correctly
Posted on 12-23-2022 01:36 AM
I'm trying to break down the result of "MacBook Pro (13-inch, M1, 2020)" to just "2020"
Has anyone had any luck / can give suggestions?