Resending a specific message via command line

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Resending a specific message via command line

  • Creator
    Topic
  • #52198
    Ian Morris
    Participant

      Does anyone know how I can resend a message from the command line if I have one message contained in a text file and I know the sending thread/process?

    Viewing 5 reply threads
    • Author
      Replies
      • #73379
        Josh Cole
        Participant

          I am brand new to this CL board, but I was just reading through the guide and ran into this. I think it is exactly what you were looking for, but it seems a little scary as you are sending the search command and send command at the same time. I would definitely test this out first. Hope it helps.

          Sorry about the bad formatting:

          hcismat [-i ] ?-pri ?

          ?-reply?

          Where:

          -i is the input filename.

          is exactly one of the following:

                    -orut Resends unselected messages to thread .

                    -oruf Resends unselected messages to file .

                    -orst Resends selected messages to thread .

                    -orsf Resends selected messages to file .

                    -ocu Removes unselected messages from input file.

                    -ocs Removes selected messages from input file.

          -pri is the resend priority.

          -reply resends selected messages as REPLY instead of DATA.

          is exactly one of:

                    -ibpre Resends messages as inbound pre-TPS.

                    -ibpost Resends messages as inbound post-TPS.

                    -obpre Resends messages as outbound pre-TPS.

                    -obpost Resends messages as outbound post-TPS.

          is any valid grouping of the following:

                    -sds Starts at date and time .

                    -sde Ends at date and time .

                    -sdn Nots the meaning of the date search.

                    -sms Starts at message ID .

                    -sme Ends at message ID .

                    -smn Nots the meaning of the mid search.

                    -ss Sends messages only from .

                    -ssn Nots the meaning of the source host search.

                    -sall Selects all messages in the input file.

        • #73380
          Ian Morris
          Participant

            For example, when I resend a message via SMAT I see the following output:

            Code:


            hcicmd -p adt -c “Inthlth_ADT_TCPIP_send resend ob_post_tps data 5120 /opt/healthvision/cis5.8/integrator/temp/tmp7512e159a135e3b1__e794dad_12d718165ee__7ffe_12946895171824 len10 /opt/healthvision/cis5.8/integrator/temp/tmp7512e159a135e3b1__e794dad_12d718165ee__7ffe_12946895171895”

            But, lets say I don’t have (or don’t want) to use a .idx and .msg file.  Instead, I have 1 HL7 message in a .txt file.  Any idea how I can resend that message?

            Thank you,

            Ian

          • #73381
            Keith McLeod
            Participant

              Try something like:

              hcicmd -p processname -c ‘threadname resend ob_post_tps data 5120 /hci/qdx5.7/integrator/site_test/data/yourfilename len10’

              You may have to adjust some of the options.  This puts it on the outbound post tps thread queue.

            • #73382
              Ian Morris
              Participant

                Keith McLeod wrote:

                Try something like:

                hcicmd -p processname -c ‘threadname resend ob_post_tps data 5120 /hci/qdx5.7/integrator/site_test/data/yourfilename len10’

                You may have to adjust some of the options.

              • #73383
                Jim Kosloskey
                Participant

                  Ian,

                  You can also go to the NetMonitor, turn on the Command Output (Ctrl E or in the View menu), then do a resend set up exactly as you want it. The resulting command will be displayed in the Command Output pane.

                  You can then copy and paste that to wherever it makes sense for future use.

                  email: jim.kosloskey@jim-kosloskey.com 30+ years Cloverleaf, 61 years IT – old fart.

                • #73384
                  Ian Morris
                  Participant

                    It worked!  Here’s my final command.  The one part I had to adjust was changing “len 10” to “eof”

                    Code:


                    hcicmd -p adt -c ‘summit2_adt_send resend ob_post_tps data 5120 /opt/healthvision/cis5.8/integrator/summit_health/exec/processes/adt/MOVE/resend.txt eof’

                    Response:
                    Placed 1 msgs from file /opt/healthvision/cis5.8/integrator/summit_health/exec/processes/adt/MOVE/resend.txt into the ob_post_tps data queue

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