Homepage › Clovertech Forums › Cloverleaf › reset stats for status thread
- This topic has 19 replies, 8 voices, and was last updated 1 year, 1 month ago by Rob Lindsey.
-
CreatorTopic
-
August 23, 2023 at 9:48 am #120755petitPadawanParticipant
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.
-
CreatorTopic
-
AuthorReplies
-
-
August 23, 2023 at 9:52 am #120757Gene MillardParticipant
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 -
August 23, 2023 at 9:53 am #120758Paul BishopParticipant
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 -
August 23, 2023 at 9:53 am #120759James CobaneParticipant
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.
-
August 23, 2023 at 9:57 am #120761Jim KosloskeyParticipant
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.
-
August 23, 2023 at 11:10 am #120762petitPadawanParticipant
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. -
August 23, 2023 at 11:24 am #120765Jim KosloskeyParticipant
What release of Cloverleaf?
email: jim.kosloskey@jim-kosloskey.com 29+ years Cloverleaf, 59 years IT - old fart.
-
August 31, 2023 at 10:40 am #120820petitPadawanParticipant
version 6.1
-
August 31, 2023 at 10:45 am #120822Jim KosloskeyParticipant
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.
-
August 31, 2023 at 10:47 am #120823petitPadawanParticipant
thank you very much
-
August 31, 2023 at 11:00 am #120824petitPadawanParticipant
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.
-
August 31, 2023 at 11:09 am #120826Jim KosloskeyParticipant
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.
-
August 31, 2023 at 11:13 am #120827petitPadawanParticipant
Thank you, my manager said that this does not affect performance in any way, and therefore there is no point in taking the action.
-
August 31, 2023 at 11:43 am #120828Jim KosloskeyParticipant
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.
-
September 4, 2023 at 10:21 am #120833Santhosh Narayanan NairParticipant
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) -
September 4, 2023 at 11:11 am #120834Jim KosloskeyParticipant
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.
-
September 5, 2023 at 6:15 am #120837Santhosh Narayanan NairParticipant
Hi Jim ,
My TCL code was running in engine .
-
-
September 4, 2023 at 11:10 pm #120835Charlie BursellParticipant
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
-
September 5, 2023 at 5:59 am #120836Santhosh Narayanan NairParticipant
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
-
-
September 5, 2023 at 11:44 am #120840Rob LindseyParticipant
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
-
-
AuthorReplies
- You must be logged in to reply to this topic.