Call Tracing: Using calltrace.sh to Parse the Logs
From DocWiki
(Difference between revisions)
Docwikibot (Talk | contribs) m (Bot: Adding {{Template:Required Metadata}}) |
(→Using calltrace.sh to Parse the Logs) |
||
| Line 1: | Line 1: | ||
| - | |||
== Using calltrace.sh to Parse the Logs == | == Using calltrace.sh to Parse the Logs == | ||
| Line 32: | Line 31: | ||
zgrep $1 MMCA-runtime* > $1.txt | zgrep $1 MMCA-runtime* > $1.txt | ||
| - | #Find all interaction ids over previously grepped logs by getting 10th param on | + | #Find all interaction ids over previously grepped logs by \ |
| - | SEND_NEW_INTERACTION_REQ lines | + | getting 10th param on SEND_NEW_INTERACTION_REQ lines |
| - | GET_INTERACTION_IDS=$(grep SEND_NEW_INTERACTION_REQ $1.txt | cut -f10 -d'[' | cut -f1 -d']' | cut -f2 -d '=') | + | GET_INTERACTION_IDS=$(grep SEND_NEW_INTERACTION_REQ $1.txt | \ |
| + | cut -f10 -d'[' | cut -f1 -d']' | cut -f2 -d '=') | ||
#get Contact id from guid log on CONTACT_CREATED line | #get Contact id from guid log on CONTACT_CREATED line | ||
| - | CONTACT_ID=$(grep CM-6-CONTACT_CREATED $1.txt | cut -f2 -d'[' | cut -f1 -d']' | cut -f2 -d '=') | + | CONTACT_ID=$(grep CM-6-CONTACT_CREATED $1.txt | cut -f2 -d'[' | \ |
| + | cut -f1 -d']' | cut -f2 -d '=') | ||
| - | #Use array to iterate over any interactions created for this guid, usually there are 2, but there may be 1 or more than 2 | + | #Use array to iterate over any interactions created for this |
| + | guid, usually there are 2, but there may be 1 or more than 2 | ||
declare -a MPI_INTERACTION_ID | declare -a MPI_INTERACTION_ID | ||
MPI_INTERACTION_ID=($GET_INTERACTION_IDS) | MPI_INTERACTION_ID=($GET_INTERACTION_IDS) | ||
| Line 54: | Line 56: | ||
done | done | ||
| - | #use search strings in file to get all details of call trace and output to fulltrace file | + | #use search strings in file to get all details of call trace |
| - | zfgrep -h -f $1.fgrepsearch.txt MMCA-runtime* > $1.fulltrace.txt </pre> | + | and output to fulltrace file: |
| + | zfgrep -h -f $1.fgrepsearch.txt MMCA-runtime* > \ | ||
| + | $1.fulltrace.txt </pre> | ||
|- | |- | ||
! '''Release''' | ! '''Release''' | ||
| - | | Release 7.6(1) | + | | Release 7.6(1) and Release 8.0(1) |
|- | |- | ||
! '''Associated CDETS #''' | ! '''Associated CDETS #''' | ||
| Line 66: | Line 70: | ||
[[Category:Unified Expert Advisor, Release 7.6(1)]] | [[Category:Unified Expert Advisor, Release 7.6(1)]] | ||
| + | [[Category:Unified Expert Advisor, Release 8.0]] | ||