Acer.Server.OOB.ServerDiscovery

Acer.Server.OOB.ServerDiscovery (Discovery)

The Discovery discovers the Acer server with iBMC from Network Device objects.

Knowledge Base article:

Summary

The Discovery discovers the Acer server with iBMC from Network Device objects.

Element properties:

TargetMicrosoft.SystemCenter.NetworkDevice
EnabledTrue
Frequency14400
RemotableFalse

Object Discovery Details:

Discovered Classes and their attribuets:
Discovered relationships and their attribuets:

Member Modules:

ID Module Type TypeId RunAs 
DS DataSource Microsoft.Windows.TimedScript.DiscoveryProvider Default

Source Code:

<Discovery ID="Acer.Server.OOB.ServerDiscovery" Enabled="true" Target="MicrosoftSystemCenterNetworkDeviceLibrary!Microsoft.SystemCenter.NetworkDevice" ConfirmDelivery="false" Remotable="true" Priority="Normal">
<Category>Discovery</Category>
<DiscoveryTypes>
<DiscoveryClass TypeID="Acer.Server.OOB.Power">
<Property TypeID="System!System.Entity" PropertyID="DisplayName"/>
</DiscoveryClass>
<DiscoveryClass TypeID="Acer.Server.OOB.RAID">
<Property TypeID="System!System.Entity" PropertyID="DisplayName"/>
</DiscoveryClass>
<DiscoveryClass TypeID="Acer.Server.OOB.OtherComponents">
<Property TypeID="System!System.Entity" PropertyID="DisplayName"/>
</DiscoveryClass>
<DiscoveryClass TypeID="Acer.Server.OOB.Cooling">
<Property TypeID="System!System.Entity" PropertyID="DisplayName"/>
</DiscoveryClass>
<DiscoveryClass TypeID="Acer.Server.OOB.Network">
<Property TypeID="System!System.Entity" PropertyID="DisplayName"/>
</DiscoveryClass>
<DiscoveryClass TypeID="Acer.Server.OOB.Server.Monolithic">
<Property TypeID="MicrosoftSystemCenterNetworkDeviceLibrary!Microsoft.SystemCenter.NetworkDevice" PropertyID="IPAddress"/>
</DiscoveryClass>
<DiscoveryClass TypeID="Acer.Server.OOB.Chassis">
<Property TypeID="System!System.Entity" PropertyID="DisplayName"/>
</DiscoveryClass>
<DiscoveryClass TypeID="Acer.Server.OOB.Hardware">
<Property TypeID="System!System.Entity" PropertyID="DisplayName"/>
</DiscoveryClass>
<DiscoveryClass TypeID="Acer.Server.OOB.LogicalRAID">
<Property TypeID="System!System.Entity" PropertyID="DisplayName"/>
</DiscoveryClass>
<DiscoveryClass TypeID="Acer.Server.OOB.Voltage">
<Property TypeID="System!System.Entity" PropertyID="DisplayName"/>
</DiscoveryClass>
<DiscoveryClass TypeID="Acer.Server.OOB.Temperature">
<Property TypeID="System!System.Entity" PropertyID="DisplayName"/>
</DiscoveryClass>
<DiscoveryRelationship TypeID="Acer.Server.OOB.ServerHostHardware"/>
<DiscoveryRelationship TypeID="Acer.Server.OOB.HardwareHostOtherComponents"/>
<DiscoveryRelationship TypeID="Acer.Server.OOB.HardwareHostPower"/>
<DiscoveryRelationship TypeID="Acer.Server.OOB.HardwareHostChassis"/>
<DiscoveryRelationship TypeID="Acer.Server.OOB.HardwareHostCooling"/>
<DiscoveryRelationship TypeID="Acer.Server.OOB.HardwareHostNetwork"/>
<DiscoveryRelationship TypeID="Acer.Server.OOB.LogicalRAIDContainRAID"/>
<DiscoveryRelationship TypeID="Acer.Server.OOB.ServerHostLogicalRAID"/>
<DiscoveryRelationship TypeID="Acer.Server.OOB.HardwareHostTemperature"/>
<DiscoveryRelationship TypeID="Acer.Server.OOB.HardwareHostVoltage"/>
</DiscoveryTypes>
<DataSource ID="DS" TypeID="Windows!Microsoft.Windows.TimedScript.DiscoveryProvider">
<IntervalSeconds>14400</IntervalSeconds>
<SyncTime/>
<ScriptName>AcerServerDiscovery.vbs</ScriptName>
<Arguments>$MPElement$ $Target/Id$ $Target/Property[Type="MicrosoftSystemCenterNetworkDeviceLibrary!Microsoft.SystemCenter.NetworkDevice"]/IPAddress$ $Target/Property[Type="MicrosoftSystemCenterNetworkDeviceLibrary!Microsoft.SystemCenter.NetworkDevice"]/SystemContact$ $Target/Property[Type="MicrosoftSystemCenterNetworkDeviceLibrary!Microsoft.SystemCenter.NetworkDevice"]/Name$ $Target/Property[Type="MicrosoftSystemCenterNetworkDeviceLibrary!Microsoft.SystemCenter.NetworkDevice"]/Name$</Arguments>
<ScriptBody><Script>Option Explicit
SetLocale("en-us")

