Forum Discussion
wayney_128269
Nimbostratus
Oct 18, 2004Method to sync configuration between primary and secondary?
5 Replies
Wayne,
You are looking for the ITCMSystem::ConfigSync::synchronize_configuration() method.enum SyncMode { // Synchronizes only basic configuration, // such as /config/bigip.conf. CONFIGSYNC_BASIC = 0, // Synchronizes version of the configuration that is currently running, // such as /config/bigip.conf. The configuration is loaded into memory // on the standby device and is not saved to disk. CONFIGSYNC_RUNNING = 1, // Synchonizes all common files in /config, all common files in /etc, // and all common BIG/db keys. CONFIGSYNC_ALL = 2 }; void ITCMSystem::ConfigSync::synchronize_configuration( in SyncMode sync_flag );
-Joe- wayney_128269
Nimbostratus
Do we use the same method for IControl V9?
thanks - the ITCMSystem::ConfigSync::synchronize_configuration() is still available for backward compatibility but we would prefer that customers use the new System::ConfigSync::synchronize_configuration() method introduced in v9.0.
See Post on the v9.0 forum.
-Joe - meja_127775
Nimbostratus
Could you possibly list all files/ all changes made in the three sync options? From the above explanation, it seems that CONFIGSYNC_BASIC is equivalent to 'bigpipe configsync' and CONFIGSYNC_ALL is equivalent to 'bigpipe configsync all'. Is this accurate? What of CONFIGSYNC_RUNNING? - Loc_Pham_101863Historic F5 AccountIn 4.x, CONFIGSYNC_RUNNING was designed to support configsync'ing only running configurations, i.e. configurations made only in-memory and have not been persisted to disk via "bp save" or "bp base save".
Note that in 9.x, the CONFIGSYNC_RUNNING SyncMode is no longer available. Also, in 9.x there are some changes in semantics:
- CONFIGSYNC_BASIC is now the same as "bp config sync min", which configsyncs only the basic configuration. This is equivalent to 4.x's "bp config sync".
- CONFIGSYNC_ALL is now the same as "bp config sync" or "bp config sync all", which configsyncs all common files in /config, /etc, common DB keys and anything else necessary for a complete configuration. This is equivalent to 4.x's "bp config sync all".
There's no easy way for us to list out all files or changes applicable to each SyncMode. This list of files is tracked internally and changes quite frequently for each release, so publishing this list for each sync mode would cause more confusion for the users.
Loc
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
