1PACEMAKER(8)            System Administration Utilities           PACEMAKER(8)
2
3
4

NAME

6       Pacemaker - Part of the Pacemaker cluster resource manager
7

SYNOPSIS

9       crm_diff original_xml operation [options]
10

DESCRIPTION

12       Compare  two Pacemaker configurations (in XML format) to produce a cus‐
13       tom diff-like output, or apply such an output as a patch
14

OPTIONS

16   Help Options:
17       -h, --help
18              Show help options
19
20       --help-all
21              Show all help options
22
23       --help-xml
24              Show original XML options
25
26       --help-operation
27              Show operation options
28
29       --help-additional
30              Show additional options
31
32   Original XML:
33       -o, --original=FILE
34              XML is contained in the named file
35
36       -O, --original-string=STRING
37              XML is contained in the supplied string
38
39   Operation:
40       -n, --new=FILE
41              Compare the original XML to the contents of the named file
42
43       -N, --new-string=STRING
44              Compare the original XML  with  the  contents  of  the  supplied
45              string
46
47       -p, --patch=FILE
48              Patch the original XML with the contents of the named file
49
50   Additional Options:
51       -c, --cib
52              Compare/patch the inputs as a CIB (includes versions details)
53
54       -s, --stdin
55
56       -u, --no-version
57              Generate the difference without versions details
58
59   Application Options:
60       -$, --version
61              Display software version and exit
62
63       -V, --verbose
64              Increase debug output (may be specified multiple times)
65

EXAMPLES

67       Obtain the two different configuration files by running cibadmin on the
68       two cluster setups to compare:
69
70              # cibadmin --query > cib-old.xml
71
72              # cibadmin --query > cib-new.xml
73
74       Calculate and save the difference between the two files:
75
76              # crm_diff --original cib-old.xml --new cib-new.xml > patch.xml
77
78       Apply the patch to the original file:
79
80              #  crm_diff   --original   cib-old.xml   --patch   patch.xml   >
81              updated.xml
82
83       Apply the patch to the running cluster:
84
85              # cibadmin --patch -x patch.xml
86

AUTHOR

88       Written by Andrew Beekhof
89
90
91
92Pacemaker 2.0.5-10.fc33          December 2020                    PACEMAKER(8)
Impressum