net-snmp help required
Imran Ali <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
Subject: Need net-snmp help! Can't properly unload a shared object (dlmodNextIndex not decrementing) This question refers to the Net-SNMP online tutorial entitled, "Writing a Dynamically Loadable Object": http://www.net-snmp.org/wiki/index.php/TUT:Writing_a_Dynamically_Loadable_Object<http://www.net-snmp.org/wiki/index.php/TUT:Writing_a_Dynamically_Loadabl> I've succesfully carried out the steps listed under "Steps to test the shared object via runtime MIB configuration". However, I'm trying to go one step further in this tutorial and unload the shared object, and delete it from the "dlmodTable". I can do both of these things, however, "dlmodNextIndex", which is documented as being "the index number of next appropiate unassigned entry in the dlmodTable", remains unchanged. I would have thought it should decrement. Can anyone please shed some light on this matter? This is what I do: 1) Check "dlmodNextIndex" (should be the next available index into "dlmodTable"): % snmpget localhost UCD-DLMOD-MIB::dlmodNextIndex. 0 dlmodNextIndex.0 = 2 2) Unload the shared object: % snmpset localhost UCD-DLMOD-MIB::dlmodStatus.1 i unload dlmodStatus.1 = unload(5) 3) Check that it has been unloaded: % snmptable localhost UCD-DLMOD-MIB::dlmodTable SNMP table: dlmodTable dlmodName dlmodPath dlmodError dlmodStatus nstAgentPluginObject /path/to/nstAgentPluginObject.so unloaded 4) Delete it: % snmpset localhost UCD-DLMOD-MIB::dlmodStatus.1 i delete dlmodStatus.1 = delete(7) 5) Check that it has been deleted: % snmptable localhost UCD-DLMOD-MIB::dlmodTable SNMP table: dlmodTable no entries 6) Check "dlmodNextIndex" (Should have decremented? But it doesn't!) % snmpget localhost UCD-DLMOD-MIB::dlmodNextIndex.0 dlmodNextIndex.0 = 2 ------------------------------------------------------------------------------ Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d _______________________________________________ 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