Subscribe
Highlighted

User-defined traps are not supported in clustered Data ONTAP

Hi,

 

Can someone shed some light on this, what do you mean by that ?

 

User-defined traps are not supported in clustered Data ONTAP.
https://library.netapp.com/ecmdocs/ECMP1196907/html/GUID-FB625923-2996-491B-B911-ECF68B9CACFD.html
http://docs.netapp.com/ontap-9/index.jsp?topic=%2Fcom.netapp.doc.dot-cm-nmg%2FGUID-FB625923-2996-491B-B911-ECF68B9CACFD.html


Unlike 7-mode, cDOT does not support user-defined traps. Does that mean, one cannot set SNMP trap for non-global threshold values ?

 

 

My intention is to - set the traps for Volume.full & volume.nearlyfull on per volume basis on cDOT filers and not follow global thresholds?


7-mode example:
filer> snmp traps dfPerCentKBytesCapacity.edge-1 90

filer> snmp traps

dfPerCentKBytesCapacity
active = off
OID = snmp.1.3.6.1.4.1.789.1.5.4.1.6.9
trigger = level-trigger
interval = 3600
edge-1 = 90 (up) <-- now we have a trigger at value of 90
current-value = 0

 

 

Thanks,
-Ash

Re: User-defined traps are not supported in clustered Data ONTAP

Hi

 

You can define custom thresholds on each volume. i assume SNMP following these settings.

http://docs.netapp.com/ontap-9/index.jsp?topic=%2Fcom.netapp.doc.dot-cm-cmpr-940%2Fvolume__modify.html&cp=4_1_27_5

 

Gidi

Re: User-defined traps are not supported in clustered Data ONTAP

Hi,

 

Sorry, It has no bearing on SNMP alerts. SNMP alerts are triggered via pre-defined MIB, which are defined @ 95 & 98 % for nearlyfull & full condition.  Is it working for you and if yes, could you share the screenshots and SNMP alert viewer.

 

Thanks,

-Ash

Re: User-defined traps are not supported in clustered Data ONTAP

[ Edited ]

Hi

in the following article it's says that ONTAP raises the EMS message with relation to the parameter i provided. and that you can set an SNMP trap for it
https://library.netapp.com/ecmdocs/ECMP1368017/html/GUID-20114057-1848-45BE-9BE1-6B2191E74A8B.html
For setting the trap you will need to set the server in "event destination" and the relevant events touted to it in "event filter" and "event filter rule"

What you used to to with the 7 mode commands you provided. is to have ONTAP monitoring it's own SNMP OID, and triggers an SNMP trap when an "edge"  hit's on the configured OID parameter.

The MIB was not involved in this process and don't provide (in Cdot and 7mode) individual volume threshold related OID. (it does have 2-3 global system OID indicating if any volume or aggr hit  hardcoded 98/95% and that's indeed not seems configurable)

 

Gidi

Re: User-defined traps are not supported in clustered Data ONTAP

Hi, 


Thanks for the reply. I did figure out the event notification command for setting the trap destination and using filter but even though I am able to see the event in the history but did not trigger a trap to the traphost, not sure what to do next.

 

Are you able to test it on your lab and share the screenshot. Basically, I need to trigger a trap for a spcific set of volumes at customized values.

 

Thanks,

-Ash

Re: User-defined traps are not supported in clustered Data ONTAP

Hi

 

i don't think i have something ready to accept SNMP Traps in my environment.

What is your event settings looks like ? it can be very confusing with the 10 different objects and all the deprecated commands around "event".

also. is there a network connectivity from your node management lif to you snmp server ?

 

Gidi

 

Re: User-defined traps are not supported in clustered Data ONTAP

Even route destiantion and filter is set properly, and SNMP does have route to Node Mgmt LIF, I will do some investigation tomorrow and will update you on the result.

 

I am still eager to understand, what do you mena by - user-defined-traps ?

 

NetApp cDOT documentation states - user-defined-traps not supported,  Is there an example of what are they ?

 

Thanks,

Ash

Re: User-defined traps are not supported in clustered Data ONTAP

Hi there,

 

SNMP organises information about a system into a OID-addressed MIB. This MIB can be walked by SNMP software using the appropriate community string.

 

The user-defined SNMP traps in older versions of ONTAP would enable traps to be sent to a management host when certain conditions on data in that MIB were met, so as a push operation, vs the pull of a walk. 

 

This functionality was not widely used in ONTAP, and in clustered ONTAP, it is not present, as management paragdims aim for simple appliances with external monitoring, using our free OnCommand Unified Manager software, or the software of your choice walking SNMP or using ZAPI to poll.

 

I hope this clarifies what this feature was.

Re: User-defined traps are not supported in clustered Data ONTAP

Thanks Alex for providing info around 'user-defined-traps', so as I understand, in cDOT it's the Management monitoring application such as OCUM/Nimsoft etc, pulling it at certain intervals rather then ONTAP pushing it when the thresholds are met. Does that mean, if the Pull is set every hour, and the vol reaches nearly-full threshold , it wiill not be sent out, instead it will be pulled when the polling is scheduled?

 

 

Further, I would get confirmation on if this is set up correctly.

 

Each volume by default is set 95 & 98 % for nearly  & full condition. I have modified one volume to customized threhold.

 

nac01::*> event notification create -filter-name default-trap-events -destinations snmp-traphost

 

nac01::*> event filter rule add -filter-name default-trap-events -type include -message-name monitor.volume.nearlyFull -snmp-trap-type built-in -position 1 -severity INFORMATIONAL

 

nac01::*> volume show -vserver svm_cifs -volume NA01_CIFS -instance

Volume Nearly Full Threshold Percent: 95%

Volume Full Threshold Percent: 98%

 

nac01::*> volume modify -vserver svm_cifs -volume NA01_CIFS -space-full-threshold-percent 90 space-nearly-full-threshold-percent 85

 

Is it correct in understanding that - When the volume space full threshold settings are breached, there will be a TRAP on the monitoring software such as OCUM/Nimsoft etc and this will over-ride the gobal thresholds for the volume specifically configured for these values.

Re: User-defined traps are not supported in clustered Data ONTAP

The "pull" of a walk is more commonly done every 5 minutes or so, not hourly, meaning the interval for finding an almost full volume is reduced significantly. 

 

While the commands listed look correct, I do not have an environment where I can test them. While it sounds appealing for the array to notify you directly, I advise against it - as the commands are marked as deprecated, they are likely to be removed in future versions of ONTAP as they do not fit the management paragdim we are aiming for.