Forum Discussion
SaranSakthivel
Nimbostratus
Jul 29, 2018How to Sync F5 configuration using Python SDK
I tried the following to sync the config.
mgmt.tm.sys.configsync.synchronize_to_group_v2('SYNC-FAILOVER','/Common/test-host.com')
The idea is to 'sync' and also optionally to do a 'forc...
SaranSakthivel
Nimbostratus
Jul 31, 2018After some more more reading of f5 python sdk docs, I was able to get it working. Kindly let me know if there is a better way of doing it.
For Force Push
mgmt.tm.cm.exec_cmd('run', utilCmdArgs='config-sync force-full-load-push to-group ')
For Push
mgmt.tm.cm.exec_cmd('run', utilCmdArgs='config-sync to-group ')
- SaranSakthivelJul 31, 2018
Nimbostratus
Is there a way to get a feedback of whether the Sync was successful or not in one go ?
Currently I have to run the above command and run another command to check for sync status.
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
