Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
asif_baig
Contributor II
Contributor II

REST API to get Current Server Time

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?

Labels (3)
1 Solution

Accepted Solutions
Heinvandenheuvel
Specialist II
Specialist II

@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

View solution in original post

5 Replies
Anonymous
Not applicable

@asif_baig 

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

 

Heinvandenheuvel
Specialist II
Specialist II

@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

lyka
Support
Support

Hello,

 

Did any of the proposed solution worked?

 

Thanks

Lyka

gabbybustard
Contributor
Contributor

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. 

avidary_qlik
Support
Support

@asif_baig

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