Re: clear traps

John Hardin <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Dave Shield wrote:

>On Wed, 2005-10-05 at 11:06 +0200, Vishwanath Kalbagilmath wrote:
>  
>
>>By clear trap, I mean:
>>
>>For instance, if there are some traps generated for say "link down"
>>with Severity set to Critical/Major/Minor etc... every few min, after
>>sometime when the link is up, a trap is generated for "Link up" with
>>severity set to "Clear". This trap should clear all the previous link
>>down traps.
>>    
>>
>
>Thanks - that's a useful clarification.
>
>  
>
>>As I understand this is more related to trap viewer utility,
>>    
>>
>
>Correct.  SNMP traps have no concept of "severity".
>That's purely a function of (some) trap receiver applications.
>
>As far as SNMP is concerned, a trap is simply a notification of
>some event or condition (perhaps with some associated information).
>It's purely up to the receiving application as to how they regard
>it - whether it's seen as an error (critical/major/minor), a
>warning, part of normal operation, or whatever.
>
>
>  
>
>> but all I wanted to know is if there is any standard way of doing it.
>>    
>>
>
>I don't believe so.
>The whole idea of "severity" is not really part of standard SNMP,
>so the idea of "clear" traps isn't standardised either.
>
>I think you'd need to consult the documentation for your trap
>receiver software, and the relevant MIB files, to decide how
>best to implement such behaviour.
>
>Dave
>  
>
I don't know how widespread this is, but I've dealt with a customer who
wants all traps to report the entrance or exit of a state.  The terminology
they use is Set and Clear traps for a Condition on the device.  They also
want the trap varbind list to include a severity, though there is no
standard way to do this so they would have to write code to interpret it. 
Another way to associate severity with a trap, if the receiver is using
something like HP Openview, is to include a comment
in the trap's NOTIFICATION-TYPE block like this:

mytrap NOTIFICATION-TYPE
   OBJECTS ...
   STATUS   ...
   DESCRIPTION "  ...  "
-- #SEVERITY MAJOR
   ::== { traps  1 }

Openview will interpret this and report the trap with the appropriate
color in the event log after it loads your MIB.




-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.