# Ack Alarms at the gatway level

**URL:** <https://forum.inductiveautomation.com/t/ack-alarms-at-the-gatway-level/4136>\
**Category:** Ignition\
**Created:** [March 12, 2012, 4:46pm UTC](https://forum.inductiveautomation.com/t/ack-alarms-at-the-gatway-level/4136 "2012-03-12T16:46:59Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![kevinmarchand](https://avatars.discourse-cdn.com/v4/letter/k/439d5e/32.png) [@kevinmarchand](https://forum.inductiveautomation.com/u/kevinmarchand)\
**Post date:** [March 12, 2012, 4:46pm UTC](https://forum.inductiveautomation.com/t/ack-alarms-at-the-gatway-level/4136/1 "2012-03-12T16:46:59Z")

</div>

Hi,

```
I currently using my plc to ack alarm.
Most of my operator station do have a hardwire button for ack alarm.
I would like to remove the ack logic in my plc and let ignition deal with this.
I try this code in a gateway script to ack all alarm in a specific system like this
      system.alert.acknowledgeAlert("SQLTags.MyArea"."*","*")
But this is not working.

Is there a way to do this?

```

thanks

---

<div class="post-metadata">

**Author:** ![Travis.Cox](https://avatars.discourse-cdn.com/v4/letter/t/b9bd4f/32.png) [@Travis.Cox](https://forum.inductiveautomation.com/u/Travis.Cox)\
**Post date:** [March 12, 2012, 6:04pm UTC](https://forum.inductiveautomation.com/t/ack-alarms-at-the-gatway-level/4136/2 "2012-03-12T18:04:39Z")

</div>

Yes, you can but you need to do the following:`system.alert.acknowledgeAlert("SQLTags.default"."*MyArea*","*")`

---

<div class="post-metadata">

**Author:** ![kevinmarchand](https://avatars.discourse-cdn.com/v4/letter/k/439d5e/32.png) [@kevinmarchand](https://forum.inductiveautomation.com/u/kevinmarchand)\
**Post date:** [March 12, 2012, 6:47pm UTC](https://forum.inductiveautomation.com/t/ack-alarms-at-the-gatway-level/4136/3 "2012-03-12T18:47:33Z")

</div>

Hi,

```
If I display the system and the path on my Alert summary I get these value
system = SQLTags.FingerJoint
Path = PRESSE

should I write this

[code]system.alert.acknowledgeAlert("SQLTags.FingerJointt"."*PRESSE*","*")[/code]

because system.alert.acknowledgeAlert("SQLTags.default"."*MyArea*","*") doesn't work from a button test.
```

---

<div class="post-metadata">

**Author:** ![Travis.Cox](https://avatars.discourse-cdn.com/v4/letter/t/b9bd4f/32.png) [@Travis.Cox](https://forum.inductiveautomation.com/u/Travis.Cox)\
**Post date:** [March 13, 2012, 2:19pm UTC](https://forum.inductiveautomation.com/t/ack-alarms-at-the-gatway-level/4136/4 "2012-03-13T14:19:32Z")

</div>

Yes, you should use SQLTags.FingerJoint. The default is SQLTags.default but if you create a different SQLTags realtime provider it will be a slightly different name.

---

<div class="post-metadata">

**Author:** ![kevinmarchand](https://avatars.discourse-cdn.com/v4/letter/k/439d5e/32.png) [@kevinmarchand](https://forum.inductiveautomation.com/u/kevinmarchand)\
**Post date:** [March 13, 2012, 2:25pm UTC](https://forum.inductiveautomation.com/t/ack-alarms-at-the-gatway-level/4136/5 "2012-03-13T14:25:01Z")

</div>

is the second parameter to the function is the folder path under the Tags folder or the path enter in the alarm tab under the tag properties?

thanks

---

<div class="post-metadata">

**Author:** ![kevinmarchand](https://avatars.discourse-cdn.com/v4/letter/k/439d5e/32.png) [@kevinmarchand](https://forum.inductiveautomation.com/u/kevinmarchand)\
**Post date:** [March 13, 2012, 5:48pm UTC](https://forum.inductiveautomation.com/t/ack-alarms-at-the-gatway-level/4136/6 "2012-03-13T17:48:47Z")

</div>

Hi Travis,

After multiple tried out I found that you cannot use the \* in this function. The only way I way able to ack my alarm with this button was by specifying all 3 parameters.  
Could it be a % instead of a \*?

thanks

---

<div class="post-metadata">

**Author:** ![Travis.Cox](https://avatars.discourse-cdn.com/v4/letter/t/b9bd4f/32.png) [@Travis.Cox](https://forum.inductiveautomation.com/u/Travis.Cox)\
**Post date:** [March 13, 2012, 6:13pm UTC](https://forum.inductiveautomation.com/t/ack-alarms-at-the-gatway-level/4136/7 "2012-03-13T18:13:28Z")

</div>

Ok, it looks like you can’t use a wildcard right now when acknowledging alerts. However, you can query the alert status first and then loop through them to acknowledge each individual alarm:`ds = system.alert.queryAlertStatus(system="SQLTags.FingerJoint", path="*PRESSE*", activeAndUnacked=1, activeAndAcked=0, clearAndUnacked=0, clearAndAcked=0)
ds = system.dataset.toPyDataSet(ds)
for row in ds:
    system = row["System"]
    path = row["Path"]
    stateName = row["State Name"]
    system.alert.acknowledgeAlert(system, path, stateName)`

---

<div class="post-metadata">

**Author:** ![kevinmarchand](https://avatars.discourse-cdn.com/v4/letter/k/439d5e/32.png) [@kevinmarchand](https://forum.inductiveautomation.com/u/kevinmarchand)\
**Post date:** [March 13, 2012, 6:30pm UTC](https://forum.inductiveautomation.com/t/ack-alarms-at-the-gatway-level/4136/8 "2012-03-13T18:30:16Z")

</div>

Hi Travis,

```
Is it something for the version 7.4 coming up soon?

```

thanks

---

<div class="post-metadata">

**Author:** ![Travis.Cox](https://avatars.discourse-cdn.com/v4/letter/t/b9bd4f/32.png) [@Travis.Cox](https://forum.inductiveautomation.com/u/Travis.Cox)\
**Post date:** [March 13, 2012, 7:52pm UTC](https://forum.inductiveautomation.com/t/ack-alarms-at-the-gatway-level/4136/9 "2012-03-13T19:52:25Z")

</div>

No, you can do it in 7.3.

---

<div class="post-metadata">

**Author:** ![kevinmarchand](https://avatars.discourse-cdn.com/v4/letter/k/439d5e/32.png) [@kevinmarchand](https://forum.inductiveautomation.com/u/kevinmarchand)\
**Post date:** [March 14, 2012, 10:54am UTC](https://forum.inductiveautomation.com/t/ack-alarms-at-the-gatway-level/4136/10 "2012-03-14T10:54:29Z")

</div>

Hi Travis,

```
I am 7.3 I think we need to do a webex because I feel that willl spend too many time on the forum.
```

---

<div class="post-metadata">

**Author:** ![Travis.Cox](https://avatars.discourse-cdn.com/v4/letter/t/b9bd4f/32.png) [@Travis.Cox](https://forum.inductiveautomation.com/u/Travis.Cox)\
**Post date:** [March 14, 2012, 4:18pm UTC](https://forum.inductiveautomation.com/t/ack-alarms-at-the-gatway-level/4136/11 "2012-03-14T16:18:59Z")

</div>

Just give our tech support team a call at (800) 266-7798 and press 2.

---

<div class="post-metadata">

**Author:** ![Kyle\_Chase](https://avatars.discourse-cdn.com/v4/letter/k/9de0a6/32.png) [@Kyle\_Chase](https://forum.inductiveautomation.com/u/Kyle_Chase)\
**Post date:** [March 16, 2012, 4:43am UTC](https://forum.inductiveautomation.com/t/ack-alarms-at-the-gatway-level/4136/12 "2012-03-16T04:43:37Z")

</div>

We have a gateway scoped function, system.alert.acknowledgeAlerts(), in the module posted in the following link  
[http://www.inductiveautomation.com/forum/viewtopic.php?f=88&t=7815](http://www.inductiveautomation.com/forum/viewtopic.php?f=88&t=7815)
