Monday Jul 21, 2008

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.
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