Microsoft KB Archive/904747

= You receive events 21421 and 21245 in the Microsoft Operations Manager (MOM) 2005 Operator Console if you use a response script for a rule in MOM 2005 =

Article ID: 904747

Article Last Modified on 10/27/2006

-

APPLIES TO


 * Microsoft Operations Manager (MOM) 2005

-





SYMPTOMS
You receive the following events in the Microsoft Operations Manager (MOM) 2005 Operator Console: Type: Warning

Source: Microsoft Operations Manager

Category: MOM Agent

Event ID: 21421

Computer:

Description: The response 'script: ' has been running more than   seconds and exceeded the time allowed to run. This might indicate the response is engaged in an infinite loop or is hanging.

Type: Warning

Source: Microsoft Operations Manager

Category: MOM Agent

Event ID: 21245

Computer:

Description: The response processor failed to execute a response. The response returned the error message : The remote procedure call failed.

Response ID: { }

Response description: script :

These symptoms occur if the following conditions are true:  You use a response script for a rule in MOM 2005. The response script uses the Run method of the WScript.Shell object to run an executable file from a remote share folder. For example, the command line of the response script looks similar to this command line:

cmd = &quot;\\ \ \ .exe&quot;

Set wsq = CreateObject(&quot;Wscript.Shell&quot;)

wsq.Run cmd, 5



Additionally, the following symptoms occur until the response script is stopped by MOM 2005:
 * The executable file does not start in the MOM 2005 agent.
 * The response script stops responding.



WORKAROUND
To work around this problem, use one of the following methods.

Method 1
Add cmd /c to the command line of the response script. For example, the command line looks similar to this command line after you add cmd /c to the command line of the response script:

cmd = &quot;cmd /c \\ \ \ .exe&quot;

Set wsq = CreateObject(&quot;Wscript.Shell&quot;)

wsq.Run cmd, 5

Method 2
Add the remote server that contains the share folder to the Web sites list of the Local intranet zone. To do this, follow these steps:
 * 1) In Microsoft Internet Explorer, click Internet Options on the Tools menu.
 * 2) On the Security tab, click Local intranet, and then click Sites.
 * 3) Click Advanced, type the remote server name in the Add the Web site to the zone box, and then click Add.



STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the &quot;Applies to&quot; section.

Additional query words: VBScript hang MOMHost.exe

Keywords: kberrmsg kbtshoot kbprb KB904747

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.