" /> Automation of SCI - Genesys CTI User Forum

Author Topic: Automation of SCI  (Read 9227 times)

Offline voipy

  • Newbie
  • *
  • Posts: 18
  • Karma: 0
Automation of SCI
« on: February 24, 2014, 01:29:16 PM »
Advertisement
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.

Offline Kubig

  • Hero Member
  • *****
  • Posts: 2755
  • Karma: 44
Re: Automation of SCI
« Reply #1 on: February 24, 2014, 01:35:09 PM »
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.

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7641
  • Karma: 56330
Re: Automation of SCI
« Reply #2 on: February 24, 2014, 01:50:52 PM »
:-X Daily restarts? Why??  ??? Are you facing issues that need whole platform to be restarted?

Offline voipy

  • Newbie
  • *
  • Posts: 18
  • Karma: 0
Re: Automation of SCI
« Reply #3 on: February 24, 2014, 03:57:37 PM »
These are test environments and we have found it best to restart all solutions each morning.

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7641
  • Karma: 56330
Re: Automation of SCI
« Reply #4 on: February 24, 2014, 04:31:55 PM »
Why don't just schedule servers restarts or Windows services?

Offline genesysguru

  • Sr. Member
  • ****
  • Posts: 293
  • Karma: 12
    • Genesys Guru Blog
Re: Automation of SCI
« Reply #5 on: February 24, 2014, 06:03:19 PM »
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/

Offline voipy

  • Newbie
  • *
  • Posts: 18
  • Karma: 0
Re: Automation of SCI
« Reply #6 on: February 25, 2014, 03:25:14 PM »
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 :'(

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7641
  • Karma: 56330
Re: Automation of SCI
« Reply #7 on: February 25, 2014, 03:51:03 PM »
again...why not just restart the servers or the windows services...many tools on market to do that

Offline Kubig

  • Hero Member
  • *****
  • Posts: 2755
  • Karma: 44
Re: Automation of SCI
« Reply #8 on: February 25, 2014, 03:56:17 PM »
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,..).

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7641
  • Karma: 56330
Re: Automation of SCI
« Reply #9 on: February 25, 2014, 03:59:54 PM »
Me neither but...anyway, why reinvent the powder?

Offline voipy

  • Newbie
  • *
  • Posts: 18
  • Karma: 0
Re: Automation of SCI
« Reply #10 on: February 25, 2014, 04:56:02 PM »
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.


Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7641
  • Karma: 56330
Re: Automation of SCI
« Reply #11 on: February 25, 2014, 07:31:14 PM »
??? SCI can execute apps so...maybe if not sending emails can send you apps status...

Offline René

  • Administrator
  • Hero Member
  • *****
  • Posts: 1832
  • Karma: 62
Re: Automation of SCI
« Reply #12 on: February 25, 2014, 08:37:52 PM »
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.

Offline voipy

  • Newbie
  • *
  • Posts: 18
  • Karma: 0
Re: Automation of SCI
« Reply #13 on: February 27, 2014, 01:11:02 PM »
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]