Forum Discussion
script to auto config sync
I've been trying for two days to get the automatic backup and scp transfer to work and now trying to add on configsync lines. Unfortunately the only code I found in the second link does not work. It will not add the failover lines into the variables. It's probably a syntax error since it give me a "cannot be found" after the tmsh.
I'd really appreciate some help in finishing this script with configsync. Thanks!
https://devcentral.f5.com/wiki/AdvDesignConfig.BIG-IP-10-2-backup-script-with-SCP-transfer.ashx https://devcentral.f5.com/questions/ltm-auto-config-sync-script-not-working
5 Replies
- JN
Nimbostratus
oh, testing it now on v 11.4, but will need it to work on 11.2 (I know I'm doing it backwards). - JN
Nimbostratus
AND, I'm on a VE because I'm testing. Prod will be on hardware, not sure that makes a difference here. - JRahm
Admin
- JN
Nimbostratus
neither of those have configsync, they're just backup (that I can see). I got the backup & scp offload to work through the script, it's just the sync part that I'm missing. Plus icall is only on 11.4+ right?
- amolari
Cirrostratus
maybe you can try this..
DGName=$(tmsh list cm device-group one-line | grep sync-failover | awk -F' ' '{print $3}') echo "syncing now to DG $DGName" >> $logfile 2>&1 tmsh run cm config-sync to-group $DGName >> $logfile 2>&1 if [ $? -ne 0 ]; then echo "Error with config sync" >> $logfile 2>&1 error=1 fi
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
