Edit/read nar file in OCOMC without Nar editor

Now it no more a challenge to read or modify nar file in offline mediation controller (OCOMC) .
There is an OOB utility which we can use in your perl/shell script to read nar files .

All the transactional files of OCOMC are always in NAR format .
For ex :

  • Intermediate file between two nodes .
  • Success response file by ECE.
  • Suspense file in suspense directory.
  • No response file.
you may encounter situation where you have to read these files to get some value or do some analysis.

There is script with name : NARVIEWER on your OCOMC_HOME/bin/tools directory . You can use this script in your custom shel script to read nar files or to get record count in one narfile.

Sample loop to get record count in all NAR files in a directory: 

#!/bin/bash
FILES=No_response*
for f in $FILES
do
echo "Processing $f file..."
 get_only_filename=${f##*/}
echo $f
app/BRM/opt/OracleCommunications/ocomc/bin/tools/NARViewer -narfile $f -count
done


You can use Narviewer with - value in place of -count to print the content of entire nar file.

Comments

Popular posts from this blog

cm core dump analysis

NO_RESPONSE file handling during rating in ECE and OCOMC

Script to create snapshot in Oracle ECE