# Alarm status Query

**URL:** <https://forum.inductiveautomation.com/t/alarm-status-query/71155>\
**Category:** Ignition\
**Tags:** ignition81, perspective\
**Created:** [March 16, 2023, 12:20pm UTC](https://forum.inductiveautomation.com/t/alarm-status-query/71155 "2023-03-16T12:20:43Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Arnaud\_Declerck](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/arnaud_declerck/32/44872_2.png) [@Arnaud\_Declerck](https://forum.inductiveautomation.com/u/Arnaud_Declerck)\
**Post date:** [March 28, 2023, 1:38pm UTC](https://forum.inductiveautomation.com/t/alarm-status-query/71155/3 "2023-03-28T13:38:21Z")

</div>

Hi @Fadil_Shaikh

```auto
	alarms=system.alarm.queryStatus(state=["ActiveUnacked","ActiveAcked"])
	data = []
	for Alarm in alarms:
		row={}
		for Properties in Alarm.getActiveData().getProperties():
			row[Properties]=Alarm.get(Properties)
		data.append(row)
	return data

```

Here you can find the script i use to get the name and value of the associated data.

> [@How to pull Associated Alarm Data from the alarm event list generated with system.alarm.queryStatus?](https://forum.inductiveautomation.com/t/how-to-pull-associated-alarm-data-from-the-alarm-event-list-generated-with-system-alarm-querystatus/27527/9):
>
> After restarting my gateway a few times I am now getting the name of the associated alarm data as I titled it. so when I run: results = system.alarm.queryStatus(state=["ActiveUnacked"]) for Alarms in results: for Properties in Alarms.getActiveData().getProperties(): print Properties I now am getting: mode setpointA eventValue TTS name AreaDesc eventTime priority displayPath enabled Very confusing that it wasn’t returning as TTS initially, but now it does so I can grab the data I…

i found this post telling that after a restart the name come correctly. and that's the case even in 8.1.26. but is you change the binding on the associated data. then it's broke until you execute another gateway restart.

Regards

---

_[View the full topic](https://forum.inductiveautomation.com/t/alarm-status-query/71155)._
