[AGENT++] Code generation with AgenPro as CLI

Benjamin Frottier bfrottier at verimatrix.com
Wed Mar 16 09:37:24 CET 2016


Hello,

I am currently evaluating AgenPro. I had no issue while generating code for snmp4j using the GUI but I am having some troubles in CLI.
>From what I understood in agenpro_manual.pdf, to generate code using the CLI, I should use something like that:
sh $ agenpro.sh -m <MIBFileOrDirectory1> [-m <MIBFileOrDirectory2>] [-v] [-e <MIBModuleName1> [-e <MIBModuleName2> ..]] [-l <license> <licenseKey>] [-c <AgenProConfigFile>] <project_file>
Here is mine:
sh $ java -jar agenpro4.jar -m <PATH_TO_MY_MIB> -l <license> <licenseKey> agenpro4/projects/snmp4j_by_selection.prj

Here some info on my environment:
sh $ pwd
/home/bfrottier/workspace/agenpro
sh $ ls
agenpro4  agenpro4.jar
Where agenpro4 directory is where AgenPro installed all its files during the first run with the GUI.

sh $ java -version
openjdk version "1.8.0_72"
OpenJDK Runtime Environment (build 1.8.0_72-b16)
OpenJDK 64-Bit Server VM (build 25.72-b16, mixed mode)

I am on a Fedora 23.

When launching the previous command line, I am getting this output:
http://pastie.org/pastes/10762004/text?key=if8qgcyscgqqzr7qzpqu2g

Then I extracted the jarfile and found out that there is indeed no higrid/HiGridErrorListener in the jclass component. 
Since I had no issue running the GUI with `java -jar agenpro4.jar`, I have no idea of what the problem is. 
Could you help me to see what I am doing wrong?

Thanks,

-- 
Benjamin Frottier


More information about the AGENTPP mailing list