[AGENT++] how long can a oid be?

OELoo Jerry oyljerry at hotmail.com
Mon Jan 24 07:07:19 CET 2005


Hi Fock
    Thanks for your answer!
    yes,I have found some bugs in my code which cause the problem as i have 
sayed. i have checked it 
    but ,i still have a question about oid ^_^ i have tested me code :
    i use the oid "1.155.1.2.4.1.3.1.10.31.4.3.9" as the snmpget when i 
receive the snmp request i trace the oid i receive it shows 
"3.10.4.1.3.1.10.31.4.3.9" it looks like the string have been modified when 
transmitting , i change the oid to "1.1.155.1.2.4.1.3.1.10" it works ok 
,but if i change the oid to "1.99.1.2.4.1.3.1.10.31.4.3.9" or 
"158.1.2.4.1.3.1.10.31.4.3.9.1" and described above. i found if the two 
front oids are bigger than some value , when i receive, the oids show not 
same as the send oid ??
   it is so strange , i do not know why?
   any hints will be appreciated!
   thanks in advance!
                                                                  Jerry

>From: Frank Fock <fock at agentpp.com>
>To: OELoo Jerry <oyljerry at hotmail.com>
>CC: AGENTPP at agentpp.org
>Subject: Re: [AGENT++] how long can a oid be?
>Date: Sat, 22 Jan 2005 14:33:03 +0100
>
>Hi Jerry,
>
>A SNMP OID can contain up to 128 sub-identifiers.
>So in your case, I suspect the bug to be caused by
>something else. By analysing the stack trace with
>a debugger you should be able to find the real
>cause quite easy.
>
>Best regards,
>Frank
>
>OELoo Jerry wrote:
>
> > Hi all
> > i have meet some problem with the snmp++ and agent++. i have make two
> > simple exes-getexe and proxyexe with MSVC,the former send the get
> > request,the later receive the request and send the response.
> > when i make the oid as "1.3.6.1.2.1.1.1.1.0" or
> > "1.3.6.1.2.155.1.1.0",both exes work ok,but when i make it as
> > "1.11.1.2.1.1.31.14.3.9" the proxyexe will be access violation....i
> > have tested some oid,i found if the oid is longer than some length the
> > proxyexe will crash ....
> > so why it is ? if there is a length limit for the oid ? thanks in 
advance
> > any hints will be appreciated
> >
> > _________________________________________________________________
> > 享用世界上最大的电子邮件系统― MSN Hotmail。 http://www.hotmail.com
> > _______________________________________________
> > AGENTPP mailing list
> > AGENTPP at agentpp.org
> > http://agentpp.org/mailman/listinfo/agentpp
> >
>
>

_________________________________________________________________
免费下载 MSN Explorer:   http://explorer.msn.com/lccn/  




More information about the AGENTPP mailing list