reset stats for status thread

Homepage Clovertech Forums Cloverleaf reset stats for status thread

  • Creator
    Topic
  • #120755
    petitPadawan
    Participant

    hello,
    I want to clean up the use of cloverleaf,
    when I click on status, on a thread,
    I have very large numbers for the following lines:
    msgs out, bytes out, xlated, …
    I would like to reset these counters,
    is there a command to do this on a thread,
    and then on an entire site.
    Thank you for your help.

    • This topic was modified 1 year, 1 month ago by petitPadawan.
Viewing 16 reply threads
  • Author
    Replies
    • #120757
      Gene Millard
      Participant

      This does the entire site

      hcimsiutil -Z    reset statistics on thread status

      hcimsiutil -X    reset statistics without resetting times hciss -s

      The Guthrie Clinic
      Sayre, PA

    • #120758
      Paul Bishop
      Participant

      Look at the hcimsiutil command.  It has options to zero just the counts or the counts and the times, and you can do it by thread, process or the whole site.

      Paul Bishop
      Carle Foundation Hospital
      Urbana, IL

    • #120759
      James Cobane
      Participant

      To reset the stats on a thread, the command is:

      hcimsiutil -zt threadnamehere

      To reset all threads in a site:

      hcimsiutil -Z

      If you type hcimsiutil -h at the command prompt, you can get a list of options

      Jim Cobane – Henry Ford Health

      • This reply was modified 1 year, 1 month ago by James Cobane.
    • #120761
      Jim Kosloskey
      Participant

      If you want to do this in Tcl or a script, check out hcimsiutil in help.

      From the NetMonitor, right mouse button click on process (for all the threads in the process) or an individual thread, then select ‘full’, then ‘reset statistics’.

      email: jim.kosloskey@jim-kosloskey.com 29+ years Cloverleaf, 59 years IT - old fart.

    • #120762
      petitPadawan
      Participant

      thank you for your help, the commands work, but I can’t find in the GUI the reset button statistic

      • This reply was modified 1 year, 1 month ago by petitPadawan.
      Attachments:
      You must be logged in to view attached files.
    • #120765
      Jim Kosloskey
      Participant

      What release of Cloverleaf?

      email: jim.kosloskey@jim-kosloskey.com 29+ years Cloverleaf, 59 years IT - old fart.

    • #120820
      petitPadawan
      Participant

      version 6.1

    • #120822
      Jim Kosloskey
      Participant

      Yes I don’t believe that release has it at the thread level but it might at the process level. In any case, if not at the GUI, hcimsiutil is what you need.

      email: jim.kosloskey@jim-kosloskey.com 29+ years Cloverleaf, 59 years IT - old fart.

    • #120823
      petitPadawan
      Participant

      thank you very much

    • #120824
      petitPadawan
      Participant

      could you tell me if there is an interest in terms of performance on cloverleaf processes on the fact of resetting statistics?
      we have stats that have never been reset for 5 years

      • This reply was modified 1 year, 1 month ago by petitPadawan.
    • #120826
      Jim Kosloskey
      Participant

      If your question is does resetting the stats affect performance, I would say very little since the stats are memory resident. Of course, there is some consumption as the reset runs.

      If your question relates to does the increasing stats cause a performance issue, I would say no.

      Others may have more pertinent information.

      email: jim.kosloskey@jim-kosloskey.com 29+ years Cloverleaf, 59 years IT - old fart.

    • #120827
      petitPadawan
      Participant

      Thank you, my manager said that this does not affect performance in any way, and therefore there is no point in taking the action.

    • #120828
      Jim Kosloskey
      Participant

      Well, the statistics can have value when analyzing integrations and also in troubleshooting. So, it could be helpful to periodically reset the statistics.

      email: jim.kosloskey@jim-kosloskey.com 29+ years Cloverleaf, 59 years IT - old fart.

    • #120833

      set thread_details [exec hciconnstatus -c “RIS_HIS_OB”]

      puts $thread_details

       

      I was trying to get the details of the thread using the above command in tcl code (Cloverleaf), but it throws the error below.But the same code is working and giving output in cloverleaf shell window. Anyone please advise me for the solution .

      [0:TEST] Tcl error:
      msgId = message0
      proc = ‘test’
      args = ”
      result = ‘couldn’t execute “hciconnstatus”: no such file or directory’
      errorInfo: ‘
      couldn’t execute “hciconnstatus”: no such file or directory
      while executing
      “exec hciconnstatus -c RIS_HIS_OB”
      (procedure “test” line 35)

    • #120834
      Jim Kosloskey
      Participant

      Is your Tcl code running in the engine or at the command line?

      If at the command line, it is possible the appropriate environment variables are not set prior to execution for the O/S to locate hciconnstatus.

      email: jim.kosloskey@jim-kosloskey.com 29+ years Cloverleaf, 59 years IT - old fart.

    • #120835
      Charlie Bursell
      Participant

      What OS?  In Windows hciconnstatus is called via a bat script which in turn calls a Tcl script.  So in Windows you may get by with something like:
      set x [exec hciconnstatus.bat  -c <thread>]

      In Linux or Unix you call the tcl script direct but then must capture stdout by doing something like:
      set x [hciconnstatus > $foo]

      Then set myvar  [read_file $foo] ; file delete foo

      In any case you still have to parse the output.

      If you are really interested in doing this from Tcl, make a copy of the $HCIROOT/bin/hciconnstatus file and modify to what you want to do

       

      • #120836

        Hi Charlie and Jim

        It is running in windows .I write TCL proc and calling that TCL proc in alert configuration for  managing the threads .

        I identified the issue , it was due to a file named hciconnstatus.bat file was not found in the path [C:\cloverleaf\cis19.1\integrator\bin  ]. It was an older version of cloverleaf .I  created the file in the path and hence it is resolved.

        hciconnstatus.bat   

        ———————————–

        @echo off
        REM COPYRIGHT 2019 INFOR. ALL RIGHTS RESERVED.
        %HCIROOT%/bin/hcitcl.exe %HCIROOT%/bin/hciconnstatus.htc %*

         

        Thanks for your support

    • #120840
      Rob Lindsey
      Participant

      As for the Stats:  We reset them every night.  It lets us know what we do from day to day.   We analyze trends and such.  It also lets us know when a system goes off the rails and sends us too many or too few.  There is a lot to be said about the Stats.

       

      Rob

Viewing 16 reply threads
  • You must be logged in to reply to this topic.

Forum Statistics

Registered Users
5,129
Forums
28
Topics
9,301
Replies
34,447
Topic Tags
288
Empty Topic Tags
10