T2 Search

darthmaverick
New Contributor III

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

3 REPLIES 3

carlo_anselmi
Contributor III

@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>"

jacob_evans
New Contributor II

Would it not just be in devices before x date as z model, Or are you trying to do something different?

gregsheppard
New Contributor II

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>"}'