[SNMP4J] AgenPro Scalar Class Generation

Frank Fock fock at agentpp.com
Thu Mar 23 22:56:41 CET 2006


Hello,

By default the inner classes for scalars are created only
if the scalar is writable. If you want to let AgentPro
create them even for read-only scalars, you need to change
the java_code.vm template. For example replace

#if( $agenUtils.isWritable($leaf) )

by

#if( $leaf )

Hope this helps.

Best regards,
Frank

Prusi, Jesse R wrote:
> Hello,
> 
> I am using the snmp4j_by_selection.prj project template in AgenPro to
> generate SNMP4J-Agent code for my custom MIB.  The generated code
> includes an inner class which extends MOScalar for the first scalar
> defined in my MIB.  However, there are no inner classes generated for
> any of the other scalars.  Do I need to modify the selection template so
> that the inner classes are generated for all scalars?  How is this done?
> 
> Thanks,
> Jesse Prusi
> 
> _______________________________________________
> 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