Discovery Rule to Discover Aggregate Index from OID

NetApp.Management.Pack.Discovery.NetApp.Aggregate.Index (Discovery)

This rule is used to discover the Index number of an Aggregate, it uses the DataSource: NetApp.Management.Pack.DataSource.Discovery.ObjectIndex
The Discovery runs on the Aggregate Property "OID" and uses a script to isolate only the index number which can be used in other discoveries.
Default Interval is set to 1 hour or 3600 seconds.

Element properties:

TargetNetApp.Management.Pack.Class.NetApp.Aggregate
EnabledTrue
RemotableFalse

Object Discovery Details:

Discovered Classes and their attribuets:

Member Modules:

ID Module Type TypeId RunAs 
AggregateIndex DataSource NetApp.Management.Pack.DataSource.Discovery.ObjectIndex Default

Source Code:

<Discovery ID="NetApp.Management.Pack.Discovery.NetApp.Aggregate.Index" Enabled="true" Target="NetApp.Management.Pack.Class.NetApp.Aggregate" ConfirmDelivery="true" Remotable="true" Priority="Normal">
<Category>Discovery</Category>
<DiscoveryTypes>
<DiscoveryClass TypeID="NetApp.Management.Pack.Class.NetApp.Aggregate">
<Property TypeID="NetApp.Management.Pack.Class.NetApp.Aggregate" PropertyID="Index"/>
</DiscoveryClass>
</DiscoveryTypes>
<DataSource ID="AggregateIndex" TypeID="NetApp.Management.Pack.DataSource.Discovery.ObjectIndex">
<Interval>14400</Interval>
<IPAddress>$Target/Host/Host/Property[Type="MicrosoftSystemCenterNetworkDeviceLibrary!Microsoft.SystemCenter.NetworkDevice"]/IPAddress$</IPAddress>
<DisplayName>$Target/Property[Type="System!System.Entity"]/DisplayName$</DisplayName>
<ClassID>$MPElement[Name="NetApp.Management.Pack.Class.NetApp.Aggregate"]$</ClassID>
<InstanceSettings>
<Settings>
<Setting>
<Name>$MPElement[Name="MicrosoftSystemCenterNetworkDeviceLibrary!Microsoft.SystemCenter.NetworkDevice"]/IPAddress$</Name>
<Value>$Target/Host/Host/Property[Type="MicrosoftSystemCenterNetworkDeviceLibrary!Microsoft.SystemCenter.NetworkDevice"]/IPAddress$</Value>
</Setting>
<Setting>
<Name>$MPElement[Name="NetApp.Management.Pack.Class.NetApp.Aggregate"]/OID$</Name>
<Value>$Target/Property[Type="NetApp.Management.Pack.Class.NetApp.Aggregate"]/OID$</Value>
</Setting>
<Setting>
<Name>$MPElement[Name="System!System.Entity"]/DisplayName$</Name>
<Value>$Target/Property[Type="System!System.Entity"]/DisplayName$</Value>
</Setting>
<Setting>
<Name>$MPElement[Name="NetApp.Management.Pack.Class.NetApp.Aggregate"]/Index$</Name>
<Value>$Data/Property[@Name='Index']$</Value>
</Setting>
<Setting>
<Name>$MPElement[Name="NetApp.Management.Pack.Class.NetApp.Aggregate"]/AggrName$</Name>
<Value>$Target/Property[Type="NetApp.Management.Pack.Class.NetApp.Aggregate"]/AggrName$</Value>
</Setting>
<Setting>
<Name>$MPElement[Name="NetApp.Management.Pack.ContainmentClass.Aggregates"]/Name$</Name>
<Value>Aggregates</Value>
</Setting>
</Settings>
</InstanceSettings>
<OID>$Target/Property[Type="NetApp.Management.Pack.Class.NetApp.Aggregate"]/OID$</OID>
</DataSource>
</Discovery>