Unix and Linux Discussions Tagged with xml |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
0 |
698 |
Software Releases - RSS News |
|
|
|
1 |
2,829 |
Shell Programming and Scripting |
|
|
|
0 |
887 |
Software Releases - RSS News |
|
|
|
2 |
4,941 |
Shell Programming and Scripting |
|
|
|
0 |
649 |
Software Releases - RSS News |
|
|
|
9 |
13,868 |
Shell Programming and Scripting |
|
|
|
0 |
1,137 |
Security Advisories (RSS) |
|
|
|
0 |
10,267 |
UNIX for Advanced & Expert Users |
|
|
|
3 |
5,616 |
Shell Programming and Scripting |
|
|
|
1 |
9,635 |
Programming |
|
|
|
0 |
517 |
Software Releases - RSS News |
|
|
|
0 |
905 |
Software Releases - RSS News |
|
|
|
10 |
20,254 |
Shell Programming and Scripting |
|
|
|
0 |
691 |
Software Releases - RSS News |
|
|
|
0 |
1,012 |
Software Releases - RSS News |
|
|
|
1 |
5,036 |
Shell Programming and Scripting |
|
|
|
0 |
854 |
Software Releases - RSS News |
|
|
|
9 |
5,787 |
Shell Programming and Scripting |
|
|
|
3 |
2,261 |
Shell Programming and Scripting |
|
|
|
0 |
1,076 |
Software Releases - RSS News |
|
|
|
0 |
13,056 |
Shell Programming and Scripting |
|
|
|
5 |
2,747 |
Shell Programming and Scripting |
|
|
|
10 |
5,164 |
Shell Programming and Scripting |
|
|
|
0 |
673 |
Software Releases - RSS News |
|
|
|
0 |
1,015 |
Software Releases - RSS News |
|
|
|
0 |
737 |
Software Releases - RSS News |
|
|
|
4 |
4,167 |
Shell Programming and Scripting |
|
|
|
6 |
4,602 |
Shell Programming and Scripting |
|
|
|
14 |
12,969 |
Shell Programming and Scripting |
|
|
|
6 |
9,127 |
Shell Programming and Scripting |
|
|
|
9 |
7,663 |
Shell Programming and Scripting |
|
|
|
0 |
728 |
Software Releases - RSS News |
|
|
|
1 |
4,085 |
Shell Programming and Scripting |
|
|
|
1 |
5,509 |
Shell Programming and Scripting |
|
|
|
3 |
2,093 |
UNIX for Dummies Questions & Answers |
|
|
|
0 |
582 |
Software Releases - RSS News |
|
|
|
0 |
724 |
Software Releases - RSS News |
|
|
|
3 |
17,610 |
Shell Programming and Scripting |
|
|
|
9 |
9,866 |
Shell Programming and Scripting |
|
|
|
1 |
4,826 |
Shell Programming and Scripting |
PACEMAKER(8) System Administration Utilities PACEMAKER(8)
NAME
Pacemaker - Part of the Pacemaker cluster resource manager
SYNOPSIS
crm_diff original_xml operation [options]
DESCRIPTION
crm_diff - A utility for comparing Pacemaker configurations (XML format)
The tool produces a custom (diff-like) output which it can also apply like a patch
OPTIONS
-?, --help
This text
-$, --version
Version information
-V, --verbose
Increase debug output
Original XML:
-o, --original=value
XML is contained in the named file
-O, --original-string=value
XML is contained in the supplied string
Operation:
-n, --new=value
Compare the original XML to the contents of the named file
-N, --new-string=value
Compare the original XML to the contents of the supplied string
-p, --patch=value
Patch the original XML with the contents of the named file
Additional Options:
-c, --cib
Compare/patch the inputs as a CIB (includes versions details)
-f, --filter
Suppress irrelevant differences between the two inputs
EXAMPLES
Obtain the two different configuration files by running cibadmin on the two cluster setups to compare:
# cibadmin --query > cib-old.xml
# cibadmin --query > cib-new.xml
Calculate and save the difference between the two files:
# crm_diff --original cib-old.xml --new cib-new.xml > patch.xml
Apply the patch to the original file:
# crm_diff --original cib-old.xml --patch patch.xml > updated.xml
Apply the patch to the running cluster:
# cibadmin --patch patch.xml
AUTHOR
Written by Andrew Beekhof
REPORTING BUGS
Report bugs to pacemaker@oss.clusterlabs.org
Pacemaker 1.1.7 April 2012 PACEMAKER(8)