how to remove a context from agentx subagent
"John Forsyth" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
Hello,
I have a situation where I am required to register and un-register a table
within different contexts at runtime. The MIB module doing this preferably
needs to run as a subagent process.
My problem is that, when the table(handler) is unregistered, the context
still appears in the vacmContextTable when the MIB module is run as a
subagent. When the MIB is run as a dlMod, the context is removed from
vacmContextTable (as I would expect).
I am registering the table(handler) in a specific context as per the FAQ:
handler = netsnmp_create_handler_registration( ...)
handler->contextName = strdup(contextName)
netsnmp_table_container_register(handler, ...)
which works fine (new context appears in the vacmContextTable, etc).
To unregister, I am using:
netsnmp_unregister_handler(handler)
which works as a dlMod, but not as a subagent.
Debugging, I can see output indicating the table/context being unregistered
by the master agent, but the context still appears in vacmContextTable.
Is there any means by which it is possible to remove the context from a
subagent via agentx?
Any help is appreciated.
Regards,
John
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
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