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:
- 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" - Go to Control Panel -> Administrative Tools -> Services, verify "Smart Agent" is in the list of Services currently installed
- Run regedit command to launch Registry Editor tool and look for osagent under HKLM\\SYSTEM\\CurrentControlSet\\services
- Expand osagent folder, double click "ImagePath" key for Edit Dialog
- 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" - Close Registry Editor and go to Services panel -- one can start the service (Smart Agent) now.
Old KB# 26334
#SmartAgent
#VisiBroker
#Security




