Kill_msg.tcl Help

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Kill_msg.tcl Help

  • Creator
    Topic
  • #53608
    santiago guzman
    Participant

      I’ve recently got a hold of the kill_msg.tcl file. The purpose of me using this file is to send all the ADT & RDE messages in a particular interface except for A05’s. After picking the file in the Proc: drop down box, I set my Args as:

      {PASSCOND ~REGEXA05} {SEGNAME MSH} {FIELDNUM 9} {SUBFIELDNUM 1}

      But it’s still not filtering out the messages. Any suggestions?

      Misc Info/Set up:

      Version 5.8.2 of Cloverleaf

      HCI_static_route_

      –>raw -> vendor1_adtrde_vendor2_out

    Viewing 1 reply thread
    • Author
      Replies
      • #78276
        Levy Lazarre
        Participant

          Hello, Santiago

          The trick is to remember that the MSH segment is different from all other segments. Since we split on the field separator, which is field 1 of an MSH segment, all other fields are skewed back by one in the count. For example, field 9 (Message Type) is actually extracted at position 8 in kill_msg.

          In other words, just change your argument from

          Quote:

          {FIELDNUM 9}

           to

          Quote:

          {FIELDNUM 8}

          and your filter will start working as intended.

          This is only for the MSH segment. Good luck in your endeavor.

        • #78277
          santiago guzman
          Participant

            Its working now, thanks for the help.

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