.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.46.4. .TH PACEMAKER "8" "June 2017" "Pacemaker 1.1.16" "System Administration Utilities" .SH NAME Pacemaker \- Part of the Pacemaker cluster resource manager .SH SYNOPSIS .B crm_diff \fI\,original_xml operation \/\fR[\fI\,options\/\fR] .SH DESCRIPTION crm_diff \- A utility for comparing Pacemaker configurations (XML format) .PP The tool produces a custom (diff\-like) output which it can also apply like a patch .SH OPTIONS .TP \-?, \fB\-\-help\fR This text .TP \-$, \fB\-\-version\fR Version information .TP \fB\-V\fR, \fB\-\-verbose\fR Increase debug output .SS "Original XML:" .TP \fB\-o\fR, \fB\-\-original\fR=\fI\,value\/\fR XML is contained in the named file .TP \fB\-O\fR, \fB\-\-original\-string\fR=\fI\,value\/\fR XML is contained in the supplied string .SS "Operation:" .TP \fB\-n\fR, \fB\-\-new\fR=\fI\,value\/\fR Compare the original XML to the contents of the named file .TP \fB\-N\fR, \fB\-\-new\-string\fR=\fI\,value\/\fR Compare the original XML to the contents of the supplied string .TP \fB\-p\fR, \fB\-\-patch\fR=\fI\,value\/\fR Patch the original XML with the contents of the named file .SS "Additional Options:" .TP \fB\-c\fR, \fB\-\-cib\fR Compare/patch the inputs as a CIB (includes versions details) .TP \fB\-u\fR, \fB\-\-no\-version\fR Generate the difference without versions details .SH EXAMPLES Obtain the two different configuration files by running cibadmin on the two cluster setups to compare: .IP # cibadmin \-\-query > cib\-old.xml .IP # cibadmin \-\-query > cib\-new.xml .PP Calculate and save the difference between the two files: .IP # crm_diff \-\-original cib\-old.xml \-\-new cib\-new.xml > patch.xml .PP Apply the patch to the original file: .IP # crm_diff \-\-original cib\-old.xml \-\-patch patch.xml > updated.xml .PP Apply the patch to the running cluster: .IP # cibadmin \-\-patch patch.xml .SH AUTHOR Written by Andrew Beekhof .SH "REPORTING BUGS" Report bugs to users@clusterlabs.org