Discover Agent Properties

Microsoft.Unix.AgentProperties.Discovery (Discovery)

This discovery task finds the extended properties of an installed Agent.

Knowledge Base article:

Summary

This Discovery Rule discovers the properties of an agent running on a UNIX or Linux host.

Element properties:

TargetMicrosoft.Unix.Computer
EnabledTrue
RemotableFalse

Object Discovery Details:

Discovered Classes and their attribuets:

Member Modules:

ID Module Type TypeId RunAs 
DS1 DataSource Microsoft.Unix.WSMan.TimedEnumerate.DiscoveryData Default

Source Code:

<Discovery ID="Microsoft.Unix.AgentProperties.Discovery" Enabled="true" Target="Microsoft.Unix.Computer" ConfirmDelivery="true" Remotable="true" Priority="Normal">
<Category>Discovery</Category>
<DiscoveryTypes>
<DiscoveryClass TypeID="Microsoft.Unix.Computer"/>
</DiscoveryTypes>
<DataSource ID="DS1" TypeID="Microsoft.Unix.WSMan.TimedEnumerate.DiscoveryData">
<TargetSystem>$Target/Property[Type="Microsoft.Unix.Computer"]/NetworkName$</TargetSystem>
<Uri>http://schemas.microsoft.com/wbem/wscim/1/cim-schema/2/SCX_Agent?__cimnamespace=root/scx</Uri>
<Filter/>
<SplitItems>false</SplitItems>
<Interval>86400</Interval>
<SyncTime/>
<ClassId>$MPElement[Name="Microsoft.Unix.Computer"]$</ClassId>
<InstanceSettings>
<Settings>
<Setting>
<Name>$MPElement[Name="Microsoft.Unix.Computer"]/PrincipalName$</Name>
<Value>$Target/Property[Type="Microsoft.Unix.Computer"]/PrincipalName$</Value>
</Setting>
<Setting>
<Name>$MPElement[Name="Microsoft.Unix.Computer"]/IsVirtualMachine$</Name>
<Value>$Data/WsManData/*[local-name(.)='SCX_Agent']/*[local-name(.)='MachineType']$</Value>
</Setting>
<Setting>
<Name>$MPElement[Name="Microsoft.Unix.Computer"]/LogicalProcessors$</Name>
<Value>$Data/WsManData/*[local-name(.)='SCX_Agent']/*[local-name(.)='LogicalProcessors']$</Value>
</Setting>
<Setting>
<Name>$MPElement[Name="Microsoft.Unix.Computer"]/PhysicalProcessors$</Name>
<Value>$Data/WsManData/*[local-name(.)='SCX_Agent']/*[local-name(.)='PhysicalProcessors']$</Value>
</Setting>
</Settings>
</InstanceSettings>
<Expression>
<And>
<Expression>
<Exists>
<ValueExpression>
<!-- drop the R2 agents that don’t have a physical processors property -->
<XPathQuery>//*[local-name()='PhysicalProcessors']</XPathQuery>
</ValueExpression>
</Exists>
</Expression>
<Expression>
<Not>
<Expression>
<Exists>
<ValueExpression>
<!-- drop the OM12 agents that don’t have a physical processors value -->
<XPathQuery>//*[local-name()='PhysicalProcessors' and 'true'=@*[local-name()='nil']]</XPathQuery>
</ValueExpression>
</Exists>
</Expression>
</Not>
</Expression>
</And>
</Expression>
</DataSource>
</Discovery>