Thanks to all of you who gave feedback! I quickly looked at the Blog entry and found that I'm using the same method (ouf! not bad ;-).
In my case, the printers are stored on a DB also with VLANs and hosts (we use VMPS to assign dynamic VLANs). Regards, Xavier -- No .sig is a good .sig On Mon, 22 May 2006, Brad Lackey wrote: > There is a post here > > http://blogs.sun.com/roller/page/ThinkThin?entry=follow_me_printing > > Which works great for automatically changing printers when hot desking. > > Also, I use > > SUNRAY=`/opt/SUNWut/sbin/utdesktop -Lc | /usr/bin/grep ${SUN_SUNRAY_TOKEN} | > /usr/bin/cut -f 1 -d " "` > > to get the Sun Ray MAC address. > > Brad > > > > Xavier Mertens wrote: > > Ok, I'm able to find the MAC address via this commant: > > > > /opt/SUNWut/sbin/utuser -p `/opt/SUNWut/bin/utwho $USER | grep '{ print $2 > > }'` | grep "Current Desktop" | awk '{ print $NF }' > > > > Quite ugly but it worked for me! > > > > Regards, > > Xavier > > -- > > LOAD "vmunix",8,1 > > > > On Mon, 22 May 2006, Xavier Mertens wrote: > > > > > > > Hi Tom, > > > > > > My UTDEVROOT points to /tmp/SUNWut/sessions/29/unit. I didn't find any > > > relevant info in this directory :( > > > The goal is to get the Sunray MAC to configure the nearest printer as > > > default when a user logs in. > > > > > > Also, is there some place to put scripts which will be executed when a > > > user removes/inserts his card? > > > > > > Regards, > > > Xavier > > > -- > > > LOAD "vmunix",8,1 > > > > > > On Mon, 22 May 2006, Tom Shaw wrote: > > > > > > > > > > If you're using a Sun keyboard, press the three "audio" keys at the top > > > > right of the keyboard simultaneously. > > > > > > > > Or from a shell you can work out the MAC address by examining the > > > > $UTDEVROOT environment variable. I don't know if this will continue to > > > > work in future versions though. > > > > > > > > Regards > > > > Tom > > > > > > > > ----- Original Message ----- > > > > From: Xavier Mertens <[EMAIL PROTECTED]> > > > > Date: Monday, May 22, 2006 3:30 pm > > > > Subject: [SunRay-Users] Sunray MAC address > > > > To: SunRay-Users mailing list <[email protected]> > > > > > > > > > > > > > Hi, > > > > > Just a small question: how may I get the Sunray MAC address where I'm > > > > > logged in? Via a ut* tool? > > > > > > > > > > Regards, > > > > > Xavier > > > > > -- > > > > > echo "This is not a pipe." | cat - >/dev/tty > > > > > _______________________________________________ > > > > > SunRay-Users mailing list > > > > > [email protected] > > > > > http://www.filibeto.org/mailman/listinfo/sunray-users > > > > > > > > > > > > > > _______________________________________________ > > > > SunRay-Users mailing list > > > > [email protected] > > > > http://www.filibeto.org/mailman/listinfo/sunray-users > > > > > > > > > > _______________________________________________ > > SunRay-Users mailing list > > [email protected] > > http://www.filibeto.org/mailman/listinfo/sunray-users > > _______________________________________________ SunRay-Users mailing list [email protected] http://www.filibeto.org/mailman/listinfo/sunray-users
