Обнаружение свойств агента
Microsoft.Unix.AgentProperties.Discovery (Discovery)
Эта задача обнаружения предназначена для поиска расширенных свойств установленного агента.
Knowledge Base article:
Element properties:
Object Discovery Details:
Member Modules:
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>