cs_sum_base_config(8)

πŸ“¦ version 3.1.3, in opensuse-leap 16.0

πŸ’– cs_sum_base_config(8) β€” ClusterTools2's checksum bestie πŸ’–

🌸 NAME 🌸

cs_sum_base_config β€” calculate checksums for common configuration and system parameters πŸ’…

✨ SYNOPSIS ✨

cs_sum_base_config [OPTION]

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so bestie, cs_sum_base_config calculates MD5 checksums for common configuration and system parameters. By default it mostly checks files and parameters 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. πŸŽ€

πŸ’– Root moment: please call this script as root. no cap.

πŸŽ€ 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 that 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 πŸ”₯

(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


okay that's the whole page, bestie! 🫢 This cs_sum_base_config(8) page is from ClusterTools2, dated 01 Nov 2019. Go checksum those nodes and slay. πŸ’–

πŸ“¦ where this page comes from