The transition to NetApp MS Azure AD B2C is complete. If you missed the pre-registration, you will be invited to reigister at next log in.
Please note that access to your NetApp data may take up to 1 hour.
To learn more, read the FAQ and watch the video.
Need assistance? Complete this form and select “Registration Issue” as the Feedback Category.

Active IQ Unified Manager Discussions

mass acknowledgement?

stading

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

13 REPLIES 13

adaikkap

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.

sinhaa

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.

adaikkap

what will windows DFM admin do ?

Will  the commad work ?

Perl makes it OS agnostic.

sinhaa

@

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.

sinhaa

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.

arne_asmus

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

YONI_SHPERLING

Great

Thanks !

peter_lehmann

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

MAMMANN

Hi Peter,

Had the same problem. I wrote the attached Windows Command-Line Script for getting this done.

best regards,

Matthias

adaikkap

Hi Peter,

         With OCUM 5.2RC1 and later, you may not need this, as there is a inbuilt cli to purge the events.

[root@vmlnx ~]# dfm purge help

NAME

    purge -- purge events and data protection job events from the Database.

SYNOPSIS

    dfm purge event [-S <Severity>] [-s] <purge-interval>

    dfm purge dpevent [-J <jobId>] [-s] <purge-interval>

DESCRIPTION

    The purge command purge the events and data protection job events from database

    -S <Severity>

        Purge the events whose severity is less than or equal to <Severity>.

    -s

        Show the details about the events without cleaning up them fom DB.

    -J <JobId>

        Purge the dpevents whose JobId is less than or equal to <JobId>.

[root@vmlnx ~]#

[root@vmlnx ~]# dfm purge event help

NAME

    event -- purge events that are older than interval

SYNOPSIS

    dfm purge event [-S <Severity>] [-s] <purge-interval>

DESCRIPTION

    This command is used to purge history events that are older than purge interval.

    -S <Severity>

         Purge only the events which has severity equal or less than 'Severity'

    -s

         Shows the details of the events, without cleaning up them from DB

[root@vmlnx~]#

Regards

adai

adaikkap

Hi Peter,

     OCUM 5.2 has a feature, which during upgrade or restore deletes all events irrespective of the severity beyond the minimum of (value of eventsPurgeInterval or 180days).

And as you said, there is the dfm purge cli's as well.

Regards

adai

pascalduk

Perhaps it helps to list only all the information events:

dfm event list -S information

peter_lehmann

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

Announcements
NetApp on Discord Image

We're on Discord, are you?

Live Chat, Watch Parties, and More!

Explore Banner

Meet Explore, NetApp’s digital sales platform

Engage digitally throughout the sales process, from product discovery to configuration, and handle all your post-purchase needs.

NetApp Insights to Action
I2A Banner
Public