Microsoft Knowledge Base Email Alertz

When you create a command line action with executable Cscript.exe, the command line may fail to execute if the command line arguments contain insertion strings.

Search KbAlertz

Advanced Search

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]











Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks

Article ID: 304595 - Last Review: October 9, 2001 - Revision: 1.1

FIX: Health Monitor Script Command Line May Fail If Command Line Arguments Contain Insertion Strings

This article was previously published under Q304595

On This Page

SYMPTOMS

When you create a command line action with executable Cscript.exe, the command line may fail to execute if the command line arguments contain insertion strings.

RESOLUTION

To resolve this problem, upgrade to Application Center 2000 Service Pack 1 (SP1). For additional information, click the article number below to view the article in the Microsoft Knowledge Base:
309384  (http://kbalertz.com/Feedback.aspx?kbNumber=309384/EN-US/ ) INFO: How to Obtain the Latest Application Center 2000 Service Pack

STATUS

Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.

This problem is fixed in the updated version of Health Monitor, which is installed by Application Center 2000 SP1.

MORE INFORMATION

Steps to Reproduce Behavior

  1. Create a Health Monitor command line action as follows:
    File name: C:\Winnt\System32\Cscript.exe
    Working directory: C:
    Command Line: C:\temp.vbs <EmbeddedStatusEvent.SystemName>
  2. Copy the following text into C:\Temp.vbs:
    Set file =
      CreateObject("Scripting.FileSystemObject").CreateTextFile("C:\x.txt",True)
    if wscript.arguments.count > 0 then
        file.WriteLine wscript.arguments(0)
    else
        file.WriteLine "no argument"
    end if
    					
  3. Create a synchronized Windows Management Instrumentation (WMI) event query data collector for the file replicated (Event 5077):
    Namespace: ROOT\MicrosoftApplicationCenter
    Class: MicrosoftAC_Replication_Session_DriverEvents_UpdateListApply_FileSet_Event
  4. Add the action that you created in step 1 to the data collector that you created in step 3.
  5. Edit or create a file in a replicated directory on the cluster controller and synchronize the cluster. Check a member server and observe that C:\X.txt was not created.

APPLIES TO
  • Microsoft Application Center 2000 Standard Edition
Keywords: 
kbbug kbfix KB304595
       

Community Feedback System

Very often, it takes hours to solve a problem. Very often, you've looked high and low, and have tried a lot of solutions. When you finally found it, chances are, it was because someone else helped you. Here's your chance to give back. Use our community feedback tool to let others know what worked for you and what didn't.

Please also understand that the community feedback system is not warranted to be correct, it's simply a system that we've built to let people try and help each other. If something in a feedback response doesn't make sense to you, or you're not comfortable making changes that the feedback talks about (like registry edits), please consult a professional.

Thank you for using kbAlertz.com Feedback System.

-- Scott Cate