allow wildcard for device names, apply polling to all instances
Hi @ElisabettaGiani , I found the "configure polling and events" script quite useful. But I did not want to type the same information into the configuration JSON file for all of my 16 subarrays (and later all 2048 logical stations!)
So, I have added a wildcard search.
If you use '*' as the devName, the properties will be applied to all devices matching the class & server. (You can omit serverName too, and it will apply to all server instances)
Hope you find this useful too :)
Sample JSON data:
[ { "class": "LowCbfSubarray", "serverName": "LowCbfSubarray/LowCbfSubarray-default-instance", "devName": "*", "attributeProperties": [ { "attributeName": "adminMode", "attrPropName": "", "attrPropValue": "", "pollingPeriod": 1000, "changeEventAbs": "1" }, { "attributeName": "healthState", "attrPropName": "", "attrPropValue": "", "pollingPeriod": 1000, "changeEventAbs": "1" }, { "attributeName": "State", "attrPropName": "", "attrPropValue": "", "pollingPeriod": 1000, "changeEventAbs": "" } ] } ]