On Jun 13, 2007, at 3:11 PM, Craig Bender wrote:
Like this?
http://blog.sun.com/ThinkThin/entry/follow_me_printing
sort of, only this
SRMAC=`cd $UTDEVROOT; pwd | sed 's/.*\(............\)/\1/'`
doesn't turn up anything useful (token for pseudo device, I think,
not a MAC address).
You got me on the right track, though, and more googling turned up this:
MYDISP=`echo $DISPLAY | awk -F: '{print $2}' | awk -F. '{print $1}'`
MYMAC=`grep TERMINAL /tmp/SUNWut/config/dispinfo/$MYDISP | awk -F.
'{print $2}'`
This basically trades a "utwho -c" for a pair of awks (or more likely
a couple of splits in perl once I'm done), so it's a bit faster but
no more unobfuscated.
But I still need utdesktop (or hard coding MAC addresses instead of
using the location field already provided) to get from a MAC to a
physical location.
I'd hoped for an easy way to get the location data from the data
store (just LDAP under the hood, right?).
thanks,
Jason
----------------------------------------
Jason Winningham
Computer Systems Engineer
College of Engineering
The University of Alabama in Huntsville
http://support.eng.uah.edu/ http://www.eng.uah.edu/~jdw
_______________________________________________
SunRay-Users mailing list
[email protected]
http://www.filibeto.org/mailman/listinfo/sunray-users