This article provides a MySQL query to retrieve a cumulative count of alarms from the Spectrum Archive Manager (ddmdb) database.
This is useful for users who need to report on alarm volume over a specific period, such as 45 days, across multiple landscapes in a Distributed SpectroSERVER (DSS) environment.
Spectrum (All releases)
Navigate to the MySQL binary directory:
Windows: Start a bash shell (bash -login) and go to $SPECROOT/mysql/bin
mysql -uroot -p<pw> ddmdb
Linux: $SPECROOT/mysql/bin
./mysql --defaults-file=../my-spectrum.cnf -uroot -p<pw> ddmdb
Execute the following query to get the alarm count per day (using event type 0x10701 which represents alarms):
SELECT DATE(FROM_UNIXTIME(utime)) AS Date, COUNT(*) AS Alarm_Count
FROM event
WHERE type=0x10701
GROUP BY DATE(FROM_UNIXTIME(utime));
For more advanced reporting requirements, consider using the Operational Reports feature within Spectrum Report Manager (SRM).