Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello,
We have a requirement to know "CURRENT SERVER TIME" where Qlik EM is installed before we fire any other REST API request.
Currently, I am only seeing related API call as : GetServerDetails
But this call does not have any helpful "server_time" option available.
Is there any other way we could rely on Qlik EM REST API to get Server wall clock Time?
@asif_baig I don't think that information is available though the Enterprise Manager API. You'd have to use a (Windows) native API.
Please explain why you think this servertime is a requirement versus a nice-to-know? What main problem are we trying to solve here? Perhaps there are other solutions. Maybe something in the AEM Postgres database?
The GetServerDetails and GetServer API's refer to the registered Replicate and Compose 'slave' servers, not to the Enterprice manager server " as per input parameter:
Parameter: server
Type: string
Description:The specified server name in Qlik Enterprise Manager.
@Anonymous The Powershell get-date example as provided would only give the local time, which may or might not be the Enterprise Manager server time. You'd have to provide the EM server IP.
Also, you wrote "replicate server is CET." - maybe for you, but not for all right? why would this be? Please explain if you really think it is CET for everyone.
Regards,
Hein
If you are using PowerShell scripts you can use:
$time = get-date -Format HH:mm:ss
Keep in mind that the time is replicate server is CET.
Thank you
Avidar
@asif_baig I don't think that information is available though the Enterprise Manager API. You'd have to use a (Windows) native API.
Please explain why you think this servertime is a requirement versus a nice-to-know? What main problem are we trying to solve here? Perhaps there are other solutions. Maybe something in the AEM Postgres database?
The GetServerDetails and GetServer API's refer to the registered Replicate and Compose 'slave' servers, not to the Enterprice manager server " as per input parameter:
Parameter: server
Type: string
Description:The specified server name in Qlik Enterprise Manager.
@Anonymous The Powershell get-date example as provided would only give the local time, which may or might not be the Enterprise Manager server time. You'd have to provide the EM server IP.
Also, you wrote "replicate server is CET." - maybe for you, but not for all right? why would this be? Please explain if you really think it is CET for everyone.
Regards,
Hein
Hello,
Did any of the proposed solution worked?
Thanks
Lyka
Hi @-super mario bros, in the past we used a local admin user account to connect the server in the qlik Enterprise manager. This doesn't work anymore because local users are not allowed anymore.
If you are using PowerShell scripts you can use:
$time = get-date -Format HH:mm:ss
Keep in mind that the time in the CT tables is CET.
Thank you
Avidar