On 23 February 2010 10:53, maxim maxim <[email protected]> wrote: > 1. Can i send the trap only from snmp agent or subagent?
The agent (/subagent) can send traps - yes. See the man page 'snmp_trap_api(3)' There are examples of this in the file agent/snmpd.c But this is not the *only* way you can send traps. > 2. If no i have the application for get message (the file is > attached), how i can to change it for sending the traps v1 and v2? > some examples can to help me. See 'apps/snmptrap.c' This is a command-line tool to generate traps (both v1 and v2) Dave ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
