>>>>> On Fri, 29 Apr 2011 14:20:01 +0800, "liuying" <[email protected]> said:

l> In the main.c,Iuse: 

l> write_exampletrap2(COMMIT,NULL,0,0,NULL,NULL,0)

You need to add the minimum set of varbinds that describe the trap.  See
the agent example in agent/mibgroup/examples/notification.c for how to
add the varbinds.  It uses the agent's send_v2trap to send the trap,
which will be different, but the rest will be similar.
-- 
Wes Hardaker
Cobham Analytic Solutions

------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
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