Wind River VxWorks 6.x

 

The Agent Toolkit C Edition supports the WindRiver VxWorks 6.x real time operating system.

 

The configuration used for the agent porting is as follows

It is also possible to port the agent generated using the Agent Toolkit C Edition with Wind River VxWorks installed in Linux or Solaris operating system.

 

Compiling and Running an Agent in Workbench IDE for VxWorks

 

When we compile the source code in VxWorks, we specify a word called "target". The target is the type of the real operating system (there are many serial numbers) or it may be a simulator. In this document we specify the target type as "Simulator"
 

The user typically has to follow the following procedure:

  1. Start Agent Compiler in Windows NT and open a new project.  Load a MIB say RFC1213-MIB in the workspace dialog of the Agent Compiler.

  2. Select Operating System as VxWorks in the General Settings tab of the Agent Compiler.

  3. Deselect "Absolute path for Agent Root Directory" in General Settings tab of the Agent Compiler.

  4. Generate the code for the MIB. The stub files will be generated under the <WebNMS>/C-Agent/projects/<ProjectName>/agent/stubs/rfc1213-mib directory.

  5. Now, create a project in Workbench development environment as shown below

Creating a Project for a Downloadable Application

Compiling and Building agent project files

-DVXWORKS

-fsigned-char

-I<WebNMS>/C-Agent/projects/<Project-Name>/agent/source/main/include

-I<WebNMS>/C-Agent/projects/<Project-Name>/agent/source/system/include

-I<WebNMS>/C-Agent/projects/<Project-Name>/agent/source/utils/incude

-I<WebNMS>/C-Agent/projects/<Project-Name>/agent/stubs/<Mib-Module>/include

-I<WebNMS>/C-Agent/projects/<Project-Name>/agent/source/management/inlcude

-I<WebNMS>/C-Agent/projects/<Project-Name>/agent/source/management/inlcude/monitor

-I<WebNMS>/C-Agent/projects/<Project-Name>/agent/source/management/inlcude/timer

 

If SNMP agent / adapter option is selected, add

 

-I<WebNMS>/C-Agent/projects/<Project-Name>/agent/source/protocols/snmp/include

-I<WebNMS>/C-Agent/projects/<Project-Name>/agent/source/protocols/snmp/include/cmu

 

If the created SNMP agent project is of type SNMPv3, add

 

-I<WebNMS>/C-Agent/projects/<Project-Name>/agent/source/protocols/snmp/include/snmpv3

-I<WebNMS>/C-Agent/projects/<Project-Name>/agent/source/protocols/snmp/include/snmpv3/acl

-I<WebNMS>/C-Agent/projects/<Project-Name>/agent/source/protocols/snmp/include/snmpv3/security

 

If the agent is of type TL1 or TL1 Adapter option is selected in the Multi-Protocol Agent, then add

 

-I<WebNMS>/C-Agent/projects/<Project-Name>/agent/source/protocols/tl1/include

-I<WebNMS>/C-Agent/projects/<Project-Name>/agent/source/protocols/tl1/include/security

 

If the agent is of type CLI or TL1 Adapter option is selected in the Multi-Protocol Agent, then add

 

-I<WebNMS>/C-Agent/projects/<Project-Name>/agent/source/protocols/cli/include

-I<WebNMS>/C-Agent/projects/<Project-Name>/agent/source/protocols/cli/include/security

 

In case of Multi-Protocol agent, if you have loaded the CCS (CLI command set) file during the stub code generation, then add

 

-I<WebNMS>/C-Agent/projects/<Project-Name>/agent/stubs/<ccs-file-name>/include/

 

If HTTP option is selected applicable only for Multi-Protocol agent

 

-I<WebNMS>/C-Agent/projects/<Project-Name>/agent/source/protocols/http/include

Testing

telnet <target-ip-address> <tcp / telnet port number>

Trouble Shooting

 

Compilation Error in "agent/source/system/include/config.h":

 

The reason is that the file will be generated from Agent Compiler based on the Agent Compiler configuration. For each configuration, for example if you enable "SNMPv3", the macro "#define SNMPV3" is added in this file. If any error occurs, please refer to the config.h header file.

 

Enabling "PRIVACY" Option in the Agent Compiler "Compile Options" Tab:

 

Since there are some restrictions on exporting this (AES / DES) software, we do not bundle it. If you compile the source files with "#define PRIVACY" in config.h header file, it will give compilation error. Please contact us at cagent-support@webnms.com for further details on how to add privacy support to your application.

 

 

Note: Craft Interface and SSH interface support is not available in VxWorks RTOS for both CLI and TLI agents

 

 



Copyright © 2009, ZOHO Corp. All Rights Reserved.