Hello everyone,
In order to test an automation I would like to trigger a false alarm on a specific element through a script.
I'd like this script to take as parameters :
1. ID of the element
2. ID & IDX of the parameter which will trigger the alarm
3. State of the alarm : major or critical or low
I wonder if one of you has in her/his possession a similar script which I could use as a template.
Thanks for you time guys !
PS : I know that there is a possibility to trigger a false alarm by modifying the alarm template, but a script like this would really be helpful for my activity.
Hi Hugo,
You mention that you would not like to modify the alarm template. Is there any reason why this is not an option?
Instead of assigning the alarm template manually, you could assign the alarm template in the automation script. For example:
- Create an alarm template that will trigger the alarm that you would like to test
- In the automation script:
- Assign the new alarm template to the element under test to generate the alarm (Set Alarm Template)
- Perform your validation/test
- Assign the previous alarm template to the element so the alarm is cleared
Hi Hugo,
As you know alarm templates are defined at protocol level. In the automation script you can assign the same alarm template to multiple elements, if required
Hello Miguel,
Thanks for your answer.
First I didn’t know that there was a method to assign an new alarm template. I will try this method.
Correct me if I am wrong but it means that everytime I want to use that script to trigger alarms on different elements, I will have to create a new alarm template for each element ?