Panel | |
---|---|
On this page:
|
Info |
---|
Summary: this page explains how to reload the dashboard cache to display the most up-to-date snapshot data. |
...
Browse to the following URL replacing server/port/dashboard with the details of your environment:
Code Block | ||
---|---|---|
| ||
WAR 1.x / 2.x http://<server>:<port>//server:port/dashboard<dashboard>/static/default.html ZIP ≥ 2.x http://<server>:<port>/static/default.html |
if you are already logged in, click the Test button to ensure you have an active session:
...
You can also reload the cache via a command line - this enables you to automate the process if you are using CAST's command line interface to automate an analysis, snapshot generation and upload of data to the Measurement Service. You can use a tool such as cURL to do so, for example, replacing "server:[port]/<dashboard>" with the details of your environment. Choose the appropriate option as shown below:
Code Block | ||
---|---|---|
| ||
WAR 1.x / 2.x curl http://server:[port]/<dashboard>/rest/server/refresh -u admin:cast -H "Accept: application/json" curl http://server:[port]/<dashboard>/rest/server/reload -u admin:cast -H "Accept: application/json" curl http://server:[port]/<dashboard>/rest/server/reset -u admin:cast -H "Accept: application/json" ZIP ≥ 2.x curl http://server:[port]/rest/server/refresh -u admin:cast -H "Accept: application/json" curl http://server:[port]/rest/server/reload -u admin:cast -H "Accept: application/json" curl http://server:[port]/rest/server/reset -u admin:cast -H "Accept: application/json" |
Info |
---|
You can also specify a domain using the command line, for example: WAR 1.x / ≥ 2.x
ZIP ≥ 2.x
|
Actions using command line
...
Use Case | Action | User Impact |
---|---|---|
Add a new DataSource | Update context.xml and Restart Tomcat | If users are online, they will be interrupted |
Make a new application available in ED | WAR 1.x / ≥ 2.x: http://server/:[port]/<dashboard>/rest/server/reload?domain=ED http://server/:[port]/rest/server/reload?domain=ED | If users are online, they will be interrupted with a logout popup window |
Make a new application available in HD | WAR 1.x / ≥ 2.x: http://server/:[port]/<dashboard>/rest/server/refresh?domain=AAD http://server/:[port]/rest/server/refresh?domain=AAD | No interruption for online users |
Make a new snapshot available in HD/ED | WAR 1.x / ≥ 2.x: http://server:[port]/<dashboard>/rest/server/refresh?domain=AAD ZIP ≥ 2.x: http://server:[port]/rest/server/refresh?domain=AAD | No interruption for online users |
Apply new authorizations | WAR 1.x / ≥ 2.x: http://server/:[port]/<dashboard>/rest/server/reset ZIP ≥ 2.x: http://server/:[port]/rest/server/reset | No interruption for online users |
...
In ≥ 1.11.0 of the CAST Dashboard Package, an API Key feature has been introduced to allow connection without using standard login/password credentials or when SAML authentication is in operation. You can therefore use the API Key with curl as follows:
- X-API-KEY: the API Key matching the key defined in the security.properties file
- X-API-USER: a defined user name to obtain a CAST dashboard/RestAPI role and data authorization
Code Block | ||
---|---|---|
| ||
WAR 1.x / ≥ 2.x curl https://localhost:8080/RestAPI<dashboard>/rest/server/reload -H "X-API-KEY: G]MauT-9/*<dev8r" <some_key> -H "X-API-USER: admin" ZIP ≥ 2.x curl https://localhost:8080/rest/server/reload -H "X-API-KEY: <some_key> -H "X-API-USER: admin" |
Info |
---|
If you are using ≤ 1.10.0 the API Key is not available, therefore then it is not possible to use the curl command line as described above. Some additional steps may be required (this third-party documentation may provide some hints about how to do this with a simple username/password, however, this is beyond the scope of CAST documentation). |
...