Re: Define Trap mib file and generate Trap codes problem

Dave Shield <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
2010/1/11 Alexander King <[email protected]>:
>>>If I do not use the same parent OID,how do I distinguish the
>>> notification entries belong to?

What do you mean by this?

If there is management information associated with a notification,
this would typically be listed in the OBJECTS clause of the notification
definition.   For example, see the linkUp/linkDown traps, in IF-MIB.

This also means that you've got information about *which* interface
(or more generally, which row of the table) triggered the trap.



>>>the XXX is my corporation name(you known it,:=)),I defined the
>>> scalars,tables,and notification entries in one file,so I can run the mib2c
>>> -c mib2c.scalar.conf XXX,mib2c -c mib2c.iterate.conf XXX, mib2c -c
>>> mib2c.notify.conf XXX and integrated three code files into one,and compiling
>>> it into my subagent.is it right?

You don't have to combine all three files into one.
You could equally as well keep them as three separate files,
and compile all three into the subagent.



>> but I just got send_controllerInfotrap_oid one trap send function

The fcPorttrap seems to be associated with hostInterfaceFCEntry
Where is this defined?  What is its OID?



>>> XXX is stand for uit,I had my mib file in the last mail, it ismaybe give
>>> you some information.

You had a *fragment* of the MIB in your last mail.
But it gave no indication what the enterprise OIDs for the two
traps were, or how these relate to your starting point.

There may be another message somewhere in the mailing list
archives that includes the full MIB, but I don't have the time to
search for it.

If the OID hostInterfaceFCEntry lies within the subtree rooted at
'uit', then mib2c should have generated a corresponding function
call.   If it lies outside this subtree, then it wouldn't.


Dave

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
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.