Skip to main content

Problem

  • Product Name: Borland Enterprise Server
  • Product Version: 5.2.1
  • Product Component: OSAgent
  • Platform/OS Version: ALL

How to add additional osagents to BES daemon which will appear in the management console and be manageable (start / stop)?

Resolution

The below are the steps to add new user osagents to BES Server as services. Please note that this example creates an osagent called "osagent12345" on port 12345. You can edit the below properties directly in the installation folders or through the "installations" tab in the management console. The only step you cannot do in the console is copy/rename step of osagent directory below.
 

1. Edit administer_services from $bes\\var\\servers\\$server\\adm\\properties folder
 
I. The property server.service.administrator needs to be modified as follows:
 
server.service.administer=osagent osagent12345 sonicmq apache2_0 ots
 
and add a new property:
 
agent.client.serviceinterface.osagent12345=com.borland.enterprise.management.api.IOsagent
 

2. Edit server.properties from $bes\\var\\servers\\$server\\adm\\properties folder
 
I. The startup and shutdown properties need to be modified as follows:
 
server.service.startorder=management_osagent servermanager osagent osagent12345 ots sonicmq apache2_0

server.service.shutdownorder=apache2_0 sonicmq ots osagent osagent12345 servermanager management_osagent
 
  
3. Under adm\\properties\\services, copy osagent subdir and rename it to osagent12345. 

I. Within adm\\properties\\services\\oagent12345 folder, edit the below properties in nativeservice.properties:
 
nativeservice.environment=OSAGENT_PORT=12345

nativeservice.application.arguments=-p 12345
 
II. Add the below properties in service.properties:
 
service.name=osagent12345

service.description=Smart Agent on Port 12345

log.osagent.description="osagent12345"

log.osagent.file.filename=osagent12345.log
 
vbroker.agent.port=12345
 
4. Replace "osagent12345" and "12345" in all occurances with your desired name/port
and repeat steps 1-3 for as many osagents as needed.

5. With these changes, these osagents should appear in the management console under the Services tree.


#add
#managementconsole
#VisiBroker
#osagent
#Security
#BES