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