Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Use the ScriptContext object to access and manipulate MOM alerts, events, performance data, and variable sets.
The ScriptContext object is automatically instantiated by the MOM scripting environment. The ScriptContext object can be considered the root object for MOM scripts. The ScriptContext object is capable of creating all of the other product objects by using methods, such as ScriptContext.CreateAlert, or through the return value of properties, such as the ScriptContext.Alert property.
Name | Description |
---|---|
Generates a new Alert object. |
|
Generates a new DiscoveryData object. |
|
The CreateEvent method generates a new Event object. |
|
Generates a new PerfData object. |
|
When called in a response, this method writes messages to a text file for debugging purposes. |
|
Gets the specified override for the current rule. |
|
Gets the ScriptState object. |
|
Determines whether the object provided to the script by MOM is an Alert object. |
|
Determines whether the object provided to the script by MOM is an Event object. |
|
Determines whether the object provided to the script by MOM is a PerfData object. |
|
Stops the running of the script and exits. |
|
Suspends the running of the script for the specified number of seconds. |
|
Submits an Alert, Event, PerfData, or DiscoveryData object to the MOM data stream. |
Name | Description |
---|---|
Gets the Alert object that caused MOM to invoke the script. |
|
Gets the Event object that caused MOM to invoke the script. |
|
Checks whether the computer is monitored without a MOM agent or not. |
|
Gets a Boolean value indicating whether the computer is running as a Windows Server Cluster server or not. |
|
Gets the name of the management group that deployed the current response. |
|
Gets the name of the current script. |
|
Returns the processing rule that invoked the current response script. |
|
Gets a VarSet object that contains the parameters sent from MOM when the script was invoked. |
|
Gets the PerfData object that caused MOM to invoke the script. |
|
Gets the name of the computer being monitored. |
|
Gets the identity of the target computer for the current script response. |
|
Gets the target computer's NetBIOS name. |
|
Gets the target computer's NetBIOS domain name. |
|
Gets the target computer's fully-qualified domain name. |
Platforms: Requires Windows 2000 or later
Version: Requires MOM 2000 or later