problem with Counter64

David Duville duville____ipanematech.com
Wed Sep 20 11:17:14 CEST 2000


----- Original Message ----- 
From: David Duville 
To: agentpp-dl____fock.de ; Florian Bonnet 
Sent: Wednesday, September 20, 2000 11:06 AM


Hi Franck,

Thank you for your response about my firs question on Agent +++.

I have a new one : I have Counter64 type in my MIB module but  when I try to my MIB module I have an error during the loading time of my MIB the error message is :
 

Loading MIB file [\.\SNMPv2-SMI.mib]...parsed, done.
   Loaded SNMPv2-SMI

Loading MIB file [\.\SNMPv2-TC.mib]...parsed, done.
   Loaded SNMPv2-TC which imports from SNMPv2-SMI

Loading MIB file [\.\ipm.mib]...parsedjava.lang.NumberFormatException: 18446744073709551615
        at java.lang.Long.parseLong(Unknown Source)
        at com.agentpp.smiparser.SMI.parseLongConstant(SMI.java:205)
        at com.agentpp.mib.MIBRange.<init>(MIBRange.java:24)
        at com.agentpp.smiparser.SMI2Java.readRange(SMI2Java.java:332)
        at com.agentpp.smiparser.SMI2Java.visit(SMI2Java.java:528)
        at com.agentpp.smiparser.SimpleNode.jjtAccept(SimpleNode.java:56)
        at com.agentpp.smiparser.SimpleNode.childrenAccept(SimpleNode.java:64)
        at com.agentpp.smiparser.SMI2Java.visit(SMI2Java.java:564)
        at com.agentpp.smiparser.SimpleNode.jjtAccept(SimpleNode.java:56)
        at com.agentpp.smiparser.SimpleNode.childrenAccept(SimpleNode.java:64)
        at com.agentpp.smiparser.SMI2Java.visit(SMI2Java.java:564)
        at com.agentpp.smiparser.SimpleNode.jjtAccept(SimpleNode.java:56)
        at com.agentpp.smiparser.SimpleNode.childrenAccept(SimpleNode.java:64)
        at com.agentpp.smiparser.SMI2Java.visit(SMI2Java.java:564)
        at com.agentpp.smiparser.SimpleNode.jjtAccept(SimpleNode.java:56)
        at com.agentpp.smiparser.SimpleNode.childrenAccept(SimpleNode.java:64)
        at com.agentpp.smiparser.SMI2Java.visit(SMI2Java.java:564)
        at com.agentpp.smiparser.SimpleNode.jjtAccept(SimpleNode.java:56)
        at com.agentpp.smiparser.SimpleNode.childrenAccept(SimpleNode.java:64)
        at com.agentpp.smiparser.SMI2Java.visit(SMI2Java.java:564)
        at com.agentpp.smiparser.SimpleNode.jjtAccept(SimpleNode.java:56)
        at com.agentpp.repository.DefaultRepositoryManager.updateRepository(DefaultRepositoryManager.
java:75)
        at com.agentpp.repository.DefaultRepositoryManager.addModules(DefaultRepositoryManager.java:1
47)
        at com.agentpp.agentgen.AgentGenConsole.<init>(AgentGenConsole.java:91)
        at com.agentpp.agentgen.AgentGenConsole.main(AgentGenConsole.java:295)
com.agentpp.smiparser.SMIParseException: 18446744073709551615
        at com.agentpp.repository.DefaultRepositoryManager.addModules(DefaultRepositoryManager.java:1
55)
        at com.agentpp.agentgen.AgentGenConsole.<init>(AgentGenConsole.java:91)
        at com.agentpp.agentgen.AgentGenConsole.main(AgentGenConsole.java:295)
   Reason: Unknown error. 


I Also try to change the bound of my Counter64 a put a lower limit. Everything goes well and a can generate but the problem is that in my .cpp file my counters are  SnmpInt32() and a read the Agent ++  documentation carefully and I don't found  SnmpIn64 or something like that whitdh can make me think that the Counter64 is implemented in the library.

Can you please telle me how to do to get Counter64 allowed in my MIB Module.


regards 

PS :  my Mib module is attached : notice that even if I don't  put the following line :
 : IMPORTS Counter64 FROM SNMPv2-SMI;
at the begining of the file the same error appends

David DUVILLE

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.agentpp.org/pipermail/agentpp/attachments/20000920/b71a285d/attachment.htm 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ipm.mib
Type: application/octet-stream
Size: 4623 bytes
Desc: not available
Url : http://lists.agentpp.org/pipermail/agentpp/attachments/20000920/b71a285d/attachment.dll 


More information about the AGENTPP mailing list