Replication Server CLI commands v7
The CLI commands are listed here in the order in which they are typically used, following the order of Replication Server console operations.
The examples assume that the Replication Server CLI commands are executed after you make XDB_HOME/bin
your current working directory. This configuration means you don't have to specify the full path of XDB_HOME/bin
for each execution of the edb-repcli.jar
file. For example, assuming Replication Server is installed in the default installation directory, you issued the following command in Linux:
cd /usr/edb/xdb/bin
In Windows, the equivalent is the following:
cd C:\Program Files\edb\EnterpriseDB-xDBReplicationServer\bin
Whenever the repsvrfile
parameter appears in the examples, the 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 are shown on a Linux system. They use the Linux continuation character, which is a backslash (\
) to show how a Replication Server CLI command can continue onto the next line if you don't 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