Re: cluster.conf linting

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




In the message dated: Wed, 28 Jan 2009 11:30:15 EST,
The pithy ruminations from jim parsons on 
<Re:  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
=> 

--
Linux-cluster mailing list
Linux-cluster@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/linux-cluster

[Index of Archives]     [Corosync Cluster Engine]     [GFS]     [Linux Virtualization]     [Centos Virtualization]     [Centos]     [Linux RAID]     [Fedora Users]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite Camping]

  Powered by Linux