Here's how I do it...
/usr/sbin/ping $TS 2 2> /dev/null
if [ $? -eq 0 ]; then
CHECK=`telnet $TS 3389 2>/dev/null << 1`
RDP_AVAIL=`echo $CHECK | nawk '/Connected/ {print "true"}'`
if [ "$RDP_AVAIL" = "true" ]; then
/op/SUNWuttsc/bin/uttsc -m -b -E theming $TS
else
echo "RDP service not running on $i"
fi
fi
Brad
On Jan 13, 2010, at 2:43 PM, Anderson, Thomas B (IT Solutions) wrote:
> I am looking to do some load balancing to a group of WTSs via uttsc.
>
> I would like to determine if a selected WTS is up and ready for a RDP
> session. Doing a ping is OK, but sometimes a WTS will respond to a ping but
> still not accept a RDP connection.
>
> What would be a good way to check a WTS to determine if it is available to
> establish a new RDP session. Currently, I use uttsc with the –t option and
> if the uttsc fails I try another WTS server.
>
> Is there a better way? I would like to check before I issue a uttsc.
>
> Solaris 10 SPARC, 4.2, 2.2
>
> Thanks, Tom
>
>
> _______________________________________________
> SunRay-Users mailing list
> [email protected]
> http://www.filibeto.org/mailman/listinfo/sunray-users
Brad Lackey
Datacenter Desktop - Technology Lead
North America
(720) 548-3339
BEGIN:VCARD
VERSION:3.0
N:Lackey;Brad;;;
FN:Brad Lackey
ORG:Sun Microsystems;
TITLE:US-SW Desktop Virtualization Technology Lead
EMAIL;type=INTERNET;type=WORK;type=pref:[email protected]
TEL;type=WORK;type=pref:720-548-3339
TEL;type=CELL:303-875-8616
TEL;type=WORK;type=FAX:(720) 548-3339
item1.ADR;type=WORK;type=pref:;;13320 Racquet Ct.;Poway;CA;92064;United States of America
item1.X-ABADR:us
CATEGORIES:Personal
X-ABUID:57E6612B-F276-4934-9C7A-CC683249EDB1\:ABPerson
END:VCARD
_______________________________________________
SunRay-Users mailing list
[email protected]
http://www.filibeto.org/mailman/listinfo/sunray-users