Huntland Services Ltd

Tel: +44 (0)1392-490518
Fax: +44 (0)1392-428003
Enquiries@huntland.co.uk

Mass Rule Creation Using Message Dlls

Back Download The Script

Introduction

Anybody who has manually created rules in Mom will know it's a tedious process. Normally administrators will make use of the 16,000 assorted rules supplied through the default and Microsoft Applications Management Packs.  On the other hand there may be occasions where you want to go your own way.  You can either copy and paste rules from existing processing rule groups or you can do the following, which is to import the event rule logic directly out of a message dll file.  This is astonishingly powerful but there are no references to it in the Mom literature.  A bit of keeping mum about mom.

Importing a Message Dll

  1. Create a new Processing Rule Group e.g. Test
  2. Right click the new Processing Rule Group and select Import Dynamic Link Library
  3. The ImportDll tools should automatically connect to your database but if not, Select Database from the File menu
  4. Once connected, select Browse from the File menu
  5. This allows you to select any computer and shows a list of the Win2k event logs present on this machine.  Select your server
  6. Double click the Application Log to expand a list of all the message Dlls that are registered to write to this log file
  7. Select Dr Watson and click Open.  All the possible messages that Dr Watson can write to the Application log are listed.  This can be very useful if you are trying to workout which parameter in the message is which.
  8. Select Event Manager from the Import menu
  9. De-select Interactive Import and click OK.  The import may take a few minutes.
  10. When the message confirming the import is complete appears, close the ImportDll tool and expand the Event rules under your Processing Rule Group.  You should have approximately 48 new rules all correctly configured.  Fortunately they are all disabled by default.  You can selectively enable them as required.  Try this out on a few other message dll's . The results are amazing!!