Forum Discussion

wayney_128269's avatar
wayney_128269
Icon for Nimbostratus rankNimbostratus
Oct 18, 2004

Method to sync configuration between primary and secondary?

Hello All,

 

 

Is there a method I can call to sync configuration between primary and secondary BIGIP boxes?

 

 

thanks

 

wayne
  • 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

  • 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
  • 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_101863's avatar
    Loc_Pham_101863
    Historic F5 Account
    In 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