Problems while generating C++ code using AgentGen

Chaudhury, Neel nchaudhury____iPolicyNet.COM
Fri Apr 20 11:00:11 CEST 2001


Hi Frank,

I have sent another mail sometime before including the MIB definition. Could
you please check it? I think, I have added MODULE-IDENTITY as first
definition after the IMPORTS statement. But still I get the error:

Loading MIB file [.\samplemib\..\samplemib\tempmib.txt]...parsed, failed.
   Reason: Undefined syntax(es): Counter64.

Please let me know if anything to be done for this.

Thanks
Neel



-----Original Message-----
From: Frank.Fock____t-online.de [mailto:Frank.Fock____t-online.de]
Sent: Friday, April 20, 2001 1:19 PM
To: Chaudhury, Neel
Cc: Agent++ (E-mail)
Subject: Re: Problems while generating C++ code using AgentGen


Hi Neel,

Only SMIv2 MIB modules can use the Counter64 type. I guess that
your MIB is SMIv1 (i.e., it does not define a MODULE-IDENTITY as
first definition after the IMPORTS statement). You cannot simply import
from the SMIv2 definitions, your own module must be SMIv2 compliant.

Hope this helps.

Regards,
Frank

"Chaudhury, Neel" wrote:

> Hi All,
>
> I have written a MIB for my own application and use AgentGen for
generating
> C++ stub code for my agent. Earlier I was able to generate the C++ code
> properly and they were fine. Now I changed the data types of some of the
> leaf node to Counter64. Now when I try to generate the stubs, I get some
> errors for Counter64, as the definition of Counter64 is not found. I
looked
> for Counter64 in rfcmibs folder that comes with the download, but found
the
> following line or lines similar to it:
>
> MODULE-IDENTITY, OBJECT-TYPE,
>            Counter64, Counter32, Gauge32,
>            mib-2, Unsigned32, zeroDotZero   FROM SNMPv2-SMI
> The SNMPv2-SMI is defined in the file SNMPv2-SMI-rfc2578.txt, but it does
> not include the definitions of Counter64.
> I am stuck now, any suggestion would be greatful.
>
> Thanks and regards,
> Neel
> iPolicy Networks Inc,
> nchaudhury at ipolicynet.com
>




More information about the AGENTPP mailing list