[SNMP4J] AgentPro warning: Object ${o.name} not found

Frank Fock fock at agentpp.com
Tue Jun 24 23:50:28 CEST 2008


Hi Olivier,

Thank you for sending me the MIB by email.
The MIB specification has many errors, which
need to be fixed before you can generate
(correct) code from it. Please use the
normal compiler mode (not lenient) and
fix the bugs in the module according to
description on the following page:
http://www.mibdesigner.com/html/mibdesign.html

There is no support provided for using AgenPro
in lenient mode. In some cases, where the
errors in the MIB module are not severe or
do not affect generated code by chance, using
the lenient mode may work, but in most cases
it will not.

Best regards,
Frank

olivier rivat wrote:
> Hi,
> 
> I am trying to use Agentpro to generate SNMP4J files.
> Unfortunately the java file generated corresponding to XXMib is a
> merely empty skeleton.
> 
> Example:
> 
>   public void registerMOs(MOServer server, OctetString context)
>     throws DuplicateRegistrationException
>   {
>     // Scalar Objects
> //--AgentGen BEGIN=_registerMOs
> //--AgentGen END
>   }
> 
> I have noticed during the project generation that the log file contain some
> warnings, which seems
> to relate to the pb mentioned above. Unfortunatelly I haven't haven't found
> yet any pointer about
> AgentPro warning message and hows to fix it.
> 
> Regards,
> 
> Olivier
> 
> +++++++ (Log file extract)+++++++++++++++
> 
> Using OUTPUT filename: ..\snmp4j\src\SnmpFrameworkMib.java
> 2008-06-23 22:03:14:281 WARN Generator     Input directory not set for
> filename SnmpFrameworkMib.java
> 2008-06-23 22:03:14:375 WARN Generator     Object ${o.name} not found,
> ignoring it
> 2008-06-23 22:03:14:375 DEBUG Generator     Generating code for context
> 'XXMib': XX-MIB.${o.name}
> _______________________________________________
> SNMP4J mailing list
> SNMP4J at agentpp.org
> http://lists.agentpp.org/mailman/listinfo/snmp4j

-- 
AGENT++
http://www.agentpp.com
http://www.mibexplorer.com
http://www.mibdesigner.com



More information about the SNMP4J mailing list