[EMAIL PROTECTED] $ utwho -c2.0 auth.bautsche bautsche 192.168.140.110 P7.0003ba4eb2a5 2.1 auth.bautsche bautsche 192.168.140.108 P7.0003babb91b3
[EMAIL PROTECTED] $
Eric Bob Doolittle wrote:
Sorry, my command below needs a little modification to work on a system with more than one connected Sun Ray ;-)utwho -c | nawk "/$SUN_SUNRAY_TOKEN/{split(\$NF,arr,\".\"); print arr[2]}"-Bob Bob Doolittle wrote:Here's a simpler way, using only one SRSS utility and nawk: /opt/SUNWut/bin/utwho -c | nawk '{split($NF,arr,"."); print arr[2]}' -Bob 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_______________________________________________ SunRay-Users mailing list [email protected] http://www.filibeto.org/mailman/listinfo/sunray-users
--
____
/ . Eric A. Bautsch
/-- __ ___ ______________________________________
/ / / / /
(_____/____(___(__________________/ email: [EMAIL PROTECTED]
smime.p7s
Description: S/MIME Cryptographic Signature
_______________________________________________ SunRay-Users mailing list [email protected] http://www.filibeto.org/mailman/listinfo/sunray-users
