error on subcontainer remove (-1) while deleting row

"Awadhesh Kumar" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hi,
I am using Net-Snmp 5.4.1 for agent development. I am using mib2c
configuration array-user.conf for snmp table implementation. I am using
net-snmp API for row creation (CONTAINER_INSERT) and row deletion
(CONTAINER_REMOVE). We have requirement to delete the particular row based
on ceratin non-index column value. Since my mib is SNMPv1 based mib so I am
deleting the row using container API (CONTAINER_REMOVE). I am seeing a error
message on console when i try to delete the row using CONTAINER_REMOVE. It
is giving following error message on sub-agent console

*error on subcontainer remove (-1)*

Even when i do snmpwalk on that table then that row is deleted successfully
too.

Is this just a warning or some major problem due to my sub-agnet
implemetation? I am using folllowing set of code to delete the row

  netsnmp_index index;
  oid index_oid[4];
  gsomcGrpCfgTable_context *ctx = NULL;
  index_oid[0] = indexs.m_GsomcGsId;
  index_oid[1] = indexs.m_GsomcGscId;
  index_oid[2] = indexs.m_GsomcGtsChassisId;
  index_oid[3] = indexs.m_GsomcCuChainId;
  index.oids = (oid *) & index_oid;
  index.len = 4;
  ctx = NULL;
  // Search for it first.
  ctx = (gsomcGrpCfgTable_context *) CONTAINER_FIND (cb.container, &index);

  if (ctx)
    {
      CONTAINER_REMOVE (cb.container, &index);
      gsomcGrpCfgTable_delete_row (ctx);

    }
What may be the problem? Could you please help me out? Is there any other
way which delete the SNMPV1 row?

Thanks in Advance
Awadhesh.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

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