Adding Scripts to MOM
As requested, here is a quick guide on adding VBScripts into MOM 2005.
1) In the Administration Console, browse to Management Packs - Scripts and Create a new script.
2) Paste the new script into the script box and create any parameters that are defined in the script (parameter creation will be explained in a later article)
3) Now that the script is in MOM, you need to create a timed event rule to launch the script. I recommend here that you create a custom Rule Group for this. Attach the Ruke Group to a new or exisiting Computer Group (containing the agents that you want to run the script on).
4) Create an Event rule in this new Rule Group. Set the Data Provider to 'Timed Event' (you can use an exisiting one or create your own here).
5) Set the Response to the rule (on the Responses Tab in the rule creation wizard) to 'Launch a Script' and select the script that you just added to MOM.
6) If your script creates MOM events, you could not create another event rule to generate a MOM alert when the event is detected but this depends entirely on what your script is doing.
I'll be writing a more in depth article about creating scripts in MOM 2005 over the coming weeks followed by an article on scripting in PowerShell for Operations Manager 2007.
Andy