Okay, I got the fix for this error message.
I added a check to return NULL if some of the oid in the oid list is 0. So the 
process of the table is correct. 
As of the reason of the -D option preventing the error happen I have no 
explanation yet.

Thanks,
Jim 

-----Original Message-----
From: Jim Su [mailto:[EMAIL PROTECTED]
Sent: Friday, July 15, 2005 4:06 PM
To: [email protected]
Subject: RE: Error: OID not increasing

I have collected more data.
The agent seems to fall into the situation to handle a bogus "lowest"  oid list 
so it "walk" all the way from the "internet" level . And this seems to happen 
when there is only single row in the table. If there are multiple rows of data 
in that table this error won't happen.

If there is a check added in the !exact condition to by pass this bogus oid 
list. The chance is the agent won't fall into the endless loop and this error. 
If the above is correct I still don't know why the -D option is "helping" to by 
pass this bogus oid list.

####  The following is from MG-SOFT out put ###

1: geExporterIpAddr.192.168.0.3 (ipaddress) 192.168.0.3
2: 
internet.0.1075499343.0.0.0.0.1076636966.1077845576.0.3221218296.1076656620.1077845576.0.3221218232
 (ipaddress) 192.168.0.3
3: sysDescr.0 (octet string) Linux A6000 2.4.31-ATM.1 #5 SMP Tue Jun 21 
11:46:41 CST 2005 i686 
[4C.69.6E.75.78.20.41.54.4D.2D.36.30.30.30.20.32.2E.34.2E.33.31.2D.41.54.4D.2E.31.20.23.35.20.53.4D.50.20.54.75.65.20.4A.75.6E.20.32.31.20.31.31.3A.34.36.3A.34.31.20.43.53.54.20.32.30.30.35.20.69.36.38.36
 (hex)]
4: sysObjectID.0 (object identifier) ge6167
5: sysUpTime.0 (timeticks) 0 days 00h:59m:09s.21th (354921)
6: sysContact.0 (octet string) [EMAIL PROTECTED] .com 
[74.69.6D.40.67.65.6E.69.65.6E.72.6D.2E.63.6F.6D (hex)]
7: sysName.0 (octet string) A-6000 [41.54.4D.2D.36.30.30.30 (hex)]
8: sysLocation.0 (octet string) Unknown [55.6E.6B.6E.6F.77.6E (hex)]
9: sysORLastChange.0 (timeticks) 0 days 00h:00m:00s.00th (0)
........
...
....
Endless loop


-----Original Message-----
From: Jim Su [mailto:[EMAIL PROTECTED]
Sent: Friday, July 15, 2005 11:55 AM
To: [email protected]
Subject: RE: Error: OID not increasing

Amazing result.
    If I added -Dgenie for the second case. The error disappeared.
If I dropped the -Dgenie from the first case. The error appeared.

RS> And that process always sorts the ip addresss list correctly before sending?
     Yes, the ip addressed were sorted correctly.

-Jim

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Robert Story
Sent: Friday, July 15, 2005 3:24 AM
To: Jim Su
Cc: [email protected]
Subject: Re: Error: OID not increasing

On Thu, 14 Jul 2005 15:04:06 +0800 Jim wrote:
JS> My net-snmp version is 5.1.2.
JS> Yes, it is very consistent. If I run snmpd with the following command line
JS> options it doesn't give me the error message.
JS>
JS> /usr/sbin/snmpd -Lsd -L -f -Dgenie -p /var/run/snmpd.pid
JS>
JS> But if I start the snmpd with the following command line options it gives
JS> me the error as long as I walk from the table level. /usr/sbin/snmpd -Lsd
JS> -Lf /dev/null -p /var/run/snmpd.pid

What if you add -Dgenie to the second case? Or remove it from the first?

JS> I thought it may have something to do the way my program handling the
JS> !exact. But I don't understand is if the handling in my code doesn't cover
JS> all the oid comparison how come one command line always bump into the
JS> problem and the another command line doesn't have this problem.

Yes, that is odd.

JS>         // tcp_read (list of ip address and data) from another process.

And that process always sorts the ip addresss list correctly before sending?

--
NOTE: messages sent directly to me, instead of the lists, will be deleted
      unless they are requests for paid consulting services.

Robert Story; NET-SNMP Junkie
Support: <http://www.net-snmp.org/> <irc://irc.freenode.net/#net-snmp>
Archive: <http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-users>

You are lost in a twisty maze of little standards, all different.


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
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
--
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.323 / Virus Database: 267.8.15/49 - Release Date: 2005/7/14

--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.323 / Virus Database: 267.8.15/49 - Release Date: 2005/7/14

--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.323 / Virus Database: 267.8.15/49 - Release Date: 2005/7/14

-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.323 / Virus Database: 267.9.0/50 - Release Date: 2005/7/16
 

Reply via email to