Re: clear traps
Alex Burger <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
Dave Shield wrote:
> On Thu, 2005-10-06 at 12:55 -0700, John Hardin wrote:
>
>>Openview has a way to associate a severity with a trap at the mgmt station
>>but if you specify the severity in the MIB file it sets the default on load.
>
<snip>
>
> In which case, I'd say that it's up to the vendor who supplied the
> customer with OpenView, to provide suitably mangled versions of the
> relevant MIB files. I don't think it's appropriate to expect all
> other SNMP companies and developers to pander to this sort of
> proprietary extension.
I have no idea how long OpenView has supported the --#SEVERITY line in
MIB files, but when I wrote SNMPTT I was under the impression that it
was something that Novell introduced for Managewise, but I may be wrong.
The current APC MIBs include the extensions, plus some others I have
found over the years.
I personally think it's a great idea. The extensions are considered
comments to Net-SNMP and any other SNMP application so they do no harm.
Having them in the MIB file saves a lot of time when importing
hundreds of traps in to SNMPTT and OpenView.
> I'm not convinced that shoe-horning this into the MIB file syntax
> is a sensible way to achieve this, though. I'd suggest that
> 'snmptt' adopts a better approach - having a separate configuration
> directive to set up the mapping between a particular trap OID, and
> the appropriate severity.
SNMPTT uses it's own file (snmptt.conf) to store the trap information,
but the file is usually generated using snmpttconvertmib which
understands the --# lines. This is probably similar to HPOV when the
mibs are 'compiled'.
I find the most useful extensions are the SUMMARY and ARGUMENTS lines.
For example:
--#SUMMARY "Drive array spare drive on controller %s, bus %s: status is %s"
--#ARGUMENTS {3, 1, 2}
would be stored in snmptt.conf as:
Drive array spare drive on controller $3, bus $1: status is $2
Which could be translated by SNMPTT or OpenView to:
Drive array spare drive on controller 1, bus 0: status is failed
Alex
-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
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