Hello all,

I have tried to figure this out from the FAQ and docs for Net-SNMP, but
still escapes me...

The FAQ entry "How can I get the agent to generate a trap (or inform)?"
contains the statement:

  "Note that these APIs are only available within the agent (or
  subagents), and are not available to stand-alone applications.
  The code for 'snmptrap' shows an approach to use in such a case."

I used the mib2c to generate a subagent program that contained my MIB
objects and sent a trap every time an alarm went off (from some example
code). Now I have an application that does numerous other things, but would
like to send SNMP traps when certain events (known to my application) occur.

Would such an application be an agent/subagent, or a "stand-alone"
application? (I am guessing that it is "stand-alone", as the code from the
mib2c generated piece won't work in the new app.)

Any clarification is appreciated!

TIA,
DA


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
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

Reply via email to