Introduction

 

The Agent Compiler of the WebNMS Agent Toolkit C Edition provides an integrated environment to generate code using the MIB Compiler, TL1 Compiler, and CLI Compiler. The generated code can be compiled and tested without any modifications. The user gets the default values for the parameters of the agent. The generated code can be instrumented with help the of built-in editor of the Agent Compiler and thus make the agent respond as required by the user. One can also compile the generated code and test the developed agent by using the test tools, such as MIB Browser, TL1CraftInterface, and CLI Browser provided with the WebNMS Agent Toolkit C Edition. The Agent Compiler also helps the user in organizing the Agent projects. Each agent can be organized as separate project and projects can be grouped in a workspace.

 

Project

 

The Agent Compiler enables the users to develop their applications as separate projects. Each application is saved in the directory specified by the user. The settings provided for each project are saved in files with .prj extension under the specified directory. The project name and the project directory are unique for each project.

 

The Project name refers to the name of the .prj file and the project directory refers to the directory name specified to create the project. In general, a project will always be in a workspace. Hence, the user can open a particular project anytime with its current settings by selecting the workspace of that project.

 

Workspace

 

Projects created in the Agent Compiler are added to a workspace. A workspace is a logical grouping which can be used to group multiple projects and hence all the projects can be reopened in one go, by opening the workspace. The workspace file is of type .wsp. The projects can be added to an already existing workspace or a new workspace. The name of the workspace and the location where it should exist can be specified by the user. Hence, projects of the same type can be grouped under one workspace. Each agent development can be organized in separate projects which in turn are grouped in workspaces. The File View tab of the workspace panel will list all the projects added to the workspace.

 

The components which make up the Agent Compiler are

 

MIB Compiler

 

A powerful MIB to C compiler developed using Java. The MIB Compiler is used for Agent Type Standalone SNMP Agents (SSA) and Multi-Protocol Agent (MPA). It takes the MIB as input and based on the MIB generates the necessary 'C' files, header files, and other files. The generated stub files are added with user code to instrument the MIB. Once the stub files are instrumented, these files are compiled.

 

TL1 Compiler

 

The TL1 Compiler takes the TCS (TL1 command set) file as input for code generation and compilation and is developed using Java. It is used in the case of Standalone TL1 Agent. It takes the TCS file as input and generates the necessary 'C' files and header files as output based on the TCS file.

 

The output from the TL1 Compiler contains files which vary based on the options chosen by the user for developing the STA. The TL1 Compiler, based on the TCS file, generates 'C' stub files for each command defined in the TCS file, and you fill in the stubs for instrumentation. Once you've added your code to the stubs, these files are compiled.

 

CLI Compiler

 

The CLI Compiler takes the CCS (CLI command set) file as input for code generation and compilation and is developed using Java. It is used in the case of Standalone CLI Agents. It takes the CCS file as input and generates the necessary 'C' files and header files as output, based on the CCS file.

 

Text Editor

 

The Editor integrated with Agent Compiler is an easy-to-use source editor that allows users to create and edit source files. Users can view the generated files with language syntax highlighting to further enhance productivity. Any type of text file can be viewed using the editor. Few examples of the types of files that can be viewed in the editor are 'C' files,Text files, Project files Workspace files, HTML files, etc.

 

Test Tools

 

The MIB Browser is used to test the SNMP Agent, the TL1CraftInterface is used to test the TL1 Agent, the CLI Browser is used to test the CLI Agent, and the Web Browser is used to test the HTTP Agent. The test tools can be invoked from the Agent Compiler itself.

 

Agent Types

 

The code generated by the Agent Compiler is based on the Agent Type supported by the Agent Toolkit C Edition and the options provided in the Settings Menu. The Agent Compiler supports to generate code for Standalone SNMP Agent, Standalone TL1 Agent, Standalone CLI Agent, and Multi-Protocol Agent.

 

Others

 

The Agent Compiler generates strict ANSI-C code for building C, SNMP, HTTP, and TL1 Agents.

 

Each agent can be organized as a separate project, and projects can be grouped in a workspace.

 

Provides a powerful UI which allows the users to develop their agent applications specific to their requirements and supported operating systems based on the options selected in the UI. If no options are provided by the user, code is generated with the default options provided in the UI.



Copyright © 2012, ZOHO Corp. All Rights Reserved.