Step 1: Move vm scripts to the right place
[integration/test.git] / tools / clustering / cluster-debugging / transaction-tracking / extract.sh
1 # This script is designed to be run in a directory where the karaf.log file is present
2 # It greps the log file and produced 3 text files which can then be used to find more 
3 # information about transactions
4 #
5 # To properly use this script you must ensure that the karaf.log is produced with the 
6 # following log settings (this goes in etc/org.ops4j.pax.logging.cfg)
7 #
8 # log4j.logger.org.opendaylight.controller.cluster.datastore.Shard=DEBUG
9 # log4j.logger.org.opendaylight.controller.cluster.datastore.AbstractTransactionContext=DEBUG
10 #
11  
12 grep "Total modifications" karaf.log | awk '{print $1","$2"," $20 "," $23}' > txnbegin.txt
13 grep "Applying local modifications for Tx" karaf.log | awk '{print $1","$2","$22}' > txnreached.txt
14 grep "currentTransactionComplete" karaf.log | awk '{print $1","$2"," $18}' > txnend.txt