Skip to main content

How to set up Smart Agent (osagent) as a Windows service

  • February 16, 2013
  • 0 replies
  • 0 views

Problem:

  • Product Name: VisiBroker
  • Product Version : 6.5 and above
  • Product Component: Smart Agent (osagent)
  • Platform/OS Version: Windows 
  • JDK/Compiler Version: n.a.

How to set up Smart Agent (osagent) as a Windows service

Resolution:

(Background info) In VisiBroker 4.5, installer gives user an option to install Smart Agent (osagent) as a windows service. However, this option is not available in latter version.

User can manually register Smart Agent as a Windows Service with the following steps:

  1. Creating a Service with sc command:
    prompt > sc create osagent binPath= "<path to osagent.exe> -v -c" DisplayName= "Smart Agent"
    Note the space after each equal sign.
    Completing successfully, this will print out message: "[SC] CreateService SUCCESS"
  2. Go to Control Panel -> Administrative Tools -> Services, verify "Smart Agent" is in the list of Services currently installed
  3. Run regedit command to launch Registry Editor tool and look for osagent under HKLM\\SYSTEM\\CurrentControlSet\\services
  4. Expand osagent folder, double click "ImagePath" key for Edit Dialog
  5. In "Value data" text box, add "-s" at the end. 
    For instance, if Visibroker is installed at "C:\\VisiBroker", the value should be "C:\\VisiBroker\\bin\\osagent.exe -v -c -s"
  6. Close Registry Editor and go to Services panel -- one can start the service (Smart Agent) now. 

Old KB# 26334

#SmartAgent
#VisiBroker
#Security