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       crm_diff  -  crm_diff  can compare two Pacemaker configurations (in XML
13       format) to produce a custom diff-like output, or apply such  an  output
14       as a patch
15

OPTIONS

17       -?, --help
18              This text
19
20       -$, --version
21              Version information
22
23       -V, --verbose
24              Increase debug output
25
26   Original XML:
27       -o, --original=value
28              XML is contained in the named file
29
30       -O, --original-string=value
31              XML is contained in the supplied string
32
33   Operation:
34       -n, --new=value
35              Compare the original XML to the contents of the named file
36
37       -N, --new-string=value
38              Compare the original XML to the contents of the supplied string
39
40       -p, --patch=value
41              Patch the original XML with the contents of the named file
42
43   Additional Options:
44       -c, --cib
45              Compare/patch the inputs as a CIB (includes versions details)
46
47       -u, --no-version
48              Generate the difference without versions details
49

EXAMPLES

51       Obtain the two different configuration files by running cibadmin on the
52       two cluster setups to compare:
53
54              # cibadmin --query > cib-old.xml
55
56              # cibadmin --query > cib-new.xml
57
58       Calculate and save the difference between the two files:
59
60              # crm_diff --original cib-old.xml --new cib-new.xml > patch.xml
61
62       Apply the patch to the original file:
63
64              #  crm_diff   --original   cib-old.xml   --patch   patch.xml   >
65              updated.xml
66
67       Apply the patch to the running cluster:
68
69              # cibadmin --patch patch.xml
70

AUTHOR

72       Written by Andrew Beekhof
73

REPORTING BUGS

75       Report bugs to users@clusterlabs.org
76
77
78
79Pacemaker 1.1.18-3.el6             June 2018                      PACEMAKER(8)
Impressum