Watching MQ Traffic with OpenSSO Express

If you are using the new OpenSSO Express build 4.5 and want to watch as session updates, additions, or deletions are recorded to the amsessiondb.log when session failover is enabled, you must set the AMSESSIONDB_ARGS attribute with a value of "-v" in the amsfo.conf file. Then you can grep for MQ traffic with the following:
tail -f amsessiondb.log > a
grep WRITE a | wc; grep DELETE a | wc; wc a
Here is an example of what the log file that records writes looks like:

Starting...  true
   /usr/jdk/instances/jdk1.5.0/jre/bin/java -Xms128m -Xmx512m -classpath /opt/opensso/instance1/sfo/jmq/mq/lib/imq.jar:/opt/opensso/instance1/sfo/jmq/mq/lib/jms.jar:/opt/opensso/instance1/sfo/ext/je.jar:/opt/opensso/instance1/sfo/locale:/opt/opensso/instance1/sfo/lib/am_sessiondb.jar:. com.sun.identity.ha.jmqdb.client.FAMHaDB
   Initailizing and connecting to the Message Queue server ...
   Checking for peer BDB daemon processes. Please wait ...
   Successfully started.
   OP=WRITE
   service=session
   WRITE message received.
   >>>>>>>>>>>>>> Write by Primary Key : -1279015892
   OP=WRITE
   service=session
   WRITE message received.
   >>>>>>>>>>>>>> Write by Primary Key : -1279015892
   OP=WRITE
   service=session
   WRITE message received.
   >>>>>>>>>>>>>> Write by Primary Key : -1279015892
   OP=WRITE
   service=session
   WRITE message received.
   >>>>>>>>>>>>>> Write by Primary Key : -1279015892
   OP=READ
   service=session
   READ message received.
   >>>>>>>>>>>>>> Read by Primary Key : -1098220087
   >>>>>>>>>>>>>> Found record !
   OP=WRITE
   service=session
   WRITE message received.
   >>>>>>>>>>>>>> Write by Primary Key : -1098220087
   OP=WRITE
   service=session
   WRITE message received.
   >>>>>>>>>>>>>> Write by Primary Key : -1098220087

Now go eat some cannibals with Toto Coelo. Mmm, mmm, good.
Comments:

I think you forgot to add the tutorial on how to setup session failover using openSSO :)

or maybe session failover 101 - the easy way ...

but thanks doc, keep 'em coming!

Posted by ssonewb on July 29, 2008 at 10:32 AM PDT #

Did you look here:
http://docs.sun.com/app/docs/doc/819-5899/gcdup?a=view
It's for AM 7.1 and I don't think this book has yet been updated for OpenSSO but it should get you started.

Posted by DocTeger on July 29, 2008 at 11:28 PM PDT #

Post a Comment:
Comments are closed for this entry.
About

docteger

Search

Categories
Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today