Periodic Discovery source for Feature monitoring cycle
This rule periodically triggers discovery of Dell Server management pack Suite features using event log (398) such that Feature Management Dashboard is up to date.
Target | Dell.FeatureManagement.SelectedHostMgmtServer |
Category | Custom |
Enabled | True |
Alert Generate | False |
Remotable | True |
ID | Module Type | TypeId | RunAs |
---|---|---|---|
Scheduler | DataSource | FMP.System.Scheduler | Default |
ExecuteScript | WriteAction | Microsoft.Windows.ScriptWriteAction | Default |
<Rule ID="Dell.FeatureManagement.PeriodicEventTriggerRule" Enabled="true" Target="Dell.FeatureManagement.SelectedHostMgmtServer" ConfirmDelivery="false" Remotable="true" Priority="Normal" DiscardLevel="100">
<Category>Custom</Category>
<DataSources>
<DataSource ID="Scheduler" TypeID="FMP.System.Scheduler">
<Interval>86400</Interval>
<SyncTime/>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="ExecuteScript" TypeID="Windows!Microsoft.Windows.ScriptWriteAction">
<ScriptName>DellFMP_ScriptEventGen.vbs</ScriptName>
<Arguments/>
<ScriptBody>
'**********************************************************************************
' Script Name - DellFMP_ScriptEventGen
' Author: Vignesh Pandian
'
' Description:
' generate OpsMgr EventLog entry to trigger FMP discovery
'
' (c) Copyright © 2009– 2017 Dell Inc, or its subsidiaries. All Rights Reserved
'**********************************************************************************
Option Explicit
On Error Resume Next
SetLocale("en-us")
Dim oAPI, oBag
Set oAPI = CreateObject("MOM.ScriptAPI")
Call oAPI.LogScriptEvent("Dell Feature Monitoring ",398,0, "Triggering periodic discovery for Dell Monitoring Feature instances.")
Set oAPI = Nothing
</ScriptBody>
<TimeoutSeconds>300</TimeoutSeconds>
</WriteAction>
</WriteActions>
</Rule>