Author Topic: UTC format RPS  (Read 303 times)

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 6821
  • Karma: 56331
UTC format RPS
« on: February 03, 2019, 06:03:30 AM »
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: 5
  • Karma: 0
Re: UTC format RPS
« Reply #1 on: February 03, 2019, 06:57:05 AM »
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: 6821
  • Karma: 56331
Re: UTC format RPS
« Reply #2 on: February 03, 2019, 07:49:53 AM »
Tried that too, yet doesn't work...script complains about invalid parameter data :S


Offline jamesmurphyau

  • Jr. Member
  • **
  • Posts: 97
  • Karma: 2
Re: UTC format RPS
« Reply #3 on: February 03, 2019, 01:24:56 PM »
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

  • Sr. Member
  • ****
  • Posts: 295
  • Karma: 14
    • Genesys Brasil
Re: UTC format RPS
« Reply #4 on: February 04, 2019, 11: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: 2523
  • Karma: 41
Re: UTC format RPS
« Reply #5 on: February 04, 2019, 05:22:55 PM »
It's UNIX time in milliseconds
Genesys certified professional consultant (GVP, SIP, GIR and Troubleshooting)

Offline cavagnaro

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



Code: [Select]
[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: [Select]
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




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

Offline jamesmurphyau

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

Offline cavagnaro

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


Code: [Select]
repost_to_sm_from_htcc.py: error: argument -region is required

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 6821
  • Karma: 56331
Re: UTC format RPS
« Reply #9 on: February 05, 2019, 07:44:06 AM »
Gave up, installed LVR Recovery script, and did in that way. Easier

Offline jamesmurphyau

  • Jr. Member
  • **
  • Posts: 97
  • Karma: 2
Re: UTC format RPS
« Reply #10 on: February 05, 2019, 12:54:22 PM »
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: 6821
  • Karma: 56331
Re: UTC format RPS
« Reply #11 on: February 06, 2019, 12:32:38 AM »
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: 2523
  • Karma: 41
Re: UTC format RPS
« Reply #12 on: February 06, 2019, 07:05:42 PM »
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.
Genesys certified professional consultant (GVP, SIP, GIR and Troubleshooting)

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 6821
  • Karma: 56331
Re: UTC format RPS
« Reply #13 on: February 06, 2019, 10: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