Dim oArgs
Dim SourceID, ManagedEntityId, IPAddress, SystemContact
Dim oAPI, oDiscoveryData, oInst



Set oArgs = WScript.Arguments
if oArgs.Count &lt; 4 Then
Wscript.Quit -1
End If

SourceId = oArgs(0)
ManagedEntityId = oArgs(1)
IPAddress = oArgs(2)
SystemContact = oArgs(3)

Set oAPI = CreateObject("MOM.ScriptAPI")
set oDiscoveryData = oAPI.CreateDiscoveryData(0, SourceId, ManagedEntityId)

if( (len(SystemContact) = 4) and (InStr(SystemContact ,"Acer")= 1) ) Then
set oInst = oDiscoveryData.CreateClassInstance("$MPElement[Name='Acer.Server.OOB.Server.Monolithic']$")
call oInst.AddProperty("$MPElement[Name='MicrosoftSystemCenterNetworkDeviceLibrary!Microsoft.SystemCenter.NetworkDevice']/IPAddress$", IPAddress)
call oInst.AddProperty("$MPElement[Name='System!System.Entity']/DisplayName$", IPAddress)
call oDiscoveryData.AddInstance(oInst)

set oInst = oDiscoveryData.CreateClassInstance("$MPElement[Name='Acer.Server.OOB.Hardware']$")
call oInst.AddProperty("$MPElement[Name='MicrosoftSystemCenterNetworkDeviceLibrary!Microsoft.SystemCenter.NetworkDevice']/IPAddress$", IPAddress)
call oInst.AddProperty("$MPElement[Name='Acer.Server.OOB.Hardware']/BMCIP$", IPAddress)
call oInst.AddProperty("$MPElement[Name='System!System.Entity']/DisplayName$", "System Health Monitoring")
call oDiscoveryData.AddInstance(oInst)

set oInst = oDiscoveryData.CreateClassInstance("$MPElement[Name='Acer.Server.OOB.LogicalRAID']$")
call oInst.AddProperty("$MPElement[Name='MicrosoftSystemCenterNetworkDeviceLibrary!Microsoft.SystemCenter.NetworkDevice']/IPAddress$", IPAddress)
call oInst.AddProperty("$MPElement[Name='Acer.Server.OOB.LogicalRAID']/HostIP$", IPAddress)
call oInst.AddProperty("$MPElement[Name='System!System.Entity']/DisplayName$", "RAID Monitoring")
call oDiscoveryData.AddInstance(oInst)


set oInst = oDiscoveryData.CreateClassInstance("$MPElement[Name='Acer.Server.OOB.RAID']$")
call oInst.AddProperty("$MPElement[Name='MicrosoftSystemCenterNetworkDeviceLibrary!Microsoft.SystemCenter.NetworkDevice']/IPAddress$", IPAddress)
call oInst.AddProperty("$MPElement[Name='Acer.Server.OOB.RAID']/HostIP$", IPAddress)
call oDiscoveryData.AddInstance(oInst)

set oInst = oDiscoveryData.CreateClassInstance("$MPElement[Name='Acer.Server.OOB.Power']$")
call oInst.AddProperty("$MPElement[Name='MicrosoftSystemCenterNetworkDeviceLibrary!Microsoft.SystemCenter.NetworkDevice']/IPAddress$", IPAddress)
call oInst.AddProperty("$MPElement[Name='Acer.Server.OOB.Hardware']/BMCIP$", IPAddress)
call oInst.AddProperty("$MPElement[Name='System!System.Entity']/DisplayName$", "Power")
call oInst.AddProperty("$MPElement[Name='Acer.Server.OOB.Power']/BMCIP$", IPAddress)
call oDiscoveryData.AddInstance(oInst)

