Share via


Scripting Overview

Microsoft Operations Manager 2005 (MOM) provides scripting capabilities for flexible, customized monitoring and response to events, alerts, and performance data. You can use the MOM scripting interface or standard Microsoft scripting languages to create scripts that MOM can run. Scripts can extend MOM event management functions and provide additional data collection capabilities. MOM scripts can run as a response to events or alerts, or they can run on a scheduled basis.

The MOM scripting feature allows you to extend the capabilities of rules and provide specialized actions to respond to an event, alert, or performance threshold. Rules can also be configured to run on a scheduled basis.

MOM can run scripts in association with rules. Because MOM is rules-based, many problems can be detected and handled without using scripts. Scripting provides the advanced capabilities sometimes required for detecting and handling problems.

Note Note   

Use of the objects described in the Helper objects section is strongly discouraged. In most cases, identical or similar functionality is available through existing Windows Management Instrumentation (WMI) classes or COM libraries included with Windows or other Microsoft products. For more information, see Using Operating System APIs in Scripts.

MOM scripts run within an instance of the MOM Host process. This instance of the MOM Host process runs under the MOM Action Account. To control the security privileges for scripts, you can configure the MOM Action Account using the SetActionAccount tool.

Scripts are stored in the MOM database and distributed with rules by the Agent Manager. Management Packs can contain scripts created for a specific application or environment. You can open the source code for scripts included with MOM Management Packs from the Scripts node of the MOM Administrator console. You can view the source code on the Script tab of the script's Properties dialog box.

Note Note   

For more information about creating custom Management Packs, see the MOM Management Pack Development Guide.