Re: Processing traps

Dave Shield <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
On 12 July 2010 19:16, Joseph L. Casale <[email protected]> wrote:
>           As far as I understand so far, SNMPv2-MIB::snmpTraps.6
> is suitable for me to leverage to send non vendor specific info

No - SNMPv2-MIB:snmpTraps.6 is *NOT* suitable for you to use.

Anything other than one of the standard traps (i.e. snmpTraps.1-5)
is a "vendor-specific" trap.   So you *MUST* use an enterprise-specific
OID to represent them.

It doesn't matter whether this is part of a commercial product, or a
purely internal system.   Hijacking elements of the official MIB structure
namespace is a Very Bad Idea.   Don't Do It!


>                                There's the catch. What I tried to look for was
> something generic that could be site specific so at least by spec, shouldn't
> be utilized outside my company. Does anything like this exist?

I don't believe there's anything officially designated for this purpose, no.
Enterprise numbers are available free on request, so the whole of the
'enterprises' tree effectively serves this purpose.

The Net-SNMP project has defined the MIB object
       NET-SNMP-MIB::netSnmpPlaypen
            to act in a similar role.   You are welcome to use this
space if you like.


> Given the scope of my need, it hardly warrants investing the time to register
> a space, then write a MIB object...

It is *ALWAYS* worth writing a proper MIB to define the objects you will
be working with.    You need to have some form of internal design in mind
(syntax and semantics) anyway - the MIB file simply codifies this.

For one thing, the act of writing this down in a structured manner forces you
to clarify exactly what you are trying to do.  It makes it harder to
simply wing it..

For another, if you get knocked down by a bus, somebody will have to pick
up where you left off.  A MIB file, with vaguely meaningful names and
descriptions will at least give that poor soul a fighting chance!

Dave

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
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.