Updated on 2025-01-09 GMT+08:00

Command Reference

Function

Establish and verify mutual trust between the active and standby clusters to enable password-free command execution and file transfers during the DR process.

Syntax

python3 $GPHOME/script/ESLDoTrust.py -f <trustFile> [-l <logFile>]

Parameter Description

Long Option

Short Option

Data Type

Description

Range

Default Value

Example

-f

N/A

String

Lists the IP addresses of all the hosts among which mutual trust relationships need to be established.

N/A

N/A

-f /home/userA/cluster_ssh

-l

N/A

String

Specifies the path of saving log files.

N/A

N/A

-l /home/userA/trust.log

Usage Guide

  • Execute ESLDoTrust.py using the login account on the primary node of the active cluster. Both the user password and the root password are required. The commands are used to configure and verify mutual trust relationships.
  • The format of the mutual trust file is as follows:
    192.168.240.1
    192.168.240.2
    192.168.240.3
    192.168.240.4
    192.168.240.5
    192.168.240.6

Example Command

python3 $GPHOME/script/ESLDoTrust.py -f /home/omm/cluster_ssh

System Response

Establish mutual trust between cluster users.

[perfadm@ecs-env-2988 ~]$ python3 $GPHOME/script/ESLDoTrust.py -f /home/perfadm/cluster_ssh
Please enter password for current user[perfadm].
Password: 
Checking network information.
All nodes in the network are Normal.
Successfully checked network information.
Write all hostname and Ip into /etc/hosts.
Please enter password for current user[root] on the node[192.168.0.205].
Password: 
Creating SSH trust.
Getting the local key file.
Successfully get the local key files.
Appending local ID to authorized_keys.
Successfully appended local ID to authorized_keys.
Updating the known_hosts file.
Successfully updated the known_hosts file.
Appending authorized_key on the remote node.
Successfully appended authorized_key on all remote node.
Updating authorized_keys.
Getting the remote key file.
Successfully get the remote key files.
Successfully updated authorized_keys.
Checking common authentication file content.
Successfully checked common authentication content.
Distributing SSH trust file to all node.
Successfully distributed SSH trust file to all node.
Verifying SSH trust on all hosts.
Successfully verified SSH trust on all hosts.
Successfully created SSH trust.