cancel
Showing results for 
Search instead for 
Did you mean: 

Check if UCS restore was ok

Pinco
Nimbostratus
Nimbostratus

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

1 ACCEPTED SOLUTION

AlexBCT
MVP
MVP

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. 

View solution in original post

3 REPLIES 3

AlexBCT
MVP
MVP

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. 

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".

PeteWhite
F5 Employee
F5 Employee

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.