cl_ccv_comparator command
Purpose
Compares specific attributes of two different PowerHA® SystemMirror® clusters.
Syntax
cl_ccv_comparator --f1 {filename_1} --f2 {filename_2} [-d cluster|rg|ifix|version|resource|network|bp|gui|all] [-o output_file]
Description
The cross-cluster verification (CCV) utility compares the cluster configuration information of
two different PowerHA
SystemMirror clusters. The
cl_ccv_collector command can collect the cluster information either from a local
node or from a snapshot file. The output file that is generated by running the
cl_ccv_collector command is used as an input to the
cl_ccv_comparator command. The cl_ccv_comparator command
compares specific cluster configuration information that is available in the input file, and creates
a report in the JSON format. The report contains result of the comparison.
Note: The Python program
is required to run the cl_ccv_comparator command.
Flags
- -f1 {filename_1} -f2 {filename_2}
- Specifies the name of files (in the JSON format) to be compared. These files are created after you run the cl_ccv_collector command on clusters that you want to compare.
- [-d cluster|rg|ifix|version|resource|network|bp|gui|all]
- Specifies the attributes of a cluster that must be compared. You can specify the following values:
- cluster
- Compares basic information such as the cluster name and ID, the cluster type, and the node list of a cluster.
- rg
- Compares resource group configuration.
- ifix
- Compares the installation status of interim fixes.
- version
- Compares file set information of PowerHA SystemMirror, Cluster Aware AIX (CAA), and Reliable Scalable Cluster Technology (RSCT).
- resource
- Compares the number of resources that are configured in the cluster. The resources include applications, file systems, and volume groups.
- network
- Compares the network configuration of PowerHA SystemMirror.
- bp
- Compares the backup profiles that are configured for the cloud backup management feature.
- gui
- Compares the configuration files of the PowerHA SystemMirror User Interface.
- all
- Compares all the information that is present in the output file that is generated. This is the default value.
- [-o output_file]
-
Specifies the name of the output file that contains the result of comparison. By default, the comparison results are stored in the /var/hacmp/log/ccv_comparison_data.json file. Alternatively, you can specify a different name for the output file.
Output
Output from the cl_ccv_comparitor command is written to the /var/hacmp/log/ccv_comparison_data.json file.
Files
- /usr/es/sbin/cluster/utilities/cl_ccv_comparator
- Contains the cl_ccv_comparator command.
- /var/hacmp/log/ccv_comparison_data.json
- Contains the output file, ccv_comparison_data.json.
Example
To compare resource group configuration information of two different clusters and to write the
output to a user-defined file, enter the following
command:
cl_ccv_comparator --f1 /home/cluster1.json --f2 /home/cluster2.json -d rg -o /var/hacmp/log/rg_comparison_data.json