Re: Table iterator when index is sorted

2006-09-20 Thread Sachin Mishra
I didn't get any response for this, so I am resending just in case...

Thanks,
Sachin

On Mon, 2006-09-18 at 12:12 +0530, Sachin Mishra wrote:
 In my subagent I have data which is already sorted w.r.t. to index.
 Should I use iterate.conf or array-user.conf to generate the subagent
 template code. Is there anyu example of array-user.conf?
 The index for my table is OCTET-STRING. While using iterate.conf, if I
 specify the SORTED flag, it compares the complete oid and just the index
 part of it. As a result, it returns wrong values in comparison. e.g. If
 I have indexes indexaa and indexb, the oid it compares is
 baseoid.indexlength(2).index(aa) with  baseoid.indexlength(1).index(b)
 and concludes that the order should be b followed by aa whereas
 lexicographically it should be the other way round. 
 Am I doing something wrong? Do I need to perform some extra steps?
 
 Thanks,
 Sachin



-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Table iterator when index is sorted

2006-09-18 Thread Sachin Mishra
In my subagent I have data which is already sorted w.r.t. to index.
Should I use iterate.conf or array-user.conf to generate the subagent
template code. Is there anyu example of array-user.conf?
The index for my table is OCTET-STRING. While using iterate.conf, if I
specify the SORTED flag, it compares the complete oid and just the index
part of it. As a result, it returns wrong values in comparison. e.g. If
I have indexes indexaa and indexb, the oid it compares is
baseoid.indexlength(2).index(aa) with  baseoid.indexlength(1).index(b)
and concludes that the order should be b followed by aa whereas
lexicographically it should be the other way round. 
Am I doing something wrong? Do I need to perform some extra steps?

Thanks,
Sachin



-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users