Alert to restart thread if queue>10

Clovertech Forums Cloverleaf Alert to restart thread if queue>10

  • Creator
    Topic
  • #122599
    Darrell Glover
    Participant

      I need to create an alert to restart a thread if the queue increases past 10 messages.  I tried the command below, but it is not working:

      hcicmd -p ADT -c “VRAD_ORM_OB pstop”;sleep 20;hcicmd -p  ADT -c “VRAD_ORM_OB pstart”

       

      I spoke with a Cloverleaf services resource and he recommended adding cmd / at the beginning, but that is also not working:

      cmd /c hcicmd -p ADT -c “VRAD_ORM_OB pstop”;sleep 20;hcicmd -p  ADT -c “VRAD_ORM_OB pstart”

       

      The alert fires, but the thread does not restart.  I found a post on these forums from several years ago stating that there was a bug in Cloverleaf that prevented this from working if using Windows (Linux worked), but I am hoping that it should have been fixed in the newer versions (20+).  Any ideas?

      Attachments:
      You must be logged in to view attached files.
    Viewing 3 reply threads
    • Author
      Replies
      • #122601
        Jerry Sawa
        Participant

          I do and alert with “prestart”.

          Instruction are in this linked topic.          Randomly not receiving ACK’s – Clovertech

        • #122602
          Peter Heggie
          Participant

            Can you run that whole text from the command line to see if it works outside of an Alert context?

            hcicmd -p ADT -c “VRAD_ORM_OB pstop”;sleep 20;hcicmd -p  ADT -c “VRAD_ORM_OB pstart”

            or

            cmd /c hcicmd -p ADT -c “VRAD_ORM_OB pstop”;sleep 20;hcicmd -p  ADT -c “VRAD_ORM_OB pstart”

            ?

            If not, can you just try one of those commands, ex: cmd /c hcicmd -p ADT -c “VRAD_ORM_OB pstop” ?

            do you have to setsite first?

             

            Peter Heggie
            PeterHeggie@crouse.org

          • #122603
            David Barr
            Participant

              I asked AI about it, and it said this should work:

              cmd /c “hcicmd -p ADT -c “VRAD_ORM_OB pstop” & timeout /t 20 /nobreak & hcicmd -p ADT -c “VRAD_ORM_OB pstart””

            • #122604
              Peter Heggie
              Participant

                do you have to escape the inner quotes? does it work from the command line?

                Peter Heggie
                PeterHeggie@crouse.org

            Viewing 3 reply threads
            • You must be logged in to reply to this topic.