There are various scenarios that sometimes occur that cause Spectrum to slow down due to performance degradation. This can be due to devices flooding Spectrum with traps or network faults resulting in an excessively large number of alarms being generated. In these cases, as part of the troubleshooting process, it's good to find out what events have been generated the most so as to help identify the root cause of the problem.
How can the top occurring events be identified for a specific time period?
Release: All Supported Releases
Component: SPCAEM - Events and Alarms
NOTE: In the following MySql commands, replace <PASSWD>
with the root password for your DX NetOps Spectrum version.
You can find out which are the top events generated by querying the DDM db (Archive Manager Data base) as follows;
bash -login
)cd $SPECROOT/mysql/bin
./mysql --defaults-file=../my-spectrum.cnf -uroot -p<PASSWD> ddmdb
SELECT hex(type), COUNT(*) AS cnt FROM event WHERE utime >= UNIX_TIMESTAMP("2018-12-30 00:00:00") AND utime <= UNIX_TIMESTAMP("2019-01-02 23:59:59") GROUP BY type ORDER BY cnt DESC LIMIT 10;
SELECT hex(type), COUNT(*) AS cnt FROM event WHERE (utime > (unix_timestamp(curdate()) - 1*24*3600 ))
Query a specific event code to see the number of times this event has occurred on each device:
start date end date event code
SELECT hex(model_h), count(*) as c from ddmdb.event where utime > UNIX_TIMESTAMP('2022-07-28 00:00:00') and utime < UNIX_TIMESTAMP('2022-07-29 00:00:00') and type=0x10d67 group by hex(model_h) order by c desc;