Skip to main content
Question

Bootstrap token extension attribute

  • February 24, 2020
  • 10 replies
  • 57 views

Forum|alt.badge.img+15
  • Valued Contributor
  • 301 replies

I'm happy to see bootstrap token support in Jamf 10.19, but I only want to run profiles install -type bootstraptoken for users that don't have a token escrowed. I couldn't find an existing EA here to help scope my policy, so I put one together. Hopefully someone finds this useful :)

#!/bin/bash

tokenStatus=$(profiles status -type bootstraptoken | awk '{ print $7 }' | sed 1d)

if [ $tokenStatus == "NO" ]; then
    echo "<result>Not escrowed</result>"
elif [ $tokenStatus == "YES" ]; then
    echo "<result>Escrowed</result>"
else
    echo "<result>Unknown status</result>"
fi

10 replies

Forum|alt.badge.img+11
  • Valued Contributor
  • 75 replies
  • February 25, 2020

@sshort Thanks for sharing your script for this. :)


Forum|alt.badge.img+11
  • Valued Contributor
  • 164 replies
  • November 11, 2020

Thanks!!


Forum|alt.badge.img+1
  • New Contributor
  • 3 replies
  • November 12, 2020

Great 👍


A-bomb
Forum|alt.badge.img+7
  • Contributor
  • 58 replies
  • November 13, 2021

Just what I was looking for! Thank you  😀


Forum|alt.badge.img+1
  • New Contributor
  • 5 replies
  • November 23, 2021

what do you mean by "unknown status"


Forum|alt.badge.img+5
  • Contributor
  • 33 replies
  • March 14, 2022

Doesn't seem to work on Monterey


A-bomb
Forum|alt.badge.img+7
  • Contributor
  • 58 replies
  • March 14, 2022

Doesn't seem to work on Monterey


12.3? Works fine for us on 12.0–12.2.1.


Forum|alt.badge.img+5
  • Contributor
  • 33 replies
  • March 14, 2022

12.3? Works fine for us on 12.0–12.2.1.


Maybe I'm doing something wrong... It's blank.


Forum|alt.badge.img+5
  • Contributor
  • 33 replies
  • March 14, 2022

Maybe I'm doing something wrong... It's blank.


ok never mind, it just takes time to appear. Thx


Forum|alt.badge.img+12
  • Contributor
  • 30 replies
  • September 9, 2022

Is there a feature request to USE THE BUILT IN INVENTORY ITEM as a searchable criteria in either smart group or advanced search?

Seems ludicrous that we need to create an EA for something that is already reported in the inventory of a computer.