Genesys CTI User Forum
Genesys CTI User Forum => Genesys CTI Technical Discussion => Topic started by: voipy on February 24, 2014, 01:29:16 PM
-
Is it possible to automate checks that are done via SCI?
So for instance I restart all solutions in our dev platform in the morning and then check all application statuses after that.
I was hoping to either run one XML or Powershell script for both jobs or 2 individual scripts. I would like to run them as a scheduled task so I can just come in and find it in an email.
-
Within Genesys it is not possible, but it is up to you if you write some own mechanism which will do what you want to achieve. But, personally I never recommend and suggest to do automated restarts within Genesys env or something similiar.
-
:-X Daily restarts? Why?? ??? Are you facing issues that need whole platform to be restarted?
-
These are test environments and we have found it best to restart all solutions each morning.
-
Why don't just schedule servers restarts or Windows services?
-
All things are possible via the PSDK. Like this little PoC I knocked up here:
http://genesysguru.com/blog/blog/2014/01/13/genesys-environment-manager-gem/
-
Yeah that is kind of what I am looking for but I would like to automate the time it runs if possible. Scheduled Task.
I have been looking over the PSDK today but it's like reading another language. Not great at coding at all, finding the best coding to use is going to be difficult. PSDK appears to indicate using c#.
From what I am understanding from the PSDK is that I want to be using Protocol Manager and Application Blocks. I think I also want to be using Service Manager as well.
Might get this automated next year :'(
-
again...why not just restart the servers or the windows services...many tools on market to do that
-
Confirm cav hints, why not just restart whole server? IMHO - I do not see any logical reason to do daily restart of some env (prod, t&d,..).
-
Me neither but...anyway, why reinvent the powder?
-
You are all probably right and I am probably over complicating it and trying to make it clever.
Though I would like script then to run to show me the status of all applications and the mode they are in.
-
??? SCI can execute apps so...maybe if not sending emails can send you apps status...
-
Hi,
Command line tool that allows you to start/stop application/solution or get status of application/solution is available starting Genesys release 8. You can find this tool - mlcmd - in Solution Control Server installation folder. All supported commands are described in [i]Framework 8.x Management Layer User's Guide[/i].
Below is sample output from the tool (request for status of 'rut_urs' application):
[font=courier][cti@centos5 /GCTI8/mng/mng_scs]$ [color=red]./mlcmd_64 -cshost centos5 -csport 2020 -csappname default -csuser default -cspassword password -getappstatus rut_urs[/color]
(conn_adjust_rlimit) max=1024, current=1024 -> 1024(max) ok
addp-trace off
(addp_xconfig) local OFF, remote OFF, trace off
._02/25/14 21:31:51.2120_resolving of host name 'centos5'
._21:31:51.2128_name 'centos5' resolved
[color=red]rut_urs
Application with DBID 108 has status "APP_STATUS_RUNNING", runmode "PRIMARY"[/color]
[/font]
Hope it helps you.
R.
-
Thanks, I think this might be just what I am after.
Unfortunately I am unable to open it. Appears to open and then closes instantly.
[quote author=René link=topic=8233.msg36275#msg36275 date=1393360672]
Hi,
Command line tool that allows you to start/stop application/solution or get status of application/solution is available starting Genesys release 8. You can find this tool - mlcmd - in Solution Control Server installation folder. All supported commands are described in [i]Framework 8.x Management Layer User's Guide[/i].
Below is sample output from the tool (request for status of 'rut_urs' application):
[font=courier][cti@centos5 /GCTI8/mng/mng_scs]$ [color=red]./mlcmd_64 -cshost centos5 -csport 2020 -csappname default -csuser default -cspassword password -getappstatus rut_urs[/color]
(conn_adjust_rlimit) max=1024, current=1024 -> 1024(max) ok
addp-trace off
(addp_xconfig) local OFF, remote OFF, trace off
._02/25/14 21:31:51.2120_resolving of host name 'centos5'
._21:31:51.2128_name 'centos5' resolved
[color=red]rut_urs
Application with DBID 108 has status "APP_STATUS_RUNNING", runmode "PRIMARY"[/color]
[/font]
Hope it helps you.
R.
[/quote]