On 12/03/07, Hamid Taromian <[EMAIL PROTECTED]> wrote: > can we send trap out side the main agent. > > i mean can we use send_v2trap funcion in our code wich is not > compiled in master agent to send traps?
If your code is part of an agent (either the master agent, or an AgentX subagent), then you can use 'send_v2trap' and friends to generate traps. If your code is part of a different application (not an agent), then you can *NOT* use 'send_v2trap'. This API relies on functionality provided by the agent framework. For a standalone application, you'll need to construct and send the PDU yourself. See 'apps/snmptrap.c' for an example of the sort of code you'll need. Dave ------------------------------------------------------------------------- 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
