› Clovertech Forums › Cloverleaf › reset stats for status thread
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 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
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
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
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 30+ years Cloverleaf, 60 years IT – old fart.
thank you for your help, the commands work, but I can’t find in the GUI the reset button statistic
What release of Cloverleaf?
email: jim.kosloskey@jim-kosloskey.com 30+ years Cloverleaf, 60 years IT – old fart.
version 6.1
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 30+ years Cloverleaf, 60 years IT – old fart.
thank you very much
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
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 30+ years Cloverleaf, 60 years IT – old fart.
Thank you, my manager said that this does not affect performance in any way, and therefore there is no point in taking the action.
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 30+ years Cloverleaf, 60 years IT – old fart.
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)
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 30+ years Cloverleaf, 60 years IT – old fart.
Hi Jim ,
My TCL code was running in engine .
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
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
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