set oInst = oDiscoveryData.CreateClassInstance("$MPElement[Name='Acer.Server.OOB.Chassis']$")
call oInst.AddProperty("$MPElement[Name='MicrosoftSystemCenterNetworkDeviceLibrary!Microsoft.SystemCenter.NetworkDevice']/IPAddress$", IPAddress)
call oInst.AddProperty("$MPElement[Name='Acer.Server.OOB.Hardware']/BMCIP$", IPAddress)
call oInst.AddProperty("$MPElement[Name='System!System.Entity']/DisplayName$", "Chassis")
call oInst.AddProperty("$MPElement[Name='Acer.Server.OOB.Chassis']/BMCIP$", IPAddress)
call oDiscoveryData.AddInstance(oInst)

set oInst = oDiscoveryData.CreateClassInstance("$MPElement[Name='Acer.Server.OOB.Voltage']$")
call oInst.AddProperty("$MPElement[Name='MicrosoftSystemCenterNetworkDeviceLibrary!Microsoft.SystemCenter.NetworkDevice']/IPAddress$", IPAddress)
call oInst.AddProperty("$MPElement[Name='Acer.Server.OOB.Hardware']/BMCIP$", IPAddress)
call oInst.AddProperty("$MPElement[Name='System!System.Entity']/DisplayName$", "Voltage")
call oInst.AddProperty("$MPElement[Name='Acer.Server.OOB.Voltage']/BMCIP$", IPAddress)
call oDiscoveryData.AddInstance(oInst)

set oInst = oDiscoveryData.CreateClassInstance("$MPElement[Name='Acer.Server.OOB.Temperature']$")
call oInst.AddProperty("$MPElement[Name='MicrosoftSystemCenterNetworkDeviceLibrary!Microsoft.SystemCenter.NetworkDevice']/IPAddress$", IPAddress)
call oInst.AddProperty("$MPElement[Name='Acer.Server.OOB.Hardware']/BMCIP$", IPAddress)
call oInst.AddProperty("$MPElement[Name='System!System.Entity']/DisplayName$", "Temperature")
call oInst.AddProperty("$MPElement[Name='Acer.Server.OOB.Temperature']/BMCIP$", IPAddress)
call oDiscoveryData.AddInstance(oInst)

set oInst = oDiscoveryData.CreateClassInstance("$MPElement[Name='Acer.Server.OOB.Cooling']$")
call oInst.AddProperty("$MPElement[Name='MicrosoftSystemCenterNetworkDeviceLibrary!Microsoft.SystemCenter.NetworkDevice']/IPAddress$", IPAddress)
call oInst.AddProperty("$MPElement[Name='Acer.Server.OOB.Hardware']/BMCIP$", IPAddress)
call oInst.AddProperty("$MPElement[Name='System!System.Entity']/DisplayName$", "Cooling")
call oInst.AddProperty("$MPElement[Name='Acer.Server.OOB.Cooling']/BMCIP$", IPAddress)
call oDiscoveryData.AddInstance(oInst)

set oInst = oDiscoveryData.CreateClassInstance("$MPElement[Name='Acer.Server.OOB.Network']$")
call oInst.AddProperty("$MPElement[Name='MicrosoftSystemCenterNetworkDeviceLibrary!Microsoft.SystemCenter.NetworkDevice']/IPAddress$", IPAddress)
call oInst.AddProperty("$MPElement[Name='Acer.Server.OOB.Hardware']/BMCIP$", IPAddress)
call oInst.AddProperty("$MPElement[Name='System!System.Entity']/DisplayName$", "Network")
call oInst.AddProperty("$MPElement[Name='Acer.Server.OOB.Network']/BMCIP$", IPAddress)
call oDiscoveryData.AddInstance(oInst)

set oInst = oDiscoveryData.CreateClassInstance("$MPElement[Name='Acer.Server.OOB.OtherComponents']$")
call oInst.AddProperty("$MPElement[Name='MicrosoftSystemCenterNetworkDeviceLibrary!Microsoft.SystemCenter.NetworkDevice']/IPAddress$", IPAddress)
call oInst.AddProperty("$MPElement[Name='Acer.Server.OOB.Hardware']/BMCIP$", IPAddress)
call oInst.AddProperty("$MPElement[Name='System!System.Entity']/DisplayName$", "OtherComponents")
call oInst.AddProperty("$MPElement[Name='Acer.Server.OOB.OtherComponents']/BMCIP$", IPAddress)
call oDiscoveryData.AddInstance(oInst)

End If
Call oAPI.Return(oDiscoveryData)
</Script></ScriptBody>
<TimeoutSeconds>60</TimeoutSeconds>
</DataSource>
</Discovery>