Forum Discussion
Check if UCS restore was ok
Using REST API, I am periodically restoring an UCS in a remote disaster recovery site of some VCMP guests. The restore operation of the UCS is started, but as the REST daemon is also restarted once started the UCS restore, I cannot get a result like "you REST API command was completed successfully". So the script wait for 10-15 minutes and then reconnect again to run other REST commands, hoping that the UCS restore was really done.
How can I check easily that the restore was really performed ? Please consider that I can user only REST API.
Thank you for your suggestions
Hi Pinco,
Maybe not quite the answer you're looking for, but have you tried using the "log" command? This way, you can receive the last 10 or so lines of ltm log and use those to confirm if there were any problems.
The following command gives you the last 10 lines of ltm log via iControl;
curl -sku admin:XXXXXXXX -H "Content-Type: application/json" -X GET https://XX.XX.XX.XX/mgmt/tm/sys/log/ltm/stats?options=lines,10
More info on the log commands via iControl: https://support.f5.com/csp/article/K41550738
Hope this helps.
- AlexBCTCumulonimbus
Hi Pinco,
Maybe not quite the answer you're looking for, but have you tried using the "log" command? This way, you can receive the last 10 or so lines of ltm log and use those to confirm if there were any problems.
The following command gives you the last 10 lines of ltm log via iControl;
curl -sku admin:XXXXXXXX -H "Content-Type: application/json" -X GET https://XX.XX.XX.XX/mgmt/tm/sys/log/ltm/stats?options=lines,10
More info on the log commands via iControl: https://support.f5.com/csp/article/K41550738
Hope this helps.
- PincoNimbostratus
Thank you Alex and Pete for your help. I will try this solution, if I remember well there a "magic" log entry that says "UCS installed".
- PeteWhiteEmployee
You could create a periodic iCall to create/update a component which contains a timestamp eg in the description. On REST, check the object and ensure the timestamp is updated. This doesn't necessarily show that all config is loaded - take a look at mcp state as well.
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com