Skip to main content
Solved

Has anyone used the EA to List iLock Serial?

  • November 16, 2016
  • 5 replies
  • 9 views

Forum|alt.badge.img+13
  • Honored Contributor
  • 253 replies

I am struggling to use this EA to determine if there is an iLock on the computer. I can run a command similar to this in ARD but that does not help me as I want to create a Smart Group scoped to iLocks installed.

Best answer by neilmartin83

We're using this, which returns 'No iLok Connected' if there isn't one, working on OS X 10.10.5 (running Pro Tools 11 which is keeping us from going up to newer OS's):

#!/bin/sh
## Script to detect and enumerate attached iLok Serial

SERIAL=`system_profiler SPUSBDataType | grep -B 5 -i ': iLok' | grep 'Serial' | cut -f 2 -d ":" | sed -e "s/ //"`

if [[ "$SERIAL" == "" ]]
then
    echo '<result>'No iLok Connected'</result>'
else
    echo '<result>'$SERIAL'</result>'
fi

5 replies

Forum|alt.badge.img+8
  • Valued Contributor
  • 126 replies
  • November 16, 2016

@CapU not sure where I got it from but:

#!/bin/sh
## Script to detect and enumerate attached iLok Serial

SERIAL=`system_profiler SPUSBDataType | grep -B 5 -i ': iLok' | grep 'Serial' | cut -f 2 -d ":" | sed -e "s/ //"`


echo '<result>'$SERIAL'</result>'

neilmartin83
Forum|alt.badge.img+7
  • Contributor
  • 94 replies
  • Answer
  • November 16, 2016

We're using this, which returns 'No iLok Connected' if there isn't one, working on OS X 10.10.5 (running Pro Tools 11 which is keeping us from going up to newer OS's):

#!/bin/sh
## Script to detect and enumerate attached iLok Serial

SERIAL=`system_profiler SPUSBDataType | grep -B 5 -i ': iLok' | grep 'Serial' | cut -f 2 -d ":" | sed -e "s/ //"`

if [[ "$SERIAL" == "" ]]
then
    echo '<result>'No iLok Connected'</result>'
else
    echo '<result>'$SERIAL'</result>'
fi

Forum|alt.badge.img+4
  • New Contributor
  • 4 replies
  • May 7, 2018

Has anyone found a way to correlate these hardware serial numbers with the actual iLok serial numbers exported from the iLok manager?


Forum|alt.badge.img+11
  • Valued Contributor
  • 328 replies
  • June 28, 2019

That's what I'm trying to figure out. We have about 60 of these and renewing them each year is a proper pain as it seems the only way to identify the system id is from each individual machine!


Forum|alt.badge.img+4
  • Contributor
  • 10 replies
  • June 8, 2020

For anyone interested, this is how you get the proper serial numbers that reflect in iLok License Manager. I just modified the script supplied by Neil above.

#!/bin/sh
## Script to detect and enumerate attached iLok Serial

SERIAL=`/usr/local/bin/iloktool`

if [[ "$SERIAL" == "" ]]
then
    echo '<result>'No iLok Connected'</result>'
else
    echo '<result>'$SERIAL'</result>'
fi

exit 0