Does anyone have a script that can be run to gather a list of alarms (open or closed) for a specified time period and for either all devices or specified devices. It is just for auditing purposes.
You should be able to use the alarm.history() function to get this information. The NAS whitepaper describes the arguments. You can pass in a date range, or you can use a SQL WHERE clause if you need to search by more than just date. If I understand the whitepaper correctly, you can use the following call to get every alarm between 3:00 AM and 5:00 AM yesterday:
alarm.history("date,2010-08-02 03:00, 2010-08-02 05:00")
If the summary information for an alarm is not sufficient for your report, you can use the alarm.transactions() function to get the transaction information for an alarm (by passing in the nimid).
If you not comfortable with that you could set up the nis bridge then it's just a matter of doing some sql commands to get your info.
Retrieving data ...