Running SRSS 4.2 on Solaris 10 Sparc. I'm trying to setup a simple AMGH script that matches on specific smart card to send it to a test SRSS server. Here is the script:

#!/bin/sh
#
# ident "@(#)utamghref_script.sh        1.6 05/05/17 SMI"
#
# Copyright 2004-2005 Sun Microsystems, Inc.  All rights reserved.
# Use is subject to license terms.
#


OUTPUT=/opt/SUNWutref/amgh/out.txt

# parse the args into shell vars
while read A
do
   eval "$A"
done
touch $OUTPUT
echo "UserName: >>$username<<">>$OUTPUT
echo "Token: $token" >>$OUTPUT
echo "Terminal CID: $terminal_cid">>$OUTPUT
echo "Terminal IP: $terminal_ip_addr">>$OUTPUT
echo "Insert Token: $insert_token">>$OUTPUT
echo "Display: $display">>$OUTPUT

if [ $insert_token = Payflex.500ae36d00130100 ]
then
   echo "host=192.168.100.2"
   echo "Sending host to 192.168.100.2">>$OUTPUT
elif [ "$username" = "" ]
then
if [ "$terminal_ip_addr" = "129.82.224.49" -o "$terminal_ip_addr" = "129.82. 224.50" -o "$terminal_ip_addr" = "129.82.224.95" -o "$terminal_ip_addr" = "129.8
2.224.94" ]
   then
       echo "Send Use First">>$OUTPUT
       echo "host=129.82.224.49"
   fi
fi
exit 0

And this is the output from the script when I put in the smart card on the thin client:

UserName: >><<
Token: Payflex.500ae36d00130100
Terminal CID: IEEE802.00144fb1d1ef
Terminal IP: 192.168.103.67
Insert Token: Payflex.500ae36d00130100
Display: :117
Sending host to 192.168.100.2


The thin client is not even trying to connect to my test SRSS. As you can see it is matching my smart card and is echoing out the correct IP address of my test SRSS server. I have confirmed my test SRSS works by using utswitch. What am I missing here?

--
C. J. Keist                     Email: [email protected]
UNIX/Network Manager            Phone: 970-491-0630
Engineering Network Services    Fax:   970-491-5569
College of Engineering, CSU
Ft. Collins, CO 80523-1301

All I want is a chance to prove 'Money can't buy happiness'

_______________________________________________
SunRay-Users mailing list
[email protected]
http://www.filibeto.org/mailman/listinfo/sunray-users

Reply via email to