Actually, I found after digging a little deeper variable that this works quite well (so far anyway) add a cut command and boom!
SRMAC=`echo $SUN_SUNRAY_TOKEN | cut -d'.' -f2` Anyone see any long-term problem with me using this method? >>> John Francis <[email protected]> 08/13/10 10:51 PM >>> On 14 August 2010 05:13, Brian Imbriani <[email protected]> wrote: > So I've done some googling, and none of these issues really seem to work > very well in CentOS5/SRSS4.2. > > I need to get the MAC address of the SunRay so that I can then get the > "Location" of the sunray. > > (SideBar: If there's a direct way of getting the "Location" and "Other" > fields of the sun-ray, I'm all ears). > > Someone wrote this for me once: > > -------------- > SRMAC=`cd $theFlag $UTDEVROOT; pwd | sed 's/.*\(............\)/\1/'` You want "cd -P" if you're using Bash on CentOS. > > THELOC=`/opt/SUNWut/sbin/utdesktop -l |grep $SRMAC | /usr/bin/awk '{print > $2;}'` > -------------- > I do: SRMAC=`cd -P $UTDEVROOT; pwd | sed 's/.*\(............\)/\1/'` in Bash and that seems to work fine. -- Kind regards, John Francis _______________________________________________ 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
