SnapMgrSQLSeedDiscovery

Bostwick.SnapManager.SnapMgrSQLSeedDiscovery (Discovery)

Discovers computers running Snap Manager for SQL

Element properties:

TargetMicrosoft.Windows.Computer
EnabledTrue
Frequency86400
RemotableFalse

Object Discovery Details:

Discovered Classes and their attribuets:

Member Modules:

ID Module Type TypeId RunAs 
DS DataSource Microsoft.Windows.FilteredRegistryDiscoveryProvider Default

Source Code:

<Discovery ID="Bostwick.SnapManager.SnapMgrSQLSeedDiscovery" Target="Windows!Microsoft.Windows.Computer" Enabled="true" ConfirmDelivery="false" Remotable="true" Priority="Normal">
<Category>Discovery</Category>
<DiscoveryTypes>
<DiscoveryClass TypeID="Bostwick.SnapManager.SnapMgrSQLServer">
<Property TypeID="Bostwick.SnapManager.SnapMgrSQLServer" PropertyID="Version"/>
<Property TypeID="Bostwick.SnapManager.SnapMgrSQLServer" PropertyID="NotificationsToAddr"/>
<Property TypeID="Bostwick.SnapManager.SnapMgrSQLServer" PropertyID="NotificationsRelay"/>
<Property TypeID="Bostwick.SnapManager.SnapMgrSQLServer" PropertyID="MountPointDirectory"/>
<Property TypeID="System!System.Entity" PropertyID="DisplayName"/>
</DiscoveryClass>
</DiscoveryTypes>
<DataSource ID="DS" TypeID="Windows!Microsoft.Windows.FilteredRegistryDiscoveryProvider">
<ComputerName>$Target/Property[Type="Windows!Microsoft.Windows.Computer"]/PrincipalName$</ComputerName>
<RegistryAttributeDefinitions>
<RegistryAttributeDefinition>
<AttributeName>SnapManagerForSQL</AttributeName>
<Path>Software\Network Appliance\SnapManager for SQL Server</Path>
<PathType>0</PathType>
<AttributeType>0</AttributeType>
</RegistryAttributeDefinition>
<RegistryAttributeDefinition>
<AttributeName>Version</AttributeName>
<Path>Software\Network Appliance\SnapManager for SQL Server\BuildNumber</Path>
<PathType>1</PathType>
<AttributeType>1</AttributeType>
</RegistryAttributeDefinition>
<RegistryAttributeDefinition>
<AttributeName>NotifyTO</AttributeName>
<Path>Software\Network Appliance\SnapManager for SQL Server\Server\NotifyTo</Path>
<PathType>1</PathType>
<AttributeType>1</AttributeType>
</RegistryAttributeDefinition>
<RegistryAttributeDefinition>
<AttributeName>NotifyRelay</AttributeName>
<Path>Software\Network Appliance\SnapManager for SQL Server\Server\NotifySmtpServer</Path>
<PathType>1</PathType>
<AttributeType>1</AttributeType>
</RegistryAttributeDefinition>
<RegistryAttributeDefinition>
<AttributeName>SQLServerHost</AttributeName>
<Path>system\currentcontrolset\control\computername\activecomputername\computername</Path>
<PathType>1</PathType>
<AttributeType>1</AttributeType>
</RegistryAttributeDefinition>
<RegistryAttributeDefinition>
<AttributeName>SnapManagerForSQLMTPT</AttributeName>
<Path>Software\Network Appliance\SnapManager for SQL Server\Server\MountPointDir</Path>
<PathType>1</PathType>
<AttributeType>1</AttributeType>
</RegistryAttributeDefinition>
</RegistryAttributeDefinitions>
<Frequency>86400</Frequency>
<ClassId>$MPElement[Name="Bostwick.SnapManager.SnapMgrSQLServer"]$</ClassId>
<InstanceSettings>
<Settings>
<Setting>
<Name>$MPElement[Name="System!System.Entity"]/DisplayName$</Name>
<Value>$Target/Property[Type="Windows!Microsoft.Windows.Computer"]/PrincipalName$</Value>
</Setting>
<Setting>
<Name>$MPElement[Name="Windows!Microsoft.Windows.Computer"]/PrincipalName$</Name>
<Value>$Target/Property[Type="Windows!Microsoft.Windows.Computer"]/PrincipalName$</Value>
</Setting>
<Setting>
<Name>$MPElement[Name="Bostwick.SnapManager.SnapMgrSQLServer"]/Version$</Name>
<Value>$Data/Values/Version$</Value>
</Setting>
<Setting>
<Name>$MPElement[Name="Bostwick.SnapManager.SnapMgrSQLServer"]/NotificationsToAddr$</Name>
<Value>$Data/Values/NotifyTO$</Value>
</Setting>
<Setting>
<Name>$MPElement[Name="Bostwick.SnapManager.SnapMgrSQLServer"]/NotificationsRelay$</Name>
<Value>$Data/Values/NotifyRelay$</Value>
</Setting>
<Setting>
<Name>$MPElement[Name="Bostwick.SnapManager.SnapMgrSQLServer"]/MountPointDirectory$</Name>
<Value>$Data/Values/SnapManagerForSQLMTPT$</Value>
</Setting>
</Settings>
</InstanceSettings>
<Expression>
<And>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="Boolean">Values/SnapManagerForSQL</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="Boolean">true</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">Values/SQLServerHost</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">$Target/Property[Type="Windows!Microsoft.Windows.Computer"]/NetbiosComputerName$</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</And>
</Expression>
</DataSource>
</Discovery>