dispatch: /usr/local/adm/bin/cmp_sanity.ksh -? Usage: cmp_sanity.ksh -options # backcopy and compare ConfigFiles Options: -f file file to backcopy, current: -m|n node node(s) to backcopy, current: -c|u class class|use to backopy, current: -h|p *Files *Files list/directory, current: SunFiles or use: -sun, -linux, -xt -w pause and sdiff|more -b backcopy update (prompted) +s use diff not sdiff -s do not [s]diff files -d debug (enable set -x) -?|--help this information If file is not provide assume current *Files directory.
mn1sm: cmp_sanity.ksh -f /etc/group -m mn1sm,mg56,mpbs1 /etc/group seed sudo ... Sat Nov 15 08:21:56 AKST 2008 push_rcp: from:/etc/group to:/var/local/LinuxFiles/etc/group/_. mn1sm:/bin/cp -p /etc/group .../_..mn1sm mg56:/usr/bin/scp -q -P22 -p mg56:/etc/group .../_..mg56 mpbs1:/usr/bin/scp -q -P22 -p mpbs1:/etc/group .../_..mpbs1 # match: mg56 : group.template # match: mn1sm : group.rh4 # match: mpbs1 : group.rh4
piboot: cmp_sanity.ksh -f logrotate -m nid00003 +s /etc/cron.daily/logrotate seed sudo ... Wed Feb 25 09:28:51 AKST 2009 push_rcp: from:/etc/cron.daily/logrotate to:/var/local/CrayFiles/etc/cron.daily/logrotate/_. nid00003:/usr/software/bin/scp -q -p nid00003:/etc/cron.daily/logrotate .../logrotate/_..nid00003 # check: nid00003 logrotate.nid00003 < grep EZVIZ /syslog/var/log/messages >> /ufs/ezviz/log > grep EZVIZ /syslog/var/log/messages | mail rsmith@arsc.edu -s
ogboot: chk_sanity.ksh -u ... ERR:Mis-matched mode, ownership, sum, or type: ----------- (ConfigFiles) (actual) nid00003 !: sum .nid00003 : . . . :/var/local/logs/CF/etc.txt nid00004 !: sum .template : . . . :/var/local/logs/CF/etc.txt nid00007 !: sum .template : . . . :/var/local/logs/CF/etc.txt ognip1 !: sum .login : . . . :/var/local/logs/CF/etc.txt ognip2 !: sum .login : . . . :/var/local/logs/CF/etc.txt boot001 !: sum .boot001 : . . . :/var/local/logs/CF/rpmsnl.txt ogboot: cmp_sanity.ksh -f etc.txt -b # review etc.txt files /var/local/logs/CF/etc.txt seed sudo ... Wed Feb 25 09:26:15 AKST 2009 push_rcp: from:/var/local/logs/CF/etc.txt to:/var/local/CrayFiles/var/local/logs/CF/etc.txt/_. ogman:/usr/software/bin/scp -q -p ogman:/var/local/logs/CF/etc.txt .../_..ogman boot001:/bin/cp -p /var/local/logs/CF/etc.txt .../_..boot001 nid00003:/usr/software/bin/scp -q -p nid00003:/var/local/logs/CF/etc.txt .../_..nid00003 nid00004:/usr/software/bin/scp -q -p nid00004:/var/local/logs/CF/etc.txt .../_..nid00004 nid00007:/usr/software/bin/scp -q -p nid00007:/var/local/logs/CF/etc.txt .../_..nid00007 nid00008:/usr/software/bin/scp -q -p nid00008:/var/local/logs/CF/etc.txt .../_..nid00008 nid00011:/usr/software/bin/scp -q -p nid00011:/var/local/logs/CF/etc.txt .../_..nid00011 # match: boot001 : etc.txt.boot001 # check: nid00003 etc.txt.nid00003 L 0644 root root 06483 pbs.conf.10.0.0.82981 < # Update? [yN] y # pbs 10 was installed, new file in /etc cp -p: ./backout/etc.txt.nid00003.20090225 # check: nid00004 etc.txt.template L 0644 root root 06483 pbs.conf.10.0.0.82981 < # Update? [yN] y cp -p: ./backout/etc.txt.template.20090225 # match: nid00007 : etc.txt.template # check: nid00008 etc.txt.login L 0644 root root 06483 pbs.conf.10.0.0.82981 < # Update? [yN] y cp -p: ./backout/etc.txt.login.20090225 # match: nid00011 : etc.txt.login # match: ogman : etc.txt.ogman ogboot: cmp_sanity.ksh -f rpmsnl.txt -m boot001 -b /var/local/logs/CF/rpmsnl.txt seed sudo ... Wed Feb 25 09:24:36 AKST 2009 push_rcp: from:/var/local/logs/CF/rpmsnl.txt to:/var/local/CrayFiles/var/local/logs/CF/rpmsnl.txt/_. boot001:/bin/cp -p /var/local/logs/CF/rpmsnl.txt .../_..boot001 # check: boot001 rpmsnl.txt.boot001 pbs-10.0.0.82981-0 < # Update? [yN] y # pbs 10 was installed, RPMs updated cp -p: ./backout/rpmsnl.txt.boot001.20090225