Problems while generating C++ code using AgentGen

Frank Fock Frank.Fock____t-online.de
Fri Apr 20 09:49:27 CEST 2001


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
>
>  <<Neel Madhav Chaudhury (E-mail).vcf>>




More information about the AGENTPP mailing list