infor.com
concierge
infor u
developer portal
documentation central
customer center
Posts
Categories
Groups
ERPs
CSD
FSM/HRT
LN
M3
Syteline/ CSI
Hubs
Developer
Healthcare
Hospitality
Public Sector
Onboarding
Release Center
CloudSuites
Aerospace & Defense (LN)
Automotive (LN)
Chemicals (M3)
Corporate (FSM/HRT)
Distribution (Sx.e/CSD)
Distribution Enterprise (M3)
Engineering & Construction (LN)
Fashion (M3)
Food & Beverage (M3)
Healthcare (FSM/HRT)
Industrial (Syteline/CSI)
Industrial Enterprise (LN)
Manufacturing (M3)
Public Sector (FSM/HRT)
Solutions
Supply Chain Management (SCM)
Human Capital Management (HCM)
Events
Groups
User Groups
Your Groups
About
Email Community Support
Infor News
Migrated Forums
Home
Clovertech
Clovertech Archive
Cloverleaf
Statistic Database tool
tim-jipson
I've just turned on the Stats tool. Has anyone been able to loop through the smatdb files to build history?
Find more posts tagged with
Clovertech
Comments
Jim Vilbrandt
Hi Tim,
I didn't really do much with this, but as SMAT are SQLite Databases, you can query them.
cd $HCIROOT/prod_oru_lab/exec/processes/ORU
sqlite3 GlucoTab_ORU_ob.smatdb
sqlite> .mode column
sqlite> .header on
sqlite> .table
smat_info smat_msgs
select MessageContent from smat_msgs where MessageContent like '%94728999%GLU%';
select replace(MessageContent,X'0D','\r') msg from smat_msgs where OrigSourceConn = 'POCcelerator_ORU' and MessageContent like '%94728999%GLU%';
The fields in the SMAT_MSGS table are basically what you see in the SMAT Database tool.
Regards, Jim
tim-jipson
Thanks Jim, unfortunetly our smatdb files are encrypted so that won't work. I was able to use Charlie's hcismatdb script to get my counts. Aside from the code for looping through the directories, this is all the code I needed then I just parse what is returned in msgCount.
msgCount=/hci-scripts/msgCount/hcismatdb.tcl -i $smatFile -orsf tempsmat -site ${site:1}
Charlie Bursell
Glad to se the database tool has not exceeded its use by date. :-)