Scroll to navigation

cs_sum_base_config(8) ClusterTools2 cs_sum_base_config(8)

NAME

cs_sum_base_config - calculate checksums for common configuration and system parameters

SYNOPSIS

cs_sum_base_config [OPTION]

DESCRIPTION

cs_sum_base_config calculates MD5 checksums for common configuration and system parameters. By default mostly files and parameters are checked, that are expected to be identical on all nodes of one cluster. The output can be used to find differences between two or more cluster nodes. Or it can be stored and re-used later to check for changes. Please call this script as root.

OPTIONS

--help show help.

--version show version.

--writecfg show some internal variables.

--files checksum base config files only.

--calls checksum base calls only.

--apps checksum applications config files and calls only.

--might checksum files than might not be cloned.

EXAMPLES

* Write checksums for common base config files of an node to a file.

# cs_sum_base_config -f >$HOSTNAME.txt
* Find differences between nodep and nodeq. Check base config files as well as common base system parameters and applications configuration.
# cs_sum_base_config >nodep.txt
# cs_sum_base_config -a >>nodep.txt
# ssh root@nodeq cs_sum_base_config >nodeq.txt
# ssh root@nodeq "cs_sum_base_config -a" >>nodeq.txt
# diff node[pq].txt

* Do not checksum whole file, but only non-comment lines.
Edit configuration.
# vi /etc/ClusterTools2/cs_sum_base_config
Remove file name from CONF_FILES, e.g.
:dd /etc/sysctl.conf
Add script to CONF_CALLS, e.g.
:i
´/usr/bin/grep -v "^#" /etc/sysctl.conf´
:wq
# cs_sum_base_config | grep "/etc/sysctl.conf"

EXIT STATUS

0 Successful program execution.
>0 Usage, syntax or execution errors.

FILES

/usr/sbin/cs_sum_base_config
the program itself.
/etc/ClusterTools2/cs_sum_base_config
the configuration.

BUGS

The number of files is limited to the maximum number of arguments for a shell loop. Single quotes "'" are not allowed in calls. Time is read from hwclock, but not compared to system time. Some files are checked for later re-use, e.g. initiatorname.iscsi. This leads to few fals-positives when comparing two nodes.
Feedback is welcome, please mail to feedback@suse.com

SEE ALSO

md5sum(1), ClusterTools2(7), cs_list_clone_files(8), aideinit(8), tripwire(8)

COPYRIGHT

(c) 2011-2019 L.Pinne, Germany.
cs_sum_base_config comes with ABSOLUTELY NO WARRANTY.
For details see the GNU General Public License at http://www.gnu.org/licenses/gpl.html

01 Nov 2019