Attached is a script that we created to capture thread statistics into an SQLite database; we execute the script via cron at midnight for each site that we have.
What we do is to run a script just before midnight for each site to write the data out to a CSV file. All of the CSV files are then processed into a SQLite DB that we can use to run reports. Of course we keep the CSV files around for a long time. I have stats going back to when the engines were created on the systems they are running on.
Of course since this is for a LAB company we have thousands of interfaces and many, many sites. I found directly inserting into a DB from all of the sites was not working for us due to the number of inserts at the same time.
We have a script that runs just after midnight. It’s kinda clunky and probably needs re-writing (I wrote it when I was first learning the cloverleaf system), but it finds all of the sites and then uses the nfLoad processes to pull in all the thread names. Then it issues the hcimsiutil -dd command to pull in the data, parses and writes it out, and resets the thread counts (hcimsiutil -xt).
The record layout follows an HL7 format – full format document is attached:
HDR
THREAD
PROTO
COUNTS
{ITS}
I then have various scripts that I can run to create reports off of this data.
A big thanks to James for sharing his script. I was able to make use of at least part of it since it was pulling more data than we need for the time being.
Author
Replies
Viewing 5 reply threads
The forum ‘Cloverleaf’ is closed to new topics and replies.