Re: [snmpd] How to generate trap messages defined in my MIB

"Dave Shield" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
On 10/12/2007, Tako Chang <[email protected]> wrote:
> I write down my MIB, and define some traps
> But how do I handle these by snmpd?
> Use the M2c application generate code for them?
> or Write another script in my system to call snmptrap API?

Either approach would be workable.
A lot depends on how comfortable you feel in writing
code for the SNMP agent.   That's probably the cleaner
approach in general, but a shell script to invoke "snmptrap"
would be a simple quick-n-dirty approach for getting things
working quickly.


The other thing to consider is when these traps should be
sent.  What conditions/events/etc should trigger the generation
of your traps?

Dave

-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
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.