locked
Recovery Tasks in System Center Essentails 2007 RRS feed

  • Question

  • Good morning

    I hope this is the right forum for this type of post.

    I'm relatively new to SCE - we only just purchased it a month or two ago, and currently we are only using it as a glorified WSUS server, so my experience with tweaking MPs and whatnot is limited...  so please use small words (or references to other materials are always appreciated!).

    I'm trying to create a recovery task for a failed "Computer Browser" service.  Not 100% sure why the browser service stops, but that's outside the scope of this post.

    I'm at the point where I'm looking at the alert in the Health Explorer for a specific client computer...  Choose Monitor Properties, then Diagnostics and Recovery.  I want to add a recovery task for a Critical Health State...  good so far.

    Now, I know that SC and NET commands don't have a RESTART function, I'm opting to create a script.  But I have 2 management packs to choose from - "Default Management Pack" and "Microsoft SystemCenter Essentials Default User MP".  What's the difference, and why would I pick one over the other?

    Selected the "Default Management Pack", and hit next.  Provide a title of "RestartComputerBrowserService.vbs" or something equally descriptive, and plug in some code found at http://myitforum.com/cs2/blogs/dhite/archive/2007/11/11/vbs-scripts-to-restart-remote-services-by-name-or-display-name.aspx, with some changes - I removed the input()'s in favour of SCE supplied parameters, and removed the MsgBox() at the end.  So it looks like:

    strComputer = $Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetbiosComputerName$

    strServiceName = "Browser"

    Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")

    Set colItems = objWMIService.ExecQuery("Select * from Win32_Service Where Name = '" & strServiceName & "'")

     

    For Each objItem in colItems

      objItem.StopService(strServiceName)

      Wscript.Sleep 10000

      objItem.StartService(strServiceName)

    Next



    Looks good from here...  so hit "Create", and get the following:
    Date: 3/5/2008 10:12:49 AM
    Application: System Center Essentials
    Application Version: 6.0.1251.1
    Severity: Error
    Message:

    : Verification failed with [1] errors:
    -------------------------------------------------------
    Error 1:
    : Failed to verify Recovery [MomUIGenaratedRecovery1abf17211254493598eb06befaf1780b]
    The Target Class [Microsoft.Windows.OperatingSystem] for Recovery [MomUIGenaratedRecovery1abf17211254493598eb06befaf1780b] does not derive from the Target Class [Microsoft.Windows.Client.XP.OperatingSystem] of the Monitor [Microsoft.Windows.Client.XP.OperatingSystem.ComputerbrowserServiceHealth] that this Recovery is assigned to.
    -------------------------------------------------------

    Failed to verify Recovery [MomUIGenaratedRecovery1abf17211254493598eb06befaf1780b]The Target Class [Microsoft.Windows.OperatingSystem] for Recovery [MomUIGenaratedRecovery1abf17211254493598eb06befaf1780b] does not derive from the Target Class [Microsoft.Windows.Client.XP.OperatingSystem] of the Monitor [Microsoft.Windows.Client.XP.OperatingSystem.ComputerbrowserServiceHealth] that this Recovery is assigned to.
    : Failed to verify Recovery [MomUIGenaratedRecovery1abf17211254493598eb06befaf1780b]
    The Target Class [Microsoft.Windows.OperatingSystem] for Recovery [MomUIGenaratedRecovery1abf17211254493598eb06befaf1780b] does not derive from the Target Class [Microsoft.Windows.Client.XP.OperatingSystem] of the Monitor [Microsoft.Windows.Client.XP.OperatingSystem.ComputerbrowserServiceHealth] that this Recovery is assigned to.
    : The Target Class [Microsoft.Windows.OperatingSystem] for Recovery [MomUIGenaratedRecovery1abf17211254493598eb06befaf1780b] does not derive from the Target Class [Microsoft.Windows.Client.XP.OperatingSystem] of the Monitor [Microsoft.Windows.Client.XP.OperatingSystem.ComputerbrowserServiceHealth] that this Recovery is assigned to.




    Any direction or suggestions?  Am I going about this the wrong way?

    Thanks in advance.
    Wednesday, March 5, 2008 5:15 PM

Answers

  • Hi,

     

    According to your logs, I found the error 26319 occurs. I performed more research on this error, and found the following KB article:

     

    You cannot obtain elevated user rights in management servers and in agents in System Center Operations Manager 2007 or System Center Essentials 2007 environments
    http://support.microsoft.com/kb/938510/en-us

     

    You may like to apply the hotfix as a test.

     

    Hope it helps.

    Thursday, March 13, 2008 7:43 AM

All replies

  • Hi Tim,

    It looks like the type you're targeting the Recovery at is not derived from the target type of the monitor you're trying to add the Recovery to. Essentially, you're targeting the Recovery at Microsoft.Windows.OperatingSystem, but you should be targeting at Microsoft.Windows.XP.OperatingSystem.

     

    Hope that helps!

    Wednesday, March 5, 2008 8:19 PM
  • Hello

    Maybe I'm looking in the wrong place, but when I am going through the process of creating the response, the only option I have for a target is "Windows Operating System".  If I click Select, a window pops up, with "Windows Client XP Operating System", as part of the "Windows Client XP Professional Operating Systems" management pack.  At the bottom of the window, it reads "1 total targets, 1 visible, 1 selected".

    So how do I change the target?  Is that something I can do in the script?


    • Proposed as answer by Alon.or Monday, December 8, 2014 10:40 AM
    Monday, March 10, 2008 7:48 PM
  • Hi,

     

    We may need more information for analysis. Please check your event viewer for related information,  save the Operations Manager section to *.evt files and send to scedata@microsoft.com.

     

    Note:

    Please include the following three lines in the email body:

     

    Recovery Tasks in System Center Essentails 2007

    http://forums.microsoft.com/TechNet/ShowPost.aspx?PostID=2955026&SiteID=17
    Guo-zhen Wang - MSFT

     

    Regarding more information about how to send email to SCEDATA@microsoft.com, please refer to:

     

    How to send files to the Microsoft SCE team for review
    http://forums.microsoft.com/TechNet/ShowPost.aspx?PostID=1680389&SiteID=17

     

    Post a quick note in the current thread after sending the email.
    -----------------------------
    Sincerely,
    Guozhen Wang
    Microsoft Online Community Support

    Tuesday, March 11, 2008 10:27 AM
  • Good afternoon

    I have attempted the steps I originally posted after installing SP1, and still receive a failure.  I did not document if the error messages were identical or not.

    I have sent the event log to the email address.

    Thanks,

    Tim

    Tuesday, March 11, 2008 7:44 PM
  • Hi,

     

    According to your logs, I found the error 26319 occurs. I performed more research on this error, and found the following KB article:

     

    You cannot obtain elevated user rights in management servers and in agents in System Center Operations Manager 2007 or System Center Essentials 2007 environments
    http://support.microsoft.com/kb/938510/en-us

     

    You may like to apply the hotfix as a test.

     

    Hope it helps.

    Thursday, March 13, 2008 7:43 AM
  • I had to Save the Override rule first, then edit it and add the recovery task or response in your case.
    • Proposed as answer by Fayez Eltaha Wednesday, February 3, 2016 10:00 AM
    Monday, December 8, 2014 10:42 AM
  • thanks Alon. your solution saved me a lot of time. after following your recommendation of closing the rule first then edit it again to add the recovery task. the error disappeared.
    Wednesday, February 3, 2016 10:02 AM
  • Hi Fayez,

    Can you please elaborate what you did, I am getting the same error. Can you please help me here

    Wednesday, April 20, 2016 1:52 PM