problem creating row

Hellsten, Marcus Marcus.Hellsten____peek.se
Tue Aug 13 14:42:00 CEST 2002


I have a table with an index composed of two columns, an IPAddress and an
OID. rowStatus is not used (don't ask). Initializing the table with a bunch
of rows, changing them, and deleting them works fine. However, when I try to
create a new row (by doing a set on a column that has read-create access) it
does not work.

The OID of the set request can be for example:

1.3.6.1.4.1.1618.2.2.2.1.1.3.192.168.3.2.1.3.6.1.4.1.1618.3.5.3.1

The index part of this is:

192.168.3.2.1.3.6.1.4.1.1618.3.5.3.1

MibTable::prepare_set_request calls MibTable::could_ever_be_managed, which
in turn calls is_index_valid. is_index_valid succefully(?) goes through the
for loop checking the the two indexes. It then returns false on this line:

return ((o.len() == l) && (i >= index_len));

This is because o.len() returns 15 and not 1. 15 is the length of the index
shown above.

I don't understand the significance of this line. Any suggestions on what I
might be doing wrong?

Thank you for your time,
Marcus





	PEEK
Marcus Hellsten
	Peek Traffic AB
	PO Box 10158
	SE-121 28 STOCKHOLM GLOBEN
	SWEDEN

	Tel:  +46 8 55610700
	Fax: +46 8 6488540
	mailto:marcus.hellsten____peek.se

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.agentpp.org/pipermail/agentpp/attachments/20020813/7a96cbec/attachment-0001.htm 


More information about the AGENTPP mailing list