.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.47.16. .TH PACEMAKER "8" "January 2021" "Pacemaker 2.0.5" "System Administration Utilities" .SH NAME Pacemaker \- Part of the Pacemaker cluster resource manager .SH SYNOPSIS crm_diff original_xml operation [options] .SH DESCRIPTION Compare two Pacemaker configurations (in XML format) to produce a custom diff\-like output, or apply such an output as a patch .SH OPTIONS .SS "Help Options:" .TP \fB\-h\fR, \fB\-\-help\fR Show help options .TP \fB\-\-help\-all\fR Show all help options .TP \fB\-\-help\-xml\fR Show original XML options .TP \fB\-\-help\-operation\fR Show operation options .TP \fB\-\-help\-additional\fR Show additional options .SS "Original XML:" .TP \fB\-o\fR, \fB\-\-original\fR=\fI\,FILE\/\fR XML is contained in the named file .TP \fB\-O\fR, \fB\-\-original\-string\fR=\fI\,STRING\/\fR XML is contained in the supplied string .SS "Operation:" .TP \fB\-n\fR, \fB\-\-new\fR=\fI\,FILE\/\fR Compare the original XML to the contents of the named file .TP \fB\-N\fR, \fB\-\-new\-string\fR=\fI\,STRING\/\fR Compare the original XML with the contents of the supplied string .TP \fB\-p\fR, \fB\-\-patch\fR=\fI\,FILE\/\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) .HP \fB\-s\fR, \fB\-\-stdin\fR .TP \fB\-u\fR, \fB\-\-no\-version\fR Generate the difference without versions details .SS "Application Options:" .TP \-$, \fB\-\-version\fR Display software version and exit .TP \fB\-V\fR, \fB\-\-verbose\fR Increase debug output (may be specified multiple times) .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 \-x patch.xml .SH AUTHOR Written by Andrew Beekhof