RE: call back function on SNMP agent init completion

This is a discussion on RE: call back function on SNMP agent init completion within the SNMP Coders forums, part of the Networking and Network Related category; Thanks Wes Hardaker, It works in the way which I had expected. Thanks & Regards, Santhosh -----Original Message----- From: Wes ...


Go Back   Usenet Forums > Networking and Network Related > SNMP Coders

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 10-07-2006
 
Posts: n/a
Default RE: call back function on SNMP agent init completion

Thanks Wes Hardaker, It works in the way which I had expected.

Thanks & Regards,
Santhosh

-----Original Message-----
From: Wes Hardaker [mailto:hardaker@users.sourceforge.net]
Sent: Thursday, October 05, 2006 8:40 PM
To: SANTHOSH S (WT01 - Broadband Networks)
Cc: net-snmp-coders@lists.sourceforge.net
Subject: Re: call back function on SNMP agent init completion

>>>>> "ss" == santhosh sundarasamy <santhosh.sundarasamy@wipro.com>

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?p...rge&CID=DEVDEV
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/...et-snmp-coders
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 01:22 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0