1PACEMAKER(8) System Administration Utilities PACEMAKER(8)
2
3
4
6 Pacemaker - Part of the Pacemaker cluster resource manager
7
9 crm_diff original_xml operation [options]
10
12 crm_diff - A tool for determining the differences between two xml files
13 and/or applying the differences like a patch
14
16 -?, --help
17 This text
18
19 -$, --version
20 Version information
21
22 -V, --verbose
23 Increase debug output
24
25 Original XML:
26 -o, --original=value
27 XML is contained in the named file
28
29 -O, --original-string=value
30 XML is contained in the supplied string
31
32 Operation:
33 -n, --new=value
34 Compare the original XML to the contents of the named file
35
36 -N, --new-string=value
37 Compare the original XML to the contents of the supplied string
38
39 -p, --patch=value
40 Patch the original XML with the contents of the named file
41
42 Additional Options:
43 -c, --cib
44 Compare/patch the inputs as a CIB (includes versions details)
45
46 -f, --filter
47 Suppress irrelevant differences between the two inputs
48
50 Obtain the two different configuration files by running cibadmin on the
51 two cluster setups to compare:
52
53 # cibadmin --query > cib-old.xml
54
55 # cibadmin --query > cib-new.xml
56
57 Calculate and save the difference between the two files:
58
59 # crm_diff --original cib-old.xml --new cib-new.xml > patch.xml
60
61 Apply the patch to the original file:
62
63 # crm_diff --original cib-old.xml --patch patch.xml >
64 updated.xml
65
66 Apply the patch to the running cluster:
67
68 # cibadmin --patch patch.xml
69
71 Written by Andrew Beekhof
72
74 Report bugs to pacemaker@oss.clusterlabs.org
75
76
77
78Pacemaker 1.1.6-1.fc14 September 2011 PACEMAKER(8)