Thanks Wes Hardaker, It works in the way which I had expected. Thanks & Regards, Santhosh
-----Original Message----- From: Wes Hardaker [mailto:[EMAIL PROTECTED] Sent: Thursday, October 05, 2006 8:40 PM To: SANTHOSH S (WT01 - Broadband Networks) Cc: [email protected] Subject: Re: call back function on SNMP agent init completion >>>>> "ss" == santhosh sundarasamy <[EMAIL PROTECTED]> writes: ss> Hi ss> Is there a way to register call back function which needs to be ss> invoked after all the SNMP agent init ( all MIB module init ) gets over? ss> I had seen snmplib/callback.c, and tried snmp_regiter_callback() ss> with SNMP_CALLBACK_SESSION_INIT. But my function is not invoked after ss> init procedure. ss> Please let me know how / what API to use for the same? There should probably be something later than this, but I don't think there is. But there is a callback that happens after all the config processing has been done, which has been sufficient in the past for most modules: snmp_register_callback(SNMP_CALLBACK_LIBRARY, SNMP_CALLBACK_POST_READ_CONFIG, your_super_function_here, NULL); -- Wes Hardaker Sparta, Inc. ------------------------------------------------------------------------- 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
