In my implementation i wrote a function( netsnmp_new_interface) which will create a new interface. And i am calling this function from netsnmp_access_interface_container_load . I find that this function netsnmp_access_interface_container_load is called multiple times after certain time period, which is causing the interfaces to created again and my new set value is lost and the old value again comes.
Are we deleting the container and creating again after some time period ? Please let me help to understand this. Robert Story wrote: > On Tue, 02 Nov 2010 12:16:50 +0530 Manjit wrote: > M> Here i came across a function _mfd_ifTable_commit, in this function a > M> certain part of code is repeated twice. > > The ifTable code has a lot of auto-generated code, and I'm guessing that a > merge after teh templates were updated resulted in the duplicate code. > > M> In my implementation i am able to create a new row. When i try to set a > M> column for this row, it is showing that the operation is successful, > M> but when i do a snmget for that value it is showing me the previous value. > M> > M> /opt/servers/netsnmp/bin/snmpget -v 2c -c private 172.16.8.186 > M> IF-MIB::ifAdminStatus.9 > M> IF-MIB::ifAdminStatus.9 = INTEGER: up(1) > M> /opt/servers/netsnmp/bin/snmpset -v 2c -c private 172.16.8.186 > M> IF-MIB::ifAdminStatus.9 i 2 > M> IF-MIB::ifAdminStatus.9 = INTEGER: down(2) > M> /opt/servers/netsnmp/bin/snmpget -v 2c -c private 172.16.8.186 > M> IF-MIB::ifAdminStatus.9 > M> IF-MIB::ifAdminStatus.9 = INTEGER: up(1) > M> > M> Please help me to resolve this issue. > > Are you running as root? Are there any errors in the log file? You can also > try > cranking up debugging to see what's going on: -Daccess:interface (and > optionally "if,internal:if,verbose:if" as well); > > ------------------------------------------------------------------------------ The Next 800 Companies to Lead America's Growth: New Video Whitepaper David G. Thomson, author of the best-selling book "Blueprint to a Billion" shares his insights and actions to help propel your business during the next growth cycle. Listen Now! http://p.sf.net/sfu/SAP-dev2dev _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
