Step one in debugging these things is to test your script by hand. Like
this:
% echo "insert_token=Payflex.5011c7e600130100" |
/etc/local/sbin/utamgh_switch.sh
username=scottrig
host=infosphere
% echo $?
0
If it's working, you should see output like the above (if using csh,
echo $status instead of $? IIRC).
You can also look for AMGH_SUMMARY lines in /var/opt/SUNWut/log/messages
on the machine to which you were initially connected to see what happened.
-Bob
Scott L Riggen wrote:
Hi all,
Thanks to Bob I'm getting closer on my amgh stuff.
I've got my test servers split into 3 failover groups.
I am trying to get amgh switching to work based on inserted token.
I copied the /opt/SUNWutref/amgh/utamghref_script to a local filesystem and
made a couple smalle changes. Here is the diff between my local copy and the
provided script.
< DBFILE=/share/conf/amgh/back_end_db
---
DBFILE=/opt/SUNWutref/amgh/back_end_db
< #opt_all=$4 #Optional -- set to ALL if you need all matching lines.
< opt_all=ALL #Optional -- set to ALL if you need all matching lines.
---
opt_all=$4 #Optional -- set to ALL if you need all matching lines.
If you run /opt/SUNWut/utamghadm on all the servers you see.
AMGH Mapping Script: /etc/local/sbin/utamgh_switch.sh
I also made sure I did a utrestart -c as directed after the amgh change.
My back_end_db file looks like this for right now.
/opt/SUNWut/sbin $ more /share/conf/amgh/back_end_db
insert_token=Payflex.5011c7e600130100 username=scottrig host=infosphere
insert_token=Payflex.5011c7e600130100 username=scottrig host=fry
insert_token=Payflex.5006942100130100 username=qalab21 host=farnsworth
When the test sunray came online it got connected to farnsworth. If I stick in
my user card I still stay on farnsworth and do not get connected to infosphere
or fry which is a different FOG.
Any thoughts on what I might be doing wrong.
Regards,
Scott
_______________________________________________
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