xDB Replication Server CLI Commands v6.2
This section provides a description, syntax diagram, and examples of each xDB Replication Server CLI command.
Commands are presented in the order in which they will typically be used, following the order in which xDB Replication Console operations are performed.
Though most commands described in this section apply to both single-master and multi-master replication systems, those commands that apply only to single-master replication systems are noted with For SMR only. Those commands that apply only to multi-master replication systems are noted with For MMR only. The same notation is used for command parameters that may apply only to single-master replication systems or multi-master replication systems.
For the examples used in this section, it is assumed that the xDB Replication Server CLI commands are executed after you have made
XDB_HOME/bin your current working directory, thereby eliminating the need to specify the full path of
XDB_HOME/bin for each execution of the
edb-repcli.jar file. For example, assuming xDB Replication Server is installed in the default installation directory you have issued the following command in Linux:
In Windows, the equivalent is the following:
cd C:\Program Files\edb\EnterpriseDB-xDBReplicationServer\bin
repsvrfile parameter appears in the examples,
file ~/pubsvrfile contains the publication server login information and is located in the user’s home directory while
~/subsvrfile contains the subscription server login information. For Windows, the equivalent usage is
%HOMEPATH%\pubsvrfile and %HOMEPATH%\subsvrfile.
The examples in this section were run on Linux so you will see use of the Linux continuation character, which is a backslash
(), to show how an xDB Replication Server CLI command can be continued onto the next line if you do not want to wrap the text in your terminal window. For Windows, use the Windows continuation character, which is a caret (
get_help print_version print_xdb_server_version encrypt_password printing_server_uptime add_pub_database printing_pub_db_id printing_pub_db_details printing_controller_db_id printing_pdn_node_db_id updating_publication_database removing_publication_database get_tables_for_new_publication creating_publication_cli print_publications_list print_publications_tables_list print_publications_filters_list adding_tables_to_publication removing_tables_from_publication adding_tablefilters_to_publication updating_tablefilters_to_publication removing_tablefilters_to_publication print_conflict_resolution_strategy updating_conflict_resolution_strategy set_pdn_node set_controller validate_a_publication validate_all_publications removing_a_publication replicating_ddl_changes_cli adding_subscription_db printing_subscription_db_id printing_subscription_db_details updating_subscription_database_cli removing_subscription_database_cli creating_subscription_cli print_subscription_list enable_filters_on_subscription_or_non_pdn_node disable_filters_on_subscription_or_non_pdn_node taking_smr_snapshot taking_mmr_snapshot perform_synchronization configure_smr_schedule configure_mmr_schedule print_schedule updating_subscription_cli removing_subscription_cli schedule_shadow_table_history_clean clean_shadow_table_history clean_replication_history clean_all_replication_history