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.

<Tasks>
  <Task ID="snowland_ServiceMonitor_ConsoleTask" Accessibility="Internal" Enabled="true" Target="snowland_ServiceMonitor_Class" Timeout="300" Remotable="true">
    <Category>Alert</Category>
    <WriteAction ID="PA" TypeID="System!System.CommandExecuter">
      <ApplicationName>%SystemRoot%\System32\net.exe</ApplicationName>
      <WorkingDirectory>%SystemRoot%\System32</WorkingDirectory>
      <CommandLine>START MyService</CommandLine>
      <TimeoutSeconds>20</TimeoutSeconds>
      <RequireOutput>true</RequireOutput>
    </WriteAction>
  </Task>
</Tasks>
 

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)

<maml:section xmlns:maml="http://schemas.microsoft.com/maml/2004/10">
        <maml:title>Resolutions</maml:title>
        <maml:para>Mumbo jumbo text…</maml:para>
        <maml:para>
                <maml:navigationLink>
                        <maml:linkText>My Task</maml:linkText>
                        <maml:uri condition="Task" href="snowland_ServiceMonitor_ConsoleTask&amp;tasktarget={$TARGET$}" uri="MOM.Console.Exe" />
                </maml:navigationLink>
        </maml:para>

        <maml:para>
                <maml:navigationLink>
                        <maml:linkText>My View</maml:linkText>
                        <maml:uri condition="View" href="snowland_ServiceMonitor_MyView&amp;viewtarget={$TARGET$}" uri="MOM.Console.Exe" />
                </maml:navigationLink>
        </maml:para>

        <maml:navigationLink>
                <maml:linkText>My WebLink</maml:linkText>
                <maml:uri href="http://www.snowland.se/" />
        </maml:navigationLink>
</maml:section>
 

Tip: Use Authoring Console and a XML-editor.

Post a comment

You may use the following HTML:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>