[Linux-cluster] cluster.conf linting

bergman at merctech.com bergman at merctech.com
Wed Jan 28 23:04:14 UTC 2009



In the message dated: Wed, 28 Jan 2009 11:30:15 EST,
The pithy ruminations from jim parsons on 
<Re: [Linux-cluster] cluster.conf linting> were:
=> On Wed, 2009-01-28 at 10:03 -0500, Jeremy Eder wrote:
=> > i remember there is a python or other script that lints cluster.conf...
=> > anyone remember the name, and/or rpm that provides it ?

While not cluster-aware, the program "xmllint" is an excellent way to do a 
quick syntax check on any XML file. I prefer to use the option "-noout" to 
supress any non-error output, as in:

	xmllint -noout /etc/cluster/cluster.conf

If it returns nothing (and sets the return value to 0), then there were no 
parsing errors (no mis-matched braces, for example).

Mark

=> > 
=> > 
=> > --jer
=> > 
=> It is called cluster.ng. It is installed with the system-config-cluster
=> package, and lives in a misc directory beneath the src directory. As you
=> can tell from the file extension, it is a relaxng file, which can
=> sometimes be frustrating when finding a particular error. I put the file
=> in an editor and remove big chunks of it then run the relaxng script on
=> it.....helps to localize the problem.
=> 
=> hth,
=> 
=> -Jim
=> 




More information about the Linux-cluster mailing list