Re: agentx: how do I register my traps

Stéphane Charette <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <CA+HxBULejECL=uEf-zeA987P2jv5KYnN_-1mTXZUhuh58CZJqw@mail.gmail.com>
>
> My question: What do I call to register my trap definitions?
>>
>
> You don't have to 'register' trap definitions, you simply have to
> 'send' the (correctly composed) notification (agentx-Notify-PDU).
>

Thank you!  Next related question:

When I run "mib2c -c mib2c.notify.conf myMib" the functions generated look
more-or-less like this:

> snmp_varlist_add_variable( &varlist, snmptrap, ... )
> send_v2trap( varlist );
> snmp_free_varbind( varlist );

But...where does send_v2trap() actually send the trap notification?  How
does it know on which host the SNMP daemon is running?

Stéphane Charette

------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2

_______________________________________________
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.