automatic bouncing thread

Homepage Clovertech Forums Read Only Archives Cloverleaf Cloverleaf automatic bouncing thread

  • Creator
    Topic
  • #52449
    Ran Yan
    Participant

    I have some problems in writing automatic bouncing thread when it is dead.

    in command line, when I type hcicmd -p processA -c “from_singlethread pstop”, the thread stops, then I type hcicmd -p processA -c “from_singlethread pstart”, the thread starts.

    I am trying to embed this command in Alert. When certain alert criteria meets, then execute exec hcicmd -p processA -c “from_singlethread pstop”and then exec hcicmd -p processA -c “from_singlethread pstart”. However, it does not work. Do you have any idea what’s wrong?

Viewing 3 reply threads
  • Author
    Replies
    • #74239
      James Cobane
      Participant

      Ran,

      I would do this as 1 exec action:

      exec hcicmd -p processA -c “from_singlethread pstop”;hcicmd -p processA -c “from_singlethread pstart”

      The semi-colon treats these as separate commands within the same exec action.  The second command won’t execute until the first completes.  I think in your configuration, the ‘start’ may be executing before the ‘stop’ is complete.

      Hope this helps.

      Jim Cobane

      Henry Ford Health

    • #74240
      Ran Yan
      Participant

      Actually I tried to only use exec hcicmd -p processA -c “from_singlethread pstop”, but the thread did not stop, while I type this command in command line, the thread stops immediately.

      James Cobane wrote:

      Ran,

      I would do this as 1 exec action:

      exec hcicmd -p processA -c “from_singlethread pstop”;hcicmd -p processA -c “from_singlethread pstart”

      The semi-colon treats these as separate commands within the same exec action.

    • #74241
      James Cobane
      Participant

      Ran,

      Instead of double quotes, try enclosing the -c parameter in single quotes:

      exec hcicmd -p processA -c ‘from_singlethread pstop’;hcicmd -p processA -c ‘from_singlethread pstart’

      This is how we have our alerts defined that are bouncing threads.  You might want to look in the hcimonitord.log to see if there are any errors when attempting the exec action.

      Jim Cobane

      Henry Ford Health

    • #74242
      Ran Yan
      Participant

      James Cobane wrote:

      Ran,

      Instead of double quotes, try enclosing the -c parameter in single quotes:

      exec hcicmd -p processA -c ‘from_singlethread pstop’;hcicmd -p processA -c ‘from_singlethread pstart’

      This is how we have our alerts defined that are bouncing threads.

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

Forum Statistics

Registered Users
5,129
Forums
28
Topics
9,301
Replies
34,447
Topic Tags
288
Empty Topic Tags
10