Threads on Hold

  • Creator
    Topic
  • #49735
    Chris Williams
    Participant

    Is there a variable we can access that indicates a thread is on hold without having to look at the gui? It’s available as an alert condition so it must be somewhere.

    Thanks.

Viewing 11 reply threads
  • Author
    Replies
    • #63336
      John Hamilton
      Participant

      I have looked everywhere trying to find it. And have asked how to get access to it. It it out there somewhere. I never found it.  

      If you get an answer please make sure to post it.

      Thanks.

    • #63337
      Keith McLeod
      Participant

      I had asked this question while at the user’s group.  The only place that we found any indication was if you run hcimsiutil -dd .  In the output there is a flag called Proto Flags that presents as follows:

      On Hold:

      Proto Flags   : 0x1

      Not On Hold

      Proto Flags   : 0

      Hope this helps….  If you find another location please let me know.

    • #63338
      Tom Rioux
      Participant

      You could try doing a search on the process log files to return any line that has “phold_obd”.  If a thread is put in on hold it will place the entry

      Received command: ‘ phold_obd’

      Doing ‘phold_obd’ command with args ‘

      That may or may not help you in what you are attempting to do.

      Thanks….Tom Rioux

    • #63339
      Jim Kosloskey
      Participant

      Chris,

      From Tcl you can reference the msistats and get the thread status therein.

      The Programmer’s Reference Guide gives some info.

      Jim Kosloskey

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

    • #63340
      Richard Hart
      Participant

      Jim.

      I could not find a key within the list returned by msiGetStatSample that provides a status.

      Which one did you mean?

      Thanks.

    • #63341
      Jim Kosloskey
      Participant

      Richard,

      I think it is the pstatus field.

      It has been a while since I have done anything with this but I think that is where I found that information.

      One thing everyone needs to keep in mind about msistats (I think this is stated in the manual): these stats are intended for internal use (meaning Quovadx) and thus are subject to change without notice.

      Jim Kosloskey

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

    • #63342
      John Hamilton
      Participant

      I will check that again. I did look at the pstatus field. But I did not see any difference between hold and not on hold. It has been a long while maybe it has changed.

    • #63343
      Chris Williams
      Participant

      PSTATUS is unaffected by the hold condition. It doesn’t seem to be anywhere in the msiGetStatSample output, though that would be the logical place.

    • #63344
      Tom Rioux
      Participant

      The pstatus just tells you whether it is up or down.  Unless I’m overlooking it, I don’t see anywhere in the msistats that references if the thread is on hold or not.

    • #63345
      John Hamilton
      Participant

      That is what I thought. But things change.

      Thanks for saving me the time of going out there and looking it up.

    • #63346
      Keith McLeod
      Participant

      You might want to try something like:

      set thdname

      set msi [exec hcimsiutil -dd $thdname]

      regexp -line -nocase {^proto flags.*?$} $msi flag

      regexp — {d+$} $flag flagnum

      set flagnum [format “%d” $flagnum]

      if {$flagnum == 1} {

      echo “${thdname} is on HOLD!!!”

      } else {

      echo “${thdname} is NOT on HOLD!!!”

      }

      flagnum will either have a value of 0 or 1  depending whether it is on hold or not..

    • #63347
      Richard Hart
      Participant

      Cl version 5.6 contains the ‘PFLAGS’ key in the msiGetStatSample ouput.

      Thread {ALIVE 1} {LASTEXTRACT 1205288649} {LASTUPDATE 1205288669} {START 1205285205} {STOP 0} {PSTATUS opening} {PFLAGS 0} …

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

Forum Statistics

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