7.4 Running Code Generation Jobs
The code generation jobs specified for a project can be run by:
|
From the command line:
1. Run AgenPro using the agenpro.bat (Windows) or agenpro.sh (UNIX) files in AgenPro's installation directory as follows:
agenpro.sh <project_file>
where <project_file> is the path of a previously saved project file.
2. To compile MIB modules into AgenPro's MIB repository from the command line use:
agenpro.sh -a <MIBFileOrDirectory1> .. <MIBFileOrDirectoryN>
3. To use a specific MIB repository (other than that configured in AgenPro's configuration file) you can use the -r option on the command line:
agenpro.sh -r <repositoryDirectory> [-l <license> <licenseKey>] [-c <AgenProConfigFile>] <project_file>
The code will be generated for all MIB modules found in the input file(s) and which have not been excluded by the -e option - regardless of the settings in the project file.
4. To directly generate code from a set of MIB files without compiling them into a MIB repository:
agenpro.sh -m <MIBFileOrDirectory1> [-m <MIBFileOrDirectory2>] [-v] [-e <MIBModuleName1> [-e <MIBModuleName2> ..]] [-l <license> <licenseKey>] [-c <AgenProConfigFile>] <project_file>
5. The -v option replaces variable references of the form ${<name>} in the value portions of the project properties file with the corresponding system variable with the name <name>.
6. To get help on the command line options, run:
agenpro.sh -?
Using the Graphical User Interface (GUI)
1. From the Project menu, choose Generate
.