unregister_mib fails

Pal Saint <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <CAJX137pjmihwzt0JYyHB8sNOYDYU6Bc+mDqffrHEfJww8Vi=sA@mail.gmail.com>
All,

We use REGISTER_MIB() to register our MIB tables, and use unregister_mib()
for unregistering them. However, when SIGHUP is sent to snmpd, it fails to
unregister the MIB variables. It fails with "MIB_NO_SUCH_REGISTRATION".
Registering and unregistering code  is actually created by mib2c.old_api
code generation configuration. Let me know if you need more information.

Here is snmpd debug info...

dlmod: dlmod_create_module
dlmod: dlmod_load_module exampleTable: /usr/lib/snmp/dlmod/exampleTable.so
................. Registering exampleTable
register_mib: registering "exampleTable" at
SNMPv2-SMI::enterprises.8075.1.3.2.1.1 with context ""
register_mib: registering "exampleTable" at
SNMPv2-SMI::enterprises.8075.1.3.2.1.2 with context ""
register_mib: registering "exampleTable" at
SNMPv2-SMI::enterprises.8075.1.3.2.1.3 with context ""
register_mib: registering "exampleTable" at
SNMPv2-SMI::enterprises.8075.1.3.2.1.4 with context ""
register_mib: registering "exampleTable" at
SNMPv2-SMI::enterprises.8075.1.3.2.1.5 with context ""
register_mib: registering "exampleTable" at
SNMPv2-SMI::enterprises.8075.1.3.2.1.6 with context ""
register_mib: registering "exampleTable" at
SNMPv2-SMI::enterprises.8075.1.3.2.1.7 with context ""

...
dlmod: Calling deinit_exampleTable()
deinit_exampleTable: unregistering exampleTable...
register_mib: unregistering SNMPv2-SMI::enterprises.8075.1.3.2
deinit_exampleTable: unregistering exampleTable failed:-1
dlmod: Module exampleTable unloaded

------------------------------------------------------------------------------
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-dev2dev

_______________________________________________
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.