IncrementalDiscoveryRule

IBM.Storage.Storwize.V7000U.IncrementalDiscoveryRule (Rule)

Element properties:

TargetIBM.Storage.Storwize.V7000U.Configuration
CategoryCustom
EnabledTrue
Alert GenerateFalse
RemotableTrue

Member Modules:

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

Source Code:

<Rule ID="IBM.Storage.Storwize.V7000U.IncrementalDiscoveryRule" Enabled="true" Target="IBM.Storage.Storwize.V7000U.Configuration" ConfirmDelivery="true" Remotable="true" Priority="Normal" DiscardLevel="100">
<Category>Custom</Category>
<DataSources>
<DataSource ID="RepeatScheduler" TypeID="IBM.Storage.Storwize.V7000U.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 storwize.v7000u -c $Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/PrincipalName$ -n $Target/Property[Type='IBM.Storage.Storwize.V7000U.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>