Obtain thread status from Command Line

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Obtain thread status from Command Line

  • Creator
    Topic
  • #51818
    Jerry Tilsley
    Participant

      All,

      I would like to know how to get the full thread status from the Command Line outside of TCL.  I would like to get the last read, last write, etc.

      Thanks,

      Jerry

    Viewing 4 reply threads
    • Author
      Replies
      • #71840
        James Cobane
        Participant

          Jerry,

          This information is available via the MSI Tcl extensions within Cloverleaf.  You can take a look in the ‘Reference’ volume.  There you will find the ‘Tcl Extensions’ and you can look under the  MSI References.  Attached is a proc that we created that probably does what you want.  Just rename/modify as needed for your environment.

          Hope this helps.

          Jim Cobane

          Henry Ford Health

        • #71841
          Jerry Tilsley
          Participant

            I found the true command line for this so that it can be done without TCL, which at this time is what I need.

            Code:

            hcicmd -t d -p hcimonitord -c “statusrpt {}”

            I appreciate your reply though!

          • #71842
            James Cobane
            Participant

              Cool.  I was unaware of that option; nice little tidbit of information.

              Jim Cobane

              Henry Ford Health

            • #71843
              Charlie Bursell
              Participant

                The difference being with hcicmd the monitord must be running.  Not so with the msi commands.

                Whichever one suits your needs  ðŸ˜€

              • #71844
                Russ Ross
                Participant

                  A long time ago in the days of slow modems, I use to get thread stats via the hcimsiutil command because the bandwith remotely was to slow to use the GUIs.

                  Here is an example usage

                  hcimsiutil -dd thread_name

                  You can pipe this to grep if you want to only view a specific item of interest.

                  Here is a sample of doing

                  hcimsiutil -dd ib_pathnet_8015

                  Code:

                  Thread Data Section for: ib_pathnet_8015

                  Scn Addr     : 0x40002e70
                  Scn Version  : 1
                  Scn Updated  : Wed Jun 16 23:45:02 2010

                  Sample Taken  : Thu Jun 17 13:27:47 2010
                  Sample Added  : Thu Jun 17 13:27:50 2010
                  Start Time    : Sat May 15 18:11:52 2010
                  Stop Time     : never
                  Proto Status  : 2
                  Proto Flags   : 0
                  Proto Last Rd : Thu Jun 17 13:27:50 2010
                  Proto Last Wt : Thu Jun 17 13:27:50 2010
                  Proto Err Time: never
                  Proto Err Msg :
                  Xlate Count   : 152610
                  Forward Count : 0
                  Error Count   : 0
                  IB Latency    : 2635.017
                  OB Latency    : 364.884
                  Total Latency : 365.144
                  Msgs In       : 76305
                  Msgs Out      : 76305
                  Bytes In      : 55611741
                  Bytes Out     : 5188740
                  IB Pre-SMS QD : 0
                  IB Post-SMS QD: 0
                  OB Pre-SMS QD : 0
                  OB Data QD    : 0
                  OB Reply QD   : 0
                  Pre-Xlate QD  : 0

                  Inter-thread Statistics

                  Sent    Recvd   pxqd X time  T on Q  Latency Thread name
                  ——- ——- —- ——- ——- ——- ——————————-
                   76305       0    0 377.359   0.000   0.000 jsfw_12302_lis_2_out            
                       0       0    0   0.000   0.000   0.000 ob_pdms                        
                       0       0    0   0.000   0.000   0.000 jsfw_12303_lis_2_out            
                   76305       0    0 333.966   0.000   0.000 js_12301_lis_1_out              
                       0   76305    0   0.000 226.408 365.144 ib_pathnet_8015                
                       0       0    0   0.000   0.000   0.000 ib_ap_results_8066              

                  It’s been so long ago I almost forgot how I did this because with the remote bandwidths avaiable now days I use the stas in the IDE/GUI.

                  Russ Ross
                  RussRoss318@gmail.com

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