" /> UTC format RPS - Genesys CTI User Forum

Author Topic: UTC format RPS  (Read 3419 times)

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7641
  • Karma: 56330
UTC format RPS
« on: February 02, 2019, 09:03:30 PM »
Advertisement
Hi guys
According to this https://docs.genesys.com/Documentation/CR/8.5.2/Solution/RecoverRP the time show as parameter is in UTC format (1437057696000) however, isn't UTC YYMMDDHHMMSS format?


Any one has a usefull sample of executing this script?
Thanks

Offline Leon

  • Newbie
  • *
  • Posts: 8
  • Karma: 0
Re: UTC format RPS
« Reply #1 on: February 02, 2019, 09:57:05 PM »
Speech miner use Unix format for date time https://www.epochconverter.com so you have to convert your date to Unix format and use the scripts.

Enviado desde mi VTR-L29 mediante Tapatalk


Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7641
  • Karma: 56330
Re: UTC format RPS
« Reply #2 on: February 02, 2019, 10:49:53 PM »
Tried that too, yet doesn't work...script complains about invalid parameter data :S


Offline jamesmurphyau

  • Full Member
  • ***
  • Posts: 123
  • Karma: 2
Re: UTC format RPS
« Reply #3 on: February 03, 2019, 04:24:56 AM »
What's the command your running (incl the params you're passing) and what's the output you get (exactly as it reports)

Obviously "x" out any sensitive values

Offline hsujdik

  • Hero Member
  • *****
  • Posts: 541
  • Karma: 30
Re: UTC format RPS
« Reply #4 on: February 04, 2019, 02:15:03 AM »
It doesnt seem to be either UTC nor Unix time, but rather milliseconds since 01/01/1970 (unix time is seconds since 01/01/1970)

Offline Kubig

  • Hero Member
  • *****
  • Posts: 2755
  • Karma: 44
Re: UTC format RPS
« Reply #5 on: February 04, 2019, 08:22:55 AM »
It's UNIX time in milliseconds

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7641
  • Karma: 56330
Re: UTC format RPS
« Reply #6 on: February 04, 2019, 01:02:59 PM »



[code]
[root@callcenter-gir 0ff10895-93bb-4f75-86fa-XXXXXXXX]# python repost_to_sm_from_htcc.py -startTime 1519862400 -endTime 1549139756 -ccid 0ff10895-93bb-4f75-86fa-XXXXXXXXXXXX-region * -htccUri http://XXX.XXX.XXX.XXX:8080
[/code]


[code]
repost_to_sm_from_htcc.py: error: unrecognized arguments: recoverFailedFolder_20190202_18_41_51 recover_failedfolder.py recoveryConfig.ini repostFromHTCCToSM_20190202_18_36_56 repostFromHTCCToSM_20190202_18_37_11 repostFromHTCCToSM_20190202_18_37_28 repostFromHTCCToSM_20190202_18_37_37 repostFromHTCCToSM_20190202_18_38_31 repostFromHTCCToSM_20190202_18_51_48 rePost_from_MCP_to_RPandStorage.py repost_to_sm_from_htcc.py
[/code]




Seems like it has something to do with the files located at the same script folder...like trying to execute them

Offline jamesmurphyau

  • Full Member
  • ***
  • Posts: 123
  • Karma: 2
Re: UTC format RPS
« Reply #7 on: February 04, 2019, 01:34:58 PM »
Remove the star character from your command (*)

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7641
  • Karma: 56330
Re: UTC format RPS
« Reply #8 on: February 04, 2019, 02:37:08 PM »
According to [url=https://docs.genesys.com/Documentation/CR/8.5.2/Solution/RecoverRP]https://docs.genesys.com/Documentation/CR/8.5.2/Solution/RecoverRP[/url] is a valid option value...
If I run it without region then I get


[code]
repost_to_sm_from_htcc.py: error: argument -region is required
[/code]

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7641
  • Karma: 56330
Re: UTC format RPS
« Reply #9 on: February 04, 2019, 10:44:06 PM »
Gave up, installed LVR Recovery script, and did in that way. Easier

Offline jamesmurphyau

  • Full Member
  • ***
  • Posts: 123
  • Karma: 2
Re: UTC format RPS
« Reply #10 on: February 05, 2019, 03:54:22 AM »
Your comment didn't have region as an option I see now you may have removed a space when replacing with X

If you want to pass a star character you need to escape it.. \* or '*'

Star automatically gets changed to every file in the current directory

Ie "echo *" will echo all your files in that directory

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7641
  • Karma: 56330
Re: UTC format RPS
« Reply #11 on: February 05, 2019, 03:32:38 PM »
Yes, there was an space, I removed it by mistake when doing replace.
According to documentation it should be in that way. Tried as you mention, still same problem.

Offline Kubig

  • Hero Member
  • *****
  • Posts: 2755
  • Karma: 44
Re: UTC format RPS
« Reply #12 on: February 06, 2019, 10:05:42 AM »
The timestamp format you entered as an argument is wrong - you have to use unix time with miliseconds. In your case, you used just unix time in seconds.

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7641
  • Karma: 56330
Re: UTC format RPS
« Reply #13 on: February 06, 2019, 01:19:55 PM »
Well, yeah, that seems to be, can't test now, but as per the lenght seems to be the one...
Why the **** does Genesys can't stay at a single format? Damn or document it correctly