Hi,
I have a case where some of the MIBs table are implemented as shared tables
i.e there is 1 Master Agent and various subagents.
Master Agent registers at the root oid of the table whereas all the
subagents registers there respective row slices(using ubound and subid).
Now i have a requirement on subagent that it should periodically flush all
the registrations for a particular table and then again try to re-register
all its rows.
I don't want to unregister each row because this will add to traffic between
subagent and Master. (netsnmp_unregister_mib_table_row() is there for doing
this and this works correctly)
Instead i was thinking of unregistering all the rows by specifying the table
OID at the subagent which inturn should de-register all the rows of the
table for that subagent.
For that i tried to make a call to unregister_mib_context() by specifying
the table OID.
However the function could not find the subtree for the table OID and
returns MIB_NO_SUCH_REGISTRATION as no child is found
In function unregister_mib_context() it returns from check
if (child == NULL) {
return MIB_NO_SUCH_REGISTRATION;
}
In this function the child is determined using a call to
netsnmp_oid_equals() which does an exact match of the OID to the one stored
in subtree. Suspecting that in my case it will never match as i have
registered the instances in the first place and now looking for Table root
OID, i then wrote my version of netsnmp_oid_equals() function to match even
the table OID when the subtree contains the instance but still no match is
found.
Can you please point me out what i am doing wrong?
I also looked into the unregister_mibs_by_session() and modified it to
unregister the subtree on the basis of partial table OID match but still no
subtree is found.
Thanks in advance,
Manu
------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders