On 12/04/07, Passera Pablo-APP015 <[EMAIL PROTECTED]> wrote:
> Is there a callback function that is called to indicate that the
> agent is up and running?
I don't think so, no.
See the routine "receive()" in 'agent/snmpd.c' for what happens
when the agent is running. The code immediately before this
loop is called looks like:
snmp_store(app_name);
send_easy_trap(0, 0);
snmp_log(LOG_INFO, "NET-SNMP version %s\n", netsnmp_get_version());
netsnmp_addrcache_initialise();
receive();
You could shoehorn some form of "up and running" code into the
netsnmp_addrcache_initialise() routine, I suppose. Or just add it
to the main() routine directly.
But there aren't any clean hooks for doing this.
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