Re: how to unregister a table

Dave Shield <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
On 11 March 2010 18:51, Kathy McLeod <[email protected]> wrote:
> The MIB contains one scalar and one table.  The registrations are:
>
> netsnmp_register_scalar() (leaving off the parms)
> netsnmp_register_table_iterator(my_handler, iinfo);
>
> In the deinit() method, can I just do unregister_mib?

Yes.   That should work OK.

>  I don't see anything to deregister a table_iterator.

When registering a MIB, there are a whole family of helper
registration functions, that set up the handler chain appropriately
for that particular helper.

Things are much simpler when unregistering a MIB.
   "Here's a handler chain - I don't need it any more"
The same unregister call can be used for everything.

Dave

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.