Difference between revisions of "EdgeSense Southbound Service Development"

From ESS-WIKI
Jump to: navigation, search
(.)
(.)
Line 49: Line 49:
 
When we download agentlite, it looks like this picture:
 
When we download agentlite, it looks like this picture:
  
[[File:EdgeSense Southbound Service Agentlite files.png]]
+
[[File:EdgeSense Southbound Service Agentlite files.png|RTENOTITLE]]
  
 
Copy HandlerSample.dll, module_config.xml to agentlite\prebuilt\module folder.
 
Copy HandlerSample.dll, module_config.xml to agentlite\prebuilt\module folder.
  
[[File:EdgeSense Southbound Service module folder.png]]
+
[[File:EdgeSense Southbound Service module folder.png|RTENOTITLE]]
 +
 
 +
6. Modify agentlite\module\module_config.xml
 +
<pre><ModuleNum>1</ModuleNum>
 +
<ModuleName1>HandlerSample</ModuleName1>
 +
<ModulePath1>\module\HandlerSample.dll</ModulePath1>
 +
<ModuleEnable1>TRUE</ModuleEnable1>
 +
</pre>
 +
 
 +
7. Modify agentlite\agent_config.xml
 +
<pre><DeviceName>HandlerSample</DeviceName>
 +
<DevID>HandlerSample</DevID>
 +
<SN>HandlerSample</SN>
 +
<DevType>Service</DevType>
 +
<WorkDir></WorkDir>
 +
<ServiceName>Agent_HandlerSample</ServiceName>
 +
</pre>
  
 
== Development for Ubuntu 16.04 ==
 
== Development for Ubuntu 16.04 ==

Revision as of 05:24, 23 July 2019

Introduction

You will need SRP-Plugin and Agentlite.

SRP-Plugin is xxx

Agentlite is a run-time collections for Plugin to execute. Plugin have to put in module folder.

Development

Requirement

For Windows development,

  • Please install Visual Studio 2008 or above. Visual Studio is available at official website.

For Ubuntu 16.04 development,

Download SRP-Plugin and Agentlite

Download SRP-Plugin

git clone http://advgitlab.eastasia.cloudapp.azure.com/SRP-Connect/SRP-Plugin.git

Download Agentlite

git clone https://github.com/ADVANTECH-Corp/agentlite.git


Development for Windows

1. Open SRP-Plugin\SRP-Plugin.sln with Visual Studio.

2. Change Solution Configurations to Release , change Solution Platforms to Win32.

RTENOTITLE

3. In Solution Explorer, choose HandlerSample and build it.

RTENOTITLE

4. After build is completed, HandlerSample plugin is generated in SRP-Plugin\Release\module folder.

RTENOTITLE

5. Copy HandlerSample.dll, module_config.xml to agentlite\prebuilt\module folder.

When we download agentlite, it looks like this picture:

RTENOTITLE

Copy HandlerSample.dll, module_config.xml to agentlite\prebuilt\module folder.

RTENOTITLE

6. Modify agentlite\module\module_config.xml

<ModuleNum>1</ModuleNum>
<ModuleName1>HandlerSample</ModuleName1>
<ModulePath1>\module\HandlerSample.dll</ModulePath1>
<ModuleEnable1>TRUE</ModuleEnable1>

7. Modify agentlite\agent_config.xml

<DeviceName>HandlerSample</DeviceName>
<DevID>HandlerSample</DevID>
<SN>HandlerSample</SN>
<DevType>Service</DevType>
<WorkDir></WorkDir>
<ServiceName>Agent_HandlerSample</ServiceName>

Development for Ubuntu 16.04