Advanced Recovery - Check if Active

Hi all,

I’m trying to script checking if a FreePBX node is active according to Advanced Recovery, but I cannot for the life of me figure out how to do it, aside from logging into the web gui and scraping the Advanced Recovery page.

Does anyone know how to do this?

Have you looked into the Post Switchover Hook script option ?

Here’s some relevant documentation: