Genesys CTI User Forum

Genesys CTI User Forum => Genesys CTI Technical Discussion => Topic started by: cavagnaro on February 02, 2019, 09:03:30 PM

Title: UTC format RPS
Post by: cavagnaro on February 02, 2019, 09:03:30 PM
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
Title: Re: UTC format RPS
Post by: Leon 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

Title: Re: UTC format RPS
Post by: cavagnaro on February 02, 2019, 10:49:53 PM
Tried that too, yet doesn't work...script complains about invalid parameter data :S

Title: Re: UTC format RPS
Post by: jamesmurphyau 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
Title: Re: UTC format RPS
Post by: hsujdik 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)
Title: Re: UTC format RPS
Post by: Kubig on February 04, 2019, 08:22:55 AM
It's UNIX time in milliseconds
Title: Re: UTC format RPS
Post by: cavagnaro 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
Title: Re: UTC format RPS
Post by: jamesmurphyau on February 04, 2019, 01:34:58 PM
Remove the star character from your command (*)
Title: Re: UTC format RPS
Post by: cavagnaro 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]
Title: Re: UTC format RPS
Post by: cavagnaro on February 04, 2019, 10:44:06 PM
Gave up, installed LVR Recovery script, and did in that way. Easier
Title: Re: UTC format RPS
Post by: jamesmurphyau 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
Title: Re: UTC format RPS
Post by: cavagnaro 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.
Title: Re: UTC format RPS
Post by: Kubig 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.
Title: Re: UTC format RPS
Post by: cavagnaro 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