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.