Writing and Debugging Scripts in MOM
You may or may not be aware the MOM 2005 Resource Kit contains a new utility for debugging MOM Scripts called ResponseTest. This tool allows you to test the syntax of your MOM scripts from any machine where the MOM agent is running. ResponseTest has 2 modes: Default Mode and Run Mode.
The default mode outputs script results, including any error message, to responsetestoutput.xml in the same directory as the responsetest utility......This mode is a simulation only doesn't actually perform any action within MOM. NOTE: Bear in mind this is still not foolproof as scripts are running in the context of the user account with which you're logged in rather than the action account.
You can also take debugging a step further by performing Active Debugging, which involves attaching a remote debugger to the MOMHost process through Visual Studio. If you’d like to learn more about MOM script authoring and debugging, check the 4 part series “Scripting MOM” at the MS website. Parts 3 and 4 were recently published after the release of the refresh of the MOM 2005 Resource Kit. Part 3 and 4 were recently released in conjunction with the release of the refresh to the MOM Reskit. Here is an overview of each of the articles in the series:
Labels: Extending MOM, Scripts |










Comments on "Writing and Debugging Scripts in MOM"
post a comment links to this post