IncrementalDiscoveryRule

IBM.Storage.SVC.IncrementalDiscoveryRule (Rule)

Element properties:

TargetIBM.Storage.SVC.Configuration
CategoryCustom
EnabledTrue
Alert GenerateFalse
RemotableTrue

Member Modules:

ID Module Type TypeId RunAs 
RepeatScheduler DataSource IBM.Storage.SVC.RepeatTask Default
CommandExe WriteAction System.CommandExecuter Default

Source Code:

<Rule ID="IBM.Storage.SVC.IncrementalDiscoveryRule" Enabled="true" Target="IBM.Storage.SVC.Configuration" ConfirmDelivery="true" Remotable="true" Priority="Normal" DiscardLevel="100">
<Category>Custom</Category>
<DataSources>
<DataSource ID="RepeatScheduler" TypeID="IBM.Storage.SVC.RepeatTask">
<IntervalSeconds>600</IntervalSeconds>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="CommandExe" TypeID="System!System.CommandExecuter">
<ApplicationName>%SystemDrive%\Program Files\IBM\Storage\Host\IBMStorageSCOM\xpyv\python.exe</ApplicationName>
<WorkingDirectory/>
<CommandLine>runner.py -a discovery --timeout $Config/TimeoutSeconds$ -t svc -c $Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/PrincipalName$ -n $Target/Property[Type='IBM.Storage.SVC.Configuration']/HostURL$</CommandLine>
<TimeoutSeconds>7200</TimeoutSeconds>
<RequireOutput>true</RequireOutput>
<Files>
<File>
<Name>runner.py</Name>
<Contents><Script>
import glob, os, sys

home = os.path.abspath('%s/%s' % (os.getenv('SystemDrive', 'c:'), 'Program Files/IBM/Storage/Host/IBMStorageSCOM'))
os.environ['IBM_SCOM_HOME'] = home

for egg_path in glob.glob(os.path.join(home, 'lib', '*.egg')):
sys.path.insert(0, egg_path)

if __name__ == '__main__':
from scom_lib.runner import runner_main
sys.exit(runner_main(sys.argv[1:]))

</Script></Contents>
<Unicode>false</Unicode>
</File>
</Files>
</WriteAction>
</WriteActions>
</Rule>