MaintMode on a single class

Didnt know that this would work…

In a project that I’m working on the customer wanted me to create a Management Pack for a couple of services, the only problem was that they wanted to restart the services during the night.
My first solution was to create a group with the computer in it and run a PowerShell script to set the computer in to maintenance mode.

Then I tested to put my own class in that group and use the same script on the class instead.

Worked like a charm :-)

The script: systemcenterforum.org/maintenance-mode-scheduled-task-for-ops-mgr-2007/

Maintenance Mode


Inline tasks in SCOM

Since I can’t find any documentation on how to create inline tasks in knowledge I did a small reverse engineering on a SCOM MP.

Here is a summary of how to do it:

First you need to create a task that you can refer to. Take a note of your Task ID.

>
  ID="snowland_ServiceMonitor_ConsoleTask" Accessibility="Internal" Enabled="true" Target="snowland_ServiceMonitor_Class" Timeout="300" Remotable="true">
    >
Alert>
    ID="PA" TypeID="System!System.CommandExecuter">
      >
%SystemRoot%\System32\net.exe>
      >%SystemRoot%\System32>
      >START MyService>
      >20>
      >true>
    >
  >
>
 

And when you have the Task ID of your task you can create an inline task (or a link to a view or a website)

xmlns:maml="http://schemas.microsoft.com/maml/2004/10">

        >
Resolutions>
        >Mumbo jumbo text…>
        >
                >
                        >My Task>
                        condition="Task" href="snowland_ServiceMonitor_ConsoleTask&tasktarget={$TARGET$}" uri="MOM.Console.Exe" />
                >

        >

        >
                >
                        >My View>
                        condition="View" href="snowland_ServiceMonitor_MyView&viewtarget={$TARGET$}" uri="MOM.Console.Exe" />
                >

        >

        >
                >My WebLink>
                href="https://snowland.se/" />
        >

>
 

Tip: Use Authoring Console and a XML-editor.


SCCM MP for SCOM is out

SCCM MP for SCOM, loads of acronyms but nice anyway.

The System Center Configuration Manager Management Pack för System Center Operations Manager is out. (A bit longer text…)

The Microsoft Configuration Manager 2007 Management Pack for Operations Manager 2007 provides proactive monitoring of your Microsoft System Center Configuration Manager 2007 environment. This management pack includes:
- Detection and monitoring of all Configuration Manager servers and dependent services
- The alert driven state
- The site hierarchy diagram,
- Performance and backlog monitoring and configuration
- Performance and availability reports.

microsoft.com/downloads/