I've NNMi 9.0 over linux redhat, i noticed that i have an alarm regarding NNM health with severity Major.
The alarms is "Number of snmp traps persisted in the database approaching the maximum allowed limit. Currently, only snmp traps utilized within Causal Engine analysis will be accepted by the event system, while all other snmp traps will be dropped."
i selected some events and choosed "Delete" however it takes ages to process them from the GUI, is there a way to remove all events from the DB from the command prompt, or to remove alarms older than one month for example?
does nnmtrimincidents.ovpl perhaps do the work? You may use the cmd to delete incidents e. g. depending on their age.
From the manual: [QUOTE] nnmtrimincidents.ovpl is used to delete incidents from the incident table. -age age Specifies the age of incidents to trim. You should use this option in conjunction with the incr option. If specified, the value for age must be greater than 0. -incr increment Specifies the increment for age option. Supported increments include days, weeks, and months. -date date Specifies the date from which older incidents are trimmed. [/QUOTE]
[root@nnm bin]# nnmtrimincidents.ovpl -age 2 -incr days -path "\kareem\saveIncidents.gz" Number of incidents selected for operation: 23,092. Reference date from which older incidents will be selected for operation: 5/16/11 3:12 PM. Percentage of the database selected for operation: 22.69%. Do you wish to continue (y/n)? y Archiving selected incidents... Number of incidents archived: 23,149. Archive file: \kareem\saveIncidents.gz. Trimming selected incidents... Number of incidents successfully trimmed: 1,000. Number of incidents successfully trimmed: 1,000. Number of incidents successfully trimmed: 1,000. Number of incidents successfully trimmed: 553. Number of incidents successfully trimmed: 10. Done