Forum Discussion
Run a sync-config from iCall
Hi,
I am wrinting a iCall which modify the configuration with tmsh::modify.
I have a cluster of Big-IP so after the command tmsh::modify change the configuration, I have to run a config-sync.
My question is how to run a config-sync from a iCall? I can not find any command unless maybe with exec.
Thank you.
Regards,
- Chris_GrantEmployee
You could try this:
tmsh::modify cm device-group devices modify { { set-sync-leader } }
or on version 12.1.0 and above:
tmsh::run cm config-sync force-full-load-push to-group
More information on running a sync from the command line can be found here: https://support.f5.com/csp/article/K13887
- Igor_AndjelicNimbostratus
Hi,
I'm also interested in that topic.
I've used that "run cm ... " command many times, but always interactively from TMSH. It asks me : "Force a full load sync?" As a response, I press "y".
Now, I'd like to use it via iCall, but I don't know whether it will "ask" the same question or it will "recognise" the command was passed by a non-interactive process and therefore "presume" some answer (and if so, which one?). If it won't recognise it and expect an answer entered interactively, will the command simply fail or will it "hang" in the background?
Sadly, I don't have a lab environment where I'd test it.
If anybody's still willing to answer to this seven-year-old topic, it'd be appreciated.
Recent Discussions
Related Content
* 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