search cancel

How to Alarm If the Device Belongs To A Global Collection

book

Article ID: 215233

calendar_today

Updated On:

Products

CA Spectrum DX NetOps

Issue/Introduction


We need to create a new Custom Event for the devices which are part of a Global Collection. So maybe use Attributed ID to match against a Global Collection? 

 

Cause

 

N/A

 

Environment

Release : 10.x / 20.2 / 21.2

Component : Spectrum Core / SpectroSERVER

Resolution


One possible solution would be to check the CollectionsModelNameString/0x12adb attribute for the desired Global Collection name.

example event procedure

0xfff00000 E 20 P "If( \
                      Regexp( \
                          ReadAttribute( \
                               { C CURRENT_MODEL }, \
                               { H 0x12adb } \
                             ), \
                          { S \"Lab Machines\" } \
                       ), \
                      CreateEventWithVariables( \
                            { C CURRENT_MODEL }, \
                            { H 0xfff00003 }, \
                            GetEventVariableList() \
                       ), \
                       Nill() \
                   )"

 

 

 

 

Attachments