Extension attributes knowledge sharing

Not applicable

Anyone have any good extension attributes they'd like to share so we can all see what works and what could work.

So far we've deployed:
- identify if an Apple manufactured SSD is present
- chat client logging status
- detect if a WWAN card has been installed

Anyone else have something cool to add, please share. It may help us all out here.

Sent from my iPhone

3 REPLIES 3

dderusha
Contributor

we used extended attributes to add MCX settings for macs that were freshly imaged. We wanted to enforce side bar restrictions that we have manually edited in the past.
BUT we did not want to overwrite existing settings people have added to our base.

Adam from Jamf helped us with it.

Dan De Rusha
I.T. SPECIALIST

SCHAWK!
T 847.296.6000 M 847.287.1337
F 847.296.9466

1600 Sherwin Avenue
Des Plaines, IL 60018 USA
schawk.com

Schawk invites Industry Thought Leaders to participate in BRANDSQUARE, a one-of-a-kind, exclusive online marketing community. Visit http://brandsquare.com.

dhowell
Contributor

It's not Pretty but this one comes back with a result if it this Process is running, if it comes back empty I Install the process. *.* is the process for the version of Lojack we use. I use *.* for Security reasons, but you get the drift!

#!/bin/sh echo "<result>` ps -ef | grep -v 'grep' | grep *.* | awk '{ print $2; }' `</result>"

D. Trey Howell ACMT, ACPT, ACDT, ACHDS
trey.howell at austinisd.org
Desktop Engineering
twitter @aisdmacgeek

Some people have told me they don’t think a fat penguin really embodies the race of Linux, which just tells me they have never seen a angry penguin charging at them in excess of 100mph. They’d be a lot more careful about what t
hey say if they had.

– Linus Torvalds, announcing Linux v2.0

dhowell
Contributor

I have been playing and finding the Ext. Attributes the best thing since Sliced Bread. Dusty from Jamf pointed me in this direction. Here are 2 others I'm using

We have a group called tchinstall, for teachers that we elevate there rights, so to add it to computers that didn't get it on the image I use this attribute to check if it exists

echo "<result>`dscl . read /Groups/tchinstall | grep -v 'grep' | grep tchinstall | awk '{ print $2; }' `</result>"

We have a script we created that sends attachments through sendmail, We use it to mail logs, so to make sure its on every machine we use this script

[ -f /usr/sbin/mailatt ] && echo "<result>File exists</result>" || echo "<result>File does not exists</result>"

D. Trey Howell ACMT, ACPT, ACDT, ACHDS
trey.howell at austinisd.org
Desktop Engineering