System.Discovery.Scheduler

Applies To: Operations Manager 2007 R2

The System.Discovery.Scheduler module is a discovery data source module type that outputs System.Discovery.Data data on a scheduled, repeating interval.

Usage

Use this module to initiate a discovery workflow at the scheduled interval. Do not use System.Scheduler in a custom discovery module data source definition.

Type Definition

<DataSourceModuleType ID="System.Discovery.Scheduler" Accessibility="Public" Batching="false">
  <Configuration>
    <IncludeSchemaTypes>
      <SchemaType>System.ExpressionEvaluatorSchema</SchemaType>
    </IncludeSchemaTypes>
    <xsd:element name="Scheduler" type="PublicSchedulerType"/>
  </Configuration>
  <ModuleImplementation Isolation="Any">
    <Composite>
      <MemberModules>
        <DataSource TypeID="System.Discovery.Scheduler.Internal" ID="DS1">
          <Scheduler>$Config/Scheduler$</Scheduler>
          <ManagedEntityId>$Target/Id$</ManagedEntityId>
          <RuleId>$MPElement$</RuleId>
        </DataSource>
      </MemberModules>
      <Composition>
        <Node ID="DS1"/>
      </Composition>
    </Composite>
  </ModuleImplementation>
  <OutputType>System.TriggerData</OutputType>
</DataSourceModuleType>

Parameters

System.Discovery.Scheduler supports the configuration parameter described in the following table.

Parameter Type Overrideable Description

Scheduler

PublicSchedulerType

False

Required parameter. Defines the schedule for a workflow.

For information about how to define the Scheduler parameter, see PublicSchedulerType. If you choose a weekly schedule, you must use the same value in the Start and End elements. The PublicSchedulerType schema data type exposes a MultipleDays element. Do not use this element for the System.Scheduler module.

Composition

The System.Discovery.Scheduler module is a composite module, but it does not contain any public member modules.

Module Type Usage

System.Scheduler

Outputs System.Discovery.Data data on a scheduled, repeating interval.

System.SchedulerFilter

A condition detection module type that allows for the scheduling of rules and monitors.

External Module References

The System.Discovery.Scheduler module is a member of the public module described in the following table.

Module Type Library Usage

Microsoft.Windows.WmiProviderWithRelationshipSnapshotDataMapper

Microsoft.Windows.Library

Queries Windows Management Instrumentation (WMI) for object data at a scheduled, recurring interval and returns the discovered relationship type instance as System.Discovery.Data type data.

Sample

The following XML sample illustrates how to use a System.Discovery.Scheduler module in the context of a data source discovery module type.

<DataSourceModuleType ID="System.CommandExecuterDiscoveryDataSource" Accessibility="Public" Batching="false">
  <Configuration>
    <IncludeSchemaTypes>
      <SchemaType>System.CommandExecuterSchema</SchemaType>
    </IncludeSchemaTypes>
    <xsd:element name="IntervalSeconds" type="xsd:integer"/>
    <xsd:element name="ApplicationName" type="xsd:string"/>
    <xsd:element name="WorkingDirectory" type="xsd:string"/>
    <xsd:element name="CommandLine" type="xsd:string"/>
    <xsd:element name="SecureInput" minOccurs="0" maxOccurs="1">
      <xsd:simpleType>
        <xsd:restriction base="xsd:string">
          <xsd:maxLength value="256"/>
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:element>
    <xsd:element name="TimeoutSeconds" type="xsd:integer"/>
    <xsd:element name="RequireOutput" type="xsd:boolean"/>
    <xsd:element minOccurs="0" maxOccurs="1" name="Files" type="CommandExecuterFilesType"/>
    <xsd:element minOccurs="0" maxOccurs="1" name="DefaultEventPolicy" type="CommandExecuterEventPolicyType"/>
    <xsd:element minOccurs="0" maxOccurs="1" name="EventPolicy" type="CommandExecuterEventPolicyType"/>
  </Configuration>
  <OverrideableParameters>
    <OverrideableParameter ID="TimeoutSeconds" Selector="$Config/TimeoutSeconds$" ParameterType="int"/>
  </OverrideableParameters>
  <ModuleImplementation Isolation="Any">
    <Composite>
      <MemberModules>
        <DataSource TypeID="System.Discovery.Scheduler" ID="DS1">
          <Scheduler>
            <SimpleReccuringSchedule>
              <Interval Unit="Seconds">$Config/IntervalSeconds$</Interval>
            </SimpleReccuringSchedule>
            <ExcludeDates/>
          </Scheduler>
        </DataSource>
        <ProbeAction TypeID="System.CommandExecuterProbeDiscoveryBase" ID="P1">
          <ApplicationName>$Config/ApplicationName$</ApplicationName>
          <WorkingDirectory>$Config/WorkingDirectory$</WorkingDirectory>
          <CommandLine>$Config/CommandLine$</CommandLine>
          <SecureInput>$Config/SecureInput$</SecureInput>
          <TimeoutSeconds>$Config/TimeoutSeconds$</TimeoutSeconds>
          <RequireOutput>$Config/RequireOutput$</RequireOutput>
          <Files>$Config/Files$</Files>
          <OutputType>System.Discovery.Data</OutputType>
          <DefaultEventPolicy>$Config/DefaultEventPolicy$</DefaultEventPolicy>
          <EventPolicy>$Config/EventPolicy$</EventPolicy>
        </ProbeAction>
      </MemberModules>
      <Composition>
        <Node ID="P1">
          <Node ID="DS1"/>
        </Node>
      </Composition>
    </Composite>
  </ModuleImplementation>
  <OutputType>System.Discovery.Data</OutputType>
</DataSourceModuleType>

Information

   

Module Type

DataSourceModuleType

Input Type

None

Output Type

System.TriggerData

Implementation

Composite

Library

System.Library