On 09/03/07, maciej_golas <[EMAIL PROTECTED]> wrote:
> I want to write a subagent that will sent a trap as a response to SET
> command.
There is an example of exactly this behaviour in the file
'agent/mibgroup/examples/example.c'
See the blocks entitled "EXAMPLETRIGGERTRAP" and
"EXAMPLETRIGGERTRAP2", and the accompanying
write routines.
Unfortunately this uses the old (v4) MIB module API,
but things would be very similar with the newer-style code.
Once again, you'd actually send the trap in the 'COMMIT'
phase - in much the same way as with these two examples.
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-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders