Message Count

  • Creator
    Topic
  • #54628
    Femina Jaffer
    Participant

    Is there any easy way we can capture the total number of messages that crossed within a certain time period or 24hr  (MSH 7 date/time or sending date/time and seconds ) for a particular thread?  We do cycle / archive our smat files.  Is this possible in an alert?

    Perhaps, even capture by writing out MSH 7/ sending date to a file, and then counting the total.

    Thanks,

    Femina

Viewing 7 reply threads
  • Author
    Replies
    • #82271
      James Cobane
      Participant

      Femina,

      Are you looking to capture the stats for each thread or are you looking to know how many messages went from thread A to thread B?  Either way, this information can be captured using the ‘msi’ extensions available in Cloverleaf.  We currently capture stats prior to cycling SMAT and then re-initialize the stats so that we get a fresh count daily.  This is done with some tcl scripts utilizing the ‘msi’ extensions and are scheduled in cron (along with the ‘cycle save’ process)’.

      Jim Cobane

      Henry Ford Health

    • #82272
      Femina Jaffer
      Participant

      Thanks Jim.  We are actually looking to know how many went from Thread A to Thread B at a given time.

      Currently we are cycling three times a day; but, perhaps we can analyse the volume again and only cycle at those times.  Would you have an example script on how we can capture the stats prior to cycling?

      Thanks,

      Femina

    • #82273
      James Cobane
      Participant

      Femina,

      Attached is a script that we run to simply capture the stats at midnight (prior to cycling/re-initializing).

    • #82274
      Femina Jaffer
      Participant

      Thank you James, just got around to this.  Very much appreciated.

      Are you running this script in the cron?

      Femina

    • #82275
      James Cobane
      Participant

      Femina,

      Yes, we are running this script in cron and simply re-directing the output to a file that we can look at, i.e.

      59 23 * * * setroot;setsite mysite;getroutestats >> /logs/getroutestats.log;

      We also re-initialize the stats after running this script so that we have a daily total each day.

      Thanks,

      Jim Cobane

      Henry Ford Health

    • #82276
      Kelvyn Ng
      Participant

      anyway we can capture from archive idx/msg file?

    • #82277
      James Cobane
      Participant

      The .idx files contain all the metadata associated with each message, so you could use this information to cobble together whatever statistics you want to collect from the metadata available.

      Jim Cobane

      Henry Ford Health

    • #82278
      David Coffey
      Participant

      We run TCL jobs against all the SMAT files extracting certain data elements from the MSH and dump them into an SQLite database.  From there we can report on run rates, throughput, utilization.

Viewing 7 reply threads
  • The forum ‘Cloverleaf’ is closed to new topics and replies.

Forum Statistics

Registered Users
5,117
Forums
28
Topics
9,292
Replies
34,435
Topic Tags
286
Empty Topic Tags
10