Forum Discussion
PJ_Willow
Nimbostratus
Jun 13, 2022How To Get Sync-Status From Ansible
Hi All I am trying to automate our F5 checks in Ansible. I have been able to ge the active/standy part functioning but I'm struggling with the sync status. It seems that the version the F5 LTM modul...
JRahm
Admin
Jun 15, 2022that is the right method. check your logs to see if there was a local error on the BIG-IP. From bigrest in python:
In[3]: from bigrest.bigip import BIGIP
In[4]: b = BIGIP('ltm3.test.local', 'admin', 'admin', request_token=True)
In[5]: x = b.load('/mgmt/tm/cm/sync-status')
In[6]: print(x.properties.get('entries'))
Out[6]: {'https://localhost/mgmt/tm/cm/sync-status/0': {'nestedStats': {'entries': {'color': {'description': 'green'}, 'https://localhost/mgmt/tm/cm/syncStatus/0/details': {'nestedStats': {'entries': {'https://localhost/mgmt/tm/cm/syncStatus/0/details/0': {'nestedStats': {'entries': {'details': {'description': 'Optional action: Add a device to the trust domain'}}}}}}}, 'mode': {'description': 'standalone'}, 'status': {'description': 'Standalone'}, 'summary': {'description': ' '}}}}}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects
