I am trying to filter out the alarms (which there are 4 in totals) using associated data as shown in the below script:
props = [(“AlarmGroup”,"=",1),(“AlarmGroup”,"=",2)]
path = ['*
Anyhow*'
]
state = [‘ActiveUnacked’]
print len(system.alarm.queryStatus(source = path,all_properties = [(“AlarmGroup”,"=",1)],state = state))
print len (system.alarm.queryStatus(source = path,all_properties = props,state = state))
If the all_properties = [(“AlarmGroup”,"=",1) is set, I am able to get 2 of the alarms. However, I would get 0 alarms if all_properties = props is used instead.
Any idea why is it so ?