The two minute reset is related to the windows logon banner for TS disconnecting after two minutes.
Then your CAM script falls out and the SR session ends, thus the
restart.
You can put a loop in your CAM script to help this.
Here is an example.
#!/bin/sh
# Debug. If set to "yes" script output will be sent
to /tmp/CAMlog.$DISPLAY.$$
DEBUG=no
if [ "$DEBUG" = "yes" ]; then
exec 2>/tmp/CAMlog.$DISPLAY.$$ 1>&2
set -x
fi
VER="2.1"
# Terminal Server
TS_SERVER="server name or IP address here"
# Set loop timeout minutes,
MIN_RESET_MIN=30
# Convert it to seconds
MIN_RESET_SEC=`expr $MIN_RESET_MIN \* 60`
# Capture start time in seconds
START_TIME=`perl -e 'print time(), "\n";'`
# Sleep for dtsession to start
sleep 2
# Lookup display number using either $BBDISPLAY or $DISPLAY
# so script can be run outside of CAM
DISP_NUM=`echo ${BBDISPLAY:=$DISPLAY} | nawk -F: '{split($2,disp,".");
print disp[1];}'`
# set numlock on
/usr/openwin/bin/xset led 1
# Start loop to maintain display of Windows
XPID=`ps -ef | egrep "bin/(Xsun|Xorg) :$DISP_NUM " | nawk '{print $2}'`
while [ $XPID ] ; do
if /opt/SUNWut/bin/utaction -e -i -c true -d false; then
# Start RDP Client
/opt/SUNWuttsc/bin/uttsc -m -b -r
disk:USB=/tmp/SUNWut/mnt/$USER/
$TS_SERVER
fi
# Check elapsed time, if too long, break
CURRENT_TIME=`perl -e 'print time(), "\n";'`
ELAPSED_TIME=`expr $CURRENT_TIME - $START_TIME`
if [ $ELAPSED_TIME -gt $MIN_RESET_SEC ]; then
break
fi
sleep 2
XPID=`ps -ef | egrep "bin/(Xsun|Xorg) :$DISP_NUM " | nawk '{print $2}'`
done
On Mon, 2007-08-13 at 14:45 -0500, Seth Galitzer wrote:
> Greetings,
>
> I've been poking around in the archives, but haven't found anything on
> this topic. It looks like when a DTU is idle it "reboots" about every
> two minutes. It doesn't seem to be a problem, but if you're sitting in
> a room full of them, it gets a little distracting.
>
> Is this something that is required for smooth operation? If not, is it
> something that can be adjusted/modified, or is it hard-coded into the
> firmware?
>
> My setup:
> * SRSS 3.1 server on Sol10_x86
> * SR2FS, firmware v. 3.1_120879-06_2007.03.13.15.14, config for CAM
> * uttsc to Windows Server 2003 Terminal Services, device CALs
>
> Thank you.
> Seth
>
Brad Lackey
Desktop Product Lead
US Software Practice
(720) 548-3339
[EMAIL PROTECTED]
<<attachment: sun_sig2.gif>>
_______________________________________________ SunRay-Users mailing list [email protected] http://www.filibeto.org/mailman/listinfo/sunray-users
