Posted on 08-05-2010 12:26 AM
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
Posted on 08-05-2010 12:34 AM
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
Posted on 08-05-2010 12:35 AM
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
Posted on 08-05-2010 12:36 AM
Amazing!
thank you!!
Clearly there is much for me to learn about Extension Attributes.
Nick Caro Senior Desktop Support Administrator
Posted on 08-05-2010 12:37 AM
I would say that if it shows up in the output of the system profiler, yes...
Posted on 08-05-2010 12:41 AM
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
Posted on 08-05-2010 12:43 AM
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