hi, i am currently writing a short shellscript to automatically verify my cib.xml using xmllint and - after stripping the comments ;) - crm_verify.
i am struggeling with the exit codes. different errors results in exit code "1". e.g. xml parse error: > Couldn't parse input file: c.xml > 1 config *may* not be valid (i know, that is a bug, nevertheless) > crm_verify[10247]: 2008/11/13_12:34:53 notice: main: Required feature set: 2.0 > crm_verify[10247]: 2008/11/13_12:34:53 WARN: main: Your configuration was > internally updated to the latest version (pacemaker-1.0) > Warnings found during check: config may not be valid > 1 maybe this will too be the reason with: > crm_verify[12148]: 2008/11/13_12:36:58 WARN: unpack_resources: No STONITH > resources have been defined only if the cib.xml file has some scheme validation errors, i get the an different exit-code - e.g. 2 maybe we should clean this up a little bit - at least seperate real xml parse errors from *configuration may not be valid* alerts. cheers, raoul -- ____________________________________________________________________ DI (FH) Raoul Bhatia M.Sc. email. [EMAIL PROTECTED] Technischer Leiter IPAX - Aloy Bhatia Hava OEG web. http://www.ipax.at Barawitzkagasse 10/2/2/11 email. [EMAIL PROTECTED] 1190 Wien tel. +43 1 3670030 FN 277995t HG Wien fax. +43 1 3670030 15 ____________________________________________________________________ _______________________________________________ Pacemaker mailing list [email protected] http://list.clusterlabs.org/mailman/listinfo/pacemaker
