2009/6/2 Tewen Hsieh <[email protected]>:
> I have tried to add a shutdown_xxx function in my dynamic module, but
> it seems not be called when I use "killall -HUP snmpd" to reload config
> file.

What value did you use for "xxx"?
This should match the "init_xxx" routine
  (and hence match the token used to load the module)


> My snmp agent version is 5.1.1.

Hmmm....  that's a very old version (March 2004)
and the 5.1.x line is no longer supported.
It's not even the most recent version on that line,
and will be missing various fixes (including security fixes)

You should really be thinking of upgrading.



> Is there any step I miss?

Ah - I think I've spotted the problem.
Try renaming the shutdown routine to be "deinit_xxx" instead.

The current development code has brought shutdown handling
into line with non-dlmod modules,  but earlier releases seem
to use a different name.

Dave

------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to