On 04/08/06, Siva Prakash Reddy G <[EMAIL PROTECTED]> wrote:
> When i say agent stop, which function is executed in system_mib.c file.
system_store()
When shutting down, the agent will call:
- any routines registered using SNMP_CALLBACK_STORE_DATA
- any routines registered using SNMP_CALLBACK_SHUTDOWN
- the routine 'shutdown_{module}'
plus various internal stuff.
Note that most modules don't bother handling shutdown specially, but
there are the hooks there if need be.
Note also that SNMP_CALLBACK_STORE_DATA is called at other times too -
not just at shutdown. Use one of the other hooks for general-purpose
closedown processing.
SNMP_CALLBACK_STORE_DATA is specifically for saving persistent config data.
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