Re: Remove all events from NNMi (1245 Views)
Reply
Frequent Advisor
kimo
Posts: 68
Registered: ‎09-10-2007
Message 1 of 7 (1,245 Views)
Accepted Solution

Remove all events from NNMi

Hi,

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?

Thanks in advance.
There's no use of running when you're running in the wrong direction
Please use plain text.
Advisor
dharm123
Posts: 38
Registered: ‎10-27-2010
Message 2 of 7 (1,245 Views)

Re: Remove all events from NNMi

Hi Kimo,

Do you want to delete all snmp traps at one go?

Regards,
Dharmesh Shah.
Please use plain text.
Frequent Advisor
kimo
Posts: 68
Registered: ‎09-10-2007
Message 3 of 7 (1,245 Views)

Re: Remove all events from NNMi

Hi,

yes that's what I need to do

Thanks
There's no use of running when you're running in the wrong direction
Please use plain text.
Trusted Contributor
AlexanderH
Posts: 170
Registered: ‎06-13-2006
Message 4 of 7 (1,245 Views)

Re: Remove all events from NNMi

Hi,

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]

HTH Alexander
Please use plain text.
Valued Contributor
ARUNPRAKASH
Posts: 119
Registered: ‎01-27-2011
Message 5 of 7 (1,245 Views)

Re: Remove all events from NNMi

Dear kimo,
Use nnmtrimincidents.ovpl for deleting or you can archive it into somewhere.

No need to delete incidents and all. Just use nnmtrapdump.ovpl for trap configuration.


Cheers..!
Please use plain text.
Frequent Advisor
kimo
Posts: 68
Registered: ‎09-10-2007
Message 6 of 7 (1,245 Views)

Re: Remove all events from NNMi

Thanks a lot AlexanderH and ARUNPRAKASH

This worked fine and i got the below:

[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


Thanks a lot for your Help
There's no use of running when you're running in the wrong direction
Please use plain text.
Frequent Advisor
kimo
Posts: 68
Registered: ‎09-10-2007
Message 7 of 7 (1,245 Views)

Re: Remove all events from NNMi

Closed.
There's no use of running when you're running in the wrong direction
Please use plain text.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation