Skip to main content

Why does osagent ignore -p option when running as a service?

  • February 16, 2013
  • 0 replies
  • 0 views

Problem:

  • Product Name: Visibroker
  • Product Version:6.5
  • Product Component: osagent
  • Platform/OS Version:Windows

1) How to run osagent as a service?

2) When running the osagent as a service using the -s option the -p option is ignored.

Resolution:

1) To run osagent as a Service
Follow the steps lay out in http://support.microsoft.com/kb/q137890/, to register a user defined service, from step 1 to 3.

b) Continue to edit the registry and add the following values into "Parameters":

"AppDirectory"="C:\\\\Borland\\\\BDP\\\\bin"
"Application"="C:\\\\Borland\\\\BDP\\\\bin\\\\osagent.exe"
"AppParameters"="-p 14444"

c) Start the service. Run osfind to confirm that the osagent is started at that port specified.

2) When running osagent as a service with -p option the ordering of the "-s" service mode option needs to be passed as the last option in the command line. For example:

"osagent.exe -p 14111 -v -d c:\\osagent_log_dir -s".


#Service
#Security
#osagent
#VisiBroker