Counting Active Threads

Homepage Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Counting Active Threads

  • Creator
    Topic
  • #50976
    Lori Owen
    Participant

    Is there a command to count the number of active threads within a site? We are purchasing additional threads and need a count of our current threads (without having to manually count them).

    Thanks!

    Lori

Viewing 9 reply threads
  • Author
    Replies
    • #68259
      Ron Archambault
      Participant

      You could use tcl.

      netcfgLoad

      netcfgGetConnCount

      But, you would have to do a setsite first, for each site you have.

    • #68260
      Jim Kosloskey
      Participant

      Not constrained by ‘Active threads’, I have what is probably a basic question:

      What is the definition of an ‘Active thread’?

      Is it the number of threads actually started or the number defined?

      If it is the number started, that number could change from day to day (or even hour to hour) if Test is included.

      I would think using something like hciconnstatus could give you that information, or you could write Tcl accessing the msistats.

      If it is the number defined, then as Ron indicated you could go after the NetConfigs or once again I guess maybe use hciconnstatus and interpret the output differently.

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

    • #68261
      Ron Archambault
      Participant

      Jim, there’s a new license option that uses thread counts for inbound and outbound connections. I think it keeps the initial cost down for some smaller sites. Which allows healthvison to be a better fit for them.

    • #68262
      Jim Kosloskey
      Participant

      Ron,

      Thanks – I was aware of that licensing option but I just don’t know the exact meaning of an ‘Active thread’.

      I know some of the vendors that use set count licensing use number of users actually using the system (you can have many as you want with the software client but maybe only 10 can be logged in at once), others limit the number of licenses and if some aren’t logged in then you are paying licenses for non-use.

      I was just curious which way this is done.

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

    • #68263
      Steve Carter
      Participant

      Not knowing exactly what you mean by ‘active’ threads, you can simply do the following to get the number of threads in all of your sites:

      $ grep ‘protocol ‘ $HCIROOT/*/NetConfig | wc -l

    • #68264
      Lori Owen
      Participant

      Forget the ‘active’ – just need to get the number of threads we currently have in our production and test sites.

      Thanks for your help.

    • #68265
      Lori Owen
      Participant

      Thanks Ron….the tcl commands were what we needed.

    • #68266
      Steve Pringle
      Participant

      Where are the scripts below located?  

      netcfgLoad

      netcfgGetConnCount

      thanks,

      Steve

    • #68267
      Mark Thompson
      Participant

      They are in $HCIROOT/tcl/lib/cloverleaf/nci.tlib

      - Mark Thompson
      HealthPartners

    • #68268
      Steve Pringle
      Participant

      hmmm… all sorts of stuff in there!

      thanks,

      Steve

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

Forum Statistics

Registered Users
5,126
Forums
28
Topics
9,296
Replies
34,439
Topic Tags
287
Empty Topic Tags
10