Display x.0 is not necessarily the primary,
if the "-S" option is used with utxconfig to
override the default screen ordering.
I think I'd cross-correlate this output with
the output of 'utmhadm', if you need to know
the primary. Yuck, I wish there were a cleaner
way.
Somebody else mentioned $UTDEVROOT. This
is the name of a symlink to a path which does
in fact (today) contain the MAC address (it's
the primary in a MH group). But this is not what
we call a "public, stable interface", so it's subject
to change without notice in a future release...
In other words, it's an aspect of the current
implementation, and may not apply in future
implementations.
-Bob
Eric Bautsch wrote:
Hmm, interesting, but could there be a need to know which one is the
primary SunRay in a multihead setup? Any way to find out? Is display
x.0 always the primary?
[EMAIL PROTECTED] $ utwho -c
2.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
------------------------------------------------------------------------
_______________________________________________
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