Extension Attribute - help needed creating one thatlooks for /Users/Shared/test directory

Not applicable

I'm fascinated by this information...
By creating a script, would it also be possible to setup an Extension Attribute that looks for attached Wacom tablets?

Nick Caro Senior Desktop Support Administrator

6 REPLIES 6

jarednichols
Honored Contributor

Absolutely.

I'd use system_profiler and grep out for your device. Crowbar that into some result tags and bob's your uncle.

j
--
Jared F. Nichols
Desktop Engineer, Client Services
Information Services Department
MIT Lincoln Laboratory
244 Wood Street
Lexington, Massachusetts 02420
781.981.5436

stevewood
Honored Contributor II
Honored Contributor II

Jared beat me to it.

I haven't tested this out, but:

#!/bin/sh

tabletExists="system_profiler | grep WACOM"

if [ $tabletExists != "" ];

then
echo "<result>Yes</result>"
else
echo "<result>No</result>"
fi

The Wacom shows up as WACOM on one of my machines here. This should work.

Steve Wood
Director of IT
swood at integer.com

The Integer Group | 1999 Bryan St. | Ste. 1700 | Dallas, TX 75201
T 214.758.6813 | F 214.758.6901 | C 940.312.2475

Not applicable

Amazing!

thank you!!

Clearly there is much for me to learn about Extension Attributes.

Nick Caro Senior Desktop Support Administrator

ernstcs
Contributor III

I would say that if it shows up in the output of the system profiler, yes...

stevewood
Honored Contributor II
Honored Contributor II

Last script had an error, but this works and is tested:
On Thu, Aug 5, 2010 at 2:37 PM, Ernst, Craig S. <ERNSTCS at uwec.edu> wrote:

#!/bin/sh

tabletExists="system_profiler | grep WACOM"

if [ "$tabletExists" != "" ];

then
echo "<result>Yes</result>"
else
echo "<result>No</result>"
fi

Steve Wood
Director of IT
swood at integer.com

The Integer Group | 1999 Bryan St. | Ste. 1700 | Dallas, TX 75201
T 214.758.6813 | F 214.758.6901 | C 940.312.2475

jarednichols
Honored Contributor

I do the same thing for all of our graphics chipsets since (for some strange reason) the machine details don't display graphics cards.

#!/bin/sh

chipset=system_profiler -detaillevel mini | grep Chipset | cut -d : -f 2
echo "<result>$chipset</result>"

j
--
Jared F. Nichols
Desktop Engineer, Client Services
Information Services Department
MIT Lincoln Laboratory
244 Wood Street
Lexington, Massachusetts 02420
781.981.5436