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

How can I use "dfm event generate" to trigger a custom dfm event?


Dear All,

I am currently defining dfm alarms, calling the execution of a powershell script. In this script, I am parsing the DFM environment variables provided by DFM, to take conditional actions (send some nagios alerts,...) based on the nature of the event.

For some of those events, I would like to be able to call dfm inside my script to generate customized events, to which I could associate other alarms for instance.

From what I understood, I should first create a custom event (one that is not in the list of builtin events), and then use the command dfm event generate to trigger the creation of this custom event, that will then appear in DFM and execute associated alarms...

I have not been able to find any working example of such a customization. Could someone share some experience with me?

Thanks in advance




Hi Pierre,

     In order to first use dfm event generate you will need to define custom event first. I am pasting xml to define the same,

Input xml.

<?xml version="1.0" encoding="UTF-8"?>

<netapp  xmlns="" version="1.0">


    <about-message>This event is custom created</about-message>




        <event-name-pretty>Clone Space Saving Is Low </event-name-pretty>










output xml

<?xml version='1.0' encoding='UTF-8' ?>

<netapp version='1.0' xmlns=''>

          <results status='passed'>




[root@ ~]# dfm eventtype list OpsMgr:CloneSavings:LowCloneSpaceSaving

Event Name                                         Severity     Class

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

OpsMgr:CloneSavings:LowCloneSpaceSaving       Error        OpsMgr:CloneSavings


[root@vmlnx ~]# dfm event generate "OpsMgr:CloneSavings:LowCloneSpaceSaving" 258 "The clone has divluged from the parent and there is no more space savings"

Event OpsMgr:CloneSavings:LowCloneSpaceSaving for source amir generated.

[root@vmlnx ~]# dfm report view events 258

Severity    Event ID Event                                     Triggered    Ack'ed By Ack'ed       Source ID Source

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

Error       3861     OpsMgr:CloneSavings:CloneSpaceSavingIsLow 05 Oct 20:07                        258       mpo-vsim10:/amir

Information 178      Scheduled Snapshots Disabled              13 Sep 09:47                        258       mpo-vsim10:/amir


Hope this example of the alarm create.

[root@ ~]# dfm alarm create -E "" -h "OpsMgr:CloneSavings:LowCloneSpaceSaving"

Created alarm 1 with 1 email recipient.

[root@ ~]# dfm alarm list

Alarm                1

Group                Global

Event Severity       All

Event Name           OpsMgr:CloneSavings:LowCloneSpaceSaving

Email Addresses

[root@ ~]#




Hi Adai,

Quick question: What/Where does the xml go to define custom events and event classes on OC?  Today I run a script manually to check my snapmirror destination vols are >= the autosize max set on the source vols, and I'd like to generate custom alerts/alarms in Ops Manager if the script finds any that are non-conformant.  One of many possibilities!!




If you package your script, help file and XML in a zip file of the same name as the script, you can use the script installation tools in OnCommand Unified Manager to "install" your script as a plugin.  At that time the custom events in the XML file will appear in places such as dfm eventtype list along with all the default events.

Hi Everyone Id like to know where this XML goes to generate the custom event too.


Hi Martin,

     You will have to make an API call against your dfm server. Use the NMSDK it has to api, documentation and also the tool to run it.

Once the API is run an entry is made in the embedded sybase database.




Thanks a lot Adai.

We are now using this functionality to extend DFM monitoring capability, using powershell scripts. It's working perfectly.

Kind regards



Hi Pierre,

     Happy to help you. Good to know that you could achieve what you wanted with this feature.



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