Skip to main content
Question

T2 Search

  • September 10, 2019
  • 3 replies
  • 12 views

Forum|alt.badge.img+7

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

Forum|alt.badge.img+10
  • Valued Contributor
  • September 11, 2019

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

Forum|alt.badge.img+3
  • New Contributor
  • September 11, 2019

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


Forum|alt.badge.img+2
  • New Contributor
  • October 5, 2021

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