Author Topic: PSDK : is it possible to stop/start solutions through Genesys PSDK  (Read 2161 times)

Offline kumar.aj876

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
Hi Team,

is it possible to stop/start solutions through Genesys PSDK? if yes, can someone please guide me documentation to achieve this solution.


Offline hsujdik

  • Hero Member
  • *****
  • Posts: 501
  • Karma: 23
Re: PSDK : is it possible to stop/start solutions through Genesys PSDK
« Reply #1 on: January 07, 2022, 06:57:58 AM »
You could use SolutionControlServerProtocol + RequestStartSolution classes - there is a doc about using SolutionControlServerProtocol (although without an example with the RequestStartSolution) on

Take a look on the chapter "Monitoring Your Application with Solution Control Server".

Once you have created and opened your SolutionControlServerProtocol, you can instantiate the RequestStartSolution with something like this:
Code: [Select]
RequestStartSolution request = RequestStartSolution.Create(101); /* Where 101 is the DBID of your solution. If you need to get the DBID programatically, you would need to query against ConfServerProtocol and ConfService */

IMessage result = scsProtocol.Request(request); /* scsProtocol is the instance of your SolutionControlServerProtocol, already configured and opened */

Does it need to be through PSDK though? There is a tool called mlcmd installed along with Solution Control Server in which you can start/stop solutions through command line.

If you do choose to go by this tool, the syntax would be something like this:
Code: [Select]
./mlcmd_64 -cshost -csport 2020 -csappname default -csuser your_username_here -cspassword your_password_here -scshost -scsport 7000 -startsol your_solution_name_here
Change above to your Config Server host (either hostname or IP address) and to your Solution Control Server host (also either hostname or IP address)
Change 2020 to your Config Server port
Change 7000 to your Solution Control Server port