Subscribe
Highlighted

mass acknowledgement?

IHAC for which I need to identify a process to perform a mass acknowledgement of all existing events/alerts on an Operations Manager instance.  Is there a 'dfm option' I can leveredge here?  Or some other option?

Thanks,

Rick Stading

Re: mass acknowledgement?

Hi Rick,

          Attached is a simple script written by one of my collegues, to acknowledge and delete dfm events.

What you may do is comment out the delete part and use it.

Regards

adai

PS: The credit goes to the owenr of the script  Prasad S.

Re: mass acknowledgement?

This thing may not even need a script, a simple shell command one line will do it.

On LINUX host:

for i in `dfm event list -q|tr -s ' '|cut -d " " -f 2`; do dfm event ack $i; done

This will work on windows as well if you use cygwin host.

warm regards,

Abhishek

If this post resolved your issue, help others by selecting ACCEPT AS SOLUTION or adding a KUDO.

Re: mass acknowledgement?

what will windows DFM admin do ?

Will  the commad work ?

Perl makes it OS agnostic.

Re: mass acknowledgement?

@

what will windows DFM admin do ?

Will  the commad work ?

----------------------------------------

I think you missed it. I mentioned this in my last post itself that this works with windows as well if the users use a cygwin environment. cygwin a great utility for windows.

www.cygwin.com/

@

Perl makes it OS agnostic.

----------------------------------------------

Not hardly. It needs a perl installation on windows.

If this post resolved your issue, help others by selecting ACCEPT AS SOLUTION or adding a KUDO.

mass acknowledgement?

Infact cygwin comes with Perl as well or anything one always wanted in a windows environment.

http://en.wikipedia.org/wiki/Cygwin#Features

If this post resolved your issue, help others by selecting ACCEPT AS SOLUTION or adding a KUDO.

Re: mass acknowledgement?

Hello together,

i have solved this with an Powershell Script:

<dfm-event-delete.ps1>

dfm event list -q | Select-String -Pattern "(?<ID>[0-9]+)" | select-object @{Name="ID";Expression={$_.Matches[0].Groups["ID"].Value}} | foreach {dfm event delete $_.ID}

</dfm-event-delete.ps1>

Regards Arne

Re: mass acknowledgement?

Hi everybody

Is there a way to enhance the POSH script to ONLY delete the INFORMATION Events?

My customer is having to delete up to 3000 Information Events per day...

Thanks in advance,

Peter

Re: mass acknowledgement?

Perhaps it helps to list only all the information events:

dfm event list -S information

Re: mass acknowledgement?

Sounds like a good idea, thanks.

I've just installed 5.2RC1 and found out there is a new command: dfm purge, which could help us getting this done.

Peter