Sync RPAgent

The sync_rpagent.sh script in the <installation_directory>/cluster_utils/ directory, updates the RPAgent parameters across all the nodes in the cluster. For example, if you want to make any changes to the RPAgent parameters, make the changes on the Lead node and then propagate the change to all the nodes in the cluster using the sync_rpagent.sh script.

  1. Log in to the co-ordinator node.
  2. Navigate to the <installation_directory>/cluster_utils/ directory.
  3. To view the arguments for the helper script, run the following command:
    ./sync_rpagent.sh --help
    
  4. Press ENTER. The command lists the arguments for the script.
  5. To replicate the changes to all the nodes, run the following command:
    ./sync_rpagent.sh \
    --hostsfile=<path_of_the_hosts_file> \
    --ssh-auth-type=publickey \
    --private-key-path=<key_file_path>/<name_of_the_private_key_file> \
    
  6. Press ENTER. The script creates a backup and then replicates the configuration on all the nodes in the cluster.
    ==========================================================================
    
    Hosts file set to '<path_of_the_hosts_file>'
    
    SSH Authentication Type is set to 'Public Key Authentication'
    
    SSH Private Key file path is set to '<key_file_path>/<name_of_the_private_key_file>'
    
    Checking connectivity of cluster nodes...
    
    Trino Protector RPAgent Configuration & Certificates cloning started
    
    Stopping RPAgent on current node...
    
    Stopping RPAgent on all nodes...
    
    Creating rpagent_old/data_10-14-2025_12:15:26/new_data directory on all nodes...
    
    Changing ownership of rpagent_old/ directory recursively on all nodes...
    
    Changing permission of rpagent_old/ on all nodes...
    
    Removing RPAgent Configuration & Certificates from all nodes...
    Removed /opt/protegrity/rpagent/data/ from all nodes
    
    Copying current node's rpagent/data/ to all other nodes...
    
    Changing ownership of rpagent_old/data_10-14-2025_12:15:26/new_data/data.tgz...
    
    Changing permission of rpagent_old/data_10-14-2025_12:15:26/new_data/data.tgz...
    
    Extracting rpagent_old/data_10-14-2025_12:15:26/new_data/data.tgz to rpagent/data/...
    
    Changing permission of rpagent/data/...
    
    Removing backup directory rpagent_old/...
    
    Starting RPAgent on current node...
    
    Starting RPAgent on all nodes...
    
    Successfully updated RPAgent Configuration and Certificates across all cluster nodes
    
    The script's logs and operation results are logged in /opt/protegrity/logs/sync_rpagent.log
    

Last modified : December 18, 2025