Posted on 09-10-2019 02:18 PM
I know there was a request to identify the T2 chip presence in a recon, but is there a built in EA for this somewhere else in Jamf?
The other thread in question:
https://www.jamf.com/jamf-nation/feature-requests/8083/report-t2-chip-presence-in-default-recon
Posted on 09-11-2019 01:20 AM
@darthmaverick I can't remeber where I have found it (to aknowledge the original scripter credits)
No built-in EA, I use one created with the script below which detects the kind of chip present on the machine (result is blank if not present a T1/T2 chip)
Hope it helps
Ciao
Carlo
#!/bin/bash
Chip="$(/usr/sbin/system_profiler SPiBridgeDataType | /usr/bin/grep 'Model Name' | awk '{ for (i=3; i<=NF; i++) printf("%s ",$i) }END{ print"" }')"
echo "<result>$Chip</result>"
Posted on 09-11-2019 08:11 AM
Would it not just be in devices before x date as z model, Or are you trying to do something different?
Posted on 10-05-2021 04:52 PM
Thanks @carlo_anselmi for the SPiBridgeDataType key! That awk statement looks scary though so I found one that I understand a bit better using the -F flag to set the field separator then matching the first field and printing the second.
system_profiler SPiBridgeDataType |
awk -F ': ' 'tolower($1) ~ "model name" {print "<result>"$2"</result>"}'