Functions and Configuration Parameters of the Various Service-Related Scripts (298470)



The information in this article applies to:

  • Microsoft Operations Manager 2000

This article was previously published under Q298470

SUMMARY

This article describes the functions and parameters of the various service-related scripts in Microsoft Operations Manager (MOM).

MORE INFORMATION

The Service Bounce script stops and then restarts a service in the same process. The configuration parameters are ServiceName, ComputerName, NumSecsBetweenRetries (number of seconds between retries), and NumAttempts (number of times to retry an unsuccessful bounce).

The Service Bounce Asynchronous script stops a service and then starts it again in a separate process. For more information about the Service Bounce Asynchronous script, refer to the following article in the Microsoft Knowledge Base:

295916 Service Bounce Asynchronous Script Stops the OnePoint Service But Does Not Restart It

The Service Shutdown script stops a service. Available parameters are ServiceName, ComputerName, NumSecsBetweenRetries, and NumAttempts (number of times to retry an unsuccessful shutdown).

The Service Check Status script checks the current status of a service. Available parameters are ServiceName, NumAttempts, and NumSecsBetweenRetries. The Service Check Status script raises one of the following events:
  • 1000 - Service is running
  • 1001 - Service is stopped or paused
  • 1002 - Service is hung in a pended state
  • 1003 - Service state could not be determined
Note that you should always modify the parameters for any script from within a rule, on the Response tab. Modifying a script's parameters from the global configuration location modifies the script's parameters for all rules that are associated with the script.

To gain access to a script, in the MOM Administrator Console, expand Rules, expand Advanced, and then click Scripts.

Modification Type:MinorLast Reviewed:6/13/2005
Keywords:kbenv kbinfo KB298470