Agent Gen 2.0 problems

Frank Fock Frank.Fock____t-online.de
Tue Dec 24 13:38:57 CET 2002


Hi Rahul,

Thanks for your bug report. I have fixed these
(and other) issues in AgenPro 2.0a which can
be downloaded from http://www.agentpp.com

$effectiveSyntax is indeed not existing in the
API. This method is correctly invoked by
$agenUtils.getEffectiveSyntax(<objectType>.syntax)

The "$effectiveSyntax" was intended to refer to
a variable of that name. Unfortunately, the definition
of that variable has been accidentally removed...

Please let me know if you encounter any further
problems!

Best regards,
Frank

rjain____iwv.com wrote:
> Hi ,
> 
> I am facing following problems after upgrading from AgentGen Pro 1.8 to
> 2.0 :
> 
> 1. Agent 1.x generator used to generate code for enumerated types by
> default.
> 
> It seems that Agent 2.x generator templates have following code 
> snippet: (file h_code.vm)
> 
> if ($effectiveSyntax.hasEnums()) ....
> 
> But nowhere is effectiveSyntax defined , or usage explained.
> 
> Does anyone has idea about how to generate enums related code with
> AgentGenPro 2.0 ?
> 
> 2. In defining SNMP MIB, IP address default values are supposed
> to be provided as :
> DEFVAL { '00000000'H } which should correspond to "0.0.0.0"
> But, with code generated by Agent Pro , this actually corresponds
> to "\x00\x00" , which IpAddress() class contructor fails to decode.
> 
> Possible way to fix this would be to enhance IpAddress() constructor
> to understand hex values , or change the code generation output.
> 
> Regards,
> -Rahul
> 
> 
> 







More information about the AGENTPP mailing list