2 Replies Latest reply on Jun 17, 2020 3:57 AM by Alan Marks

    Logging which MRL(.WIC) file is used

    Alan Marks
      Share This:

      Hi,

       

      I'd like to track, for curiosity and possibly documentation purposes, which MRL(.WIC) files are used as an event makes it's way through a cell.  Any suggestions ?

       

      Thanks in advance,

      Alan

        • 1. Re: Logging which MRL(.WIC) file is used
          Philippe Plomteux

          Alan,

           

           

           

          Generally speaking there are various ways to track rules execution – from which you can easily retrieve the containing file.

           

           

           

          A couple of pointers :

           

          *     You can enable rules tracing (mcontrol -n CellName tracerule on|off) to capture trace information about the rules execution – it goes in the cell standard trace.

          *     If you want to “log” execution of the rules in your events, you can add a custom slot (eg Processing_History) to the event class and edit rules. Most rules will support adding statements like follows, which will cause all your meaningful rules log an entry in the event itself:

           

           

           

          $rule=listgetelt(strtolist(action_requestor()," "),2);

           

          $cellrule=cellinfo(CellName) || ":" || $rule;

           

          add_to_list($cellrule,$EV.Processing_History);

           

           

           

          *     If you mean to document your KB, there are a couple of scripts around (no pointer handy here) to provide some basic documentation on the rules, execution order, etc. This works “offline” of the live cell however.

          *     If you mean to track potential performance bottlenecks, use “mcontrol -n CellName profiling on|off”

           

           

           

          Does that help ?

           

           

           

           

           

          De : Alan Marks <communities_update@bmc.com>

          Envoyé : mardi 16 juin 2020 16:39

          À : Philippe Plomteux <pplomteux@yahoo.com>

          Objet :  - Logging which MRL(.WIC) file is used New message on BMC Communities

           

           

           

           

           

           

          <https://communities.bmc.com/> BMC Communities

           

           

           

          Logging which MRL(.WIC) file is used

           

           

          created by  <https://communities.bmc.com/people/alan.marks?et=watches.email.thread> Alan Marks in TrueSight Infrastructure Mgmt -  <https://communities.bmc.com/message/876413?et=watches.email.thread#876413> View the full discussion

          1 of 1 people found this helpful
          • 2. Re: Logging which MRL(.WIC) file is used
            Alan Marks

            Hi Philippe,

             

            Thanks for this, its very helpful and gives me a great place to start.

             

            Regards

            Alan