From b7ed4d40e474ce1e02cc890abffbb120d4fec6e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandino=20Araico=20S=C3=A1nchez?= Date: Sun, 4 Jul 2021 23:36:55 -0500 Subject: [PATCH] Para escaneos del 2021-07-05 --- scripts/test-all | 77 ++++++++++++++++++++++++++-------------------- scripts/test-batch | 72 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 115 insertions(+), 34 deletions(-) diff --git a/scripts/test-all b/scripts/test-all index 077dd84..033f5e5 100755 --- a/scripts/test-all +++ b/scripts/test-all @@ -7,44 +7,53 @@ echo $$ > /run/test.pid TEST_CONTAINER=1 export TEST_CONTAINER -#scan-netdev -#test-memtester -#if [[ -f $OUTPUT_DIR/memtester.fail ]] ; then -# mkdir -p $SNAPSHOT_D -# cp -af $OUTPUT_DIR/* $SNAPSHOT_D/ -# FAILED_PROCS=`head -1 $OUTPUT_DIR/memtester.fail | sed 's/[^0-9]//g'` -# echo "${BLD}$FAILED_PROCS${OFF} have ${RED}FAILED${OFF} the memtester test." -# echo "All tests have been stopped..." -# echo "${BLD}Please replace the failing memory and run this tests again.${OFF}" + +# Escaneos iniciales. Solo esc aneo +scan-netdev +scan-hdd +scan-meminfo +lspci > $OUTPUT_DIR/lspci + +# De aquĆ­ en adelante lo dejo comentado para los siguientes escaneos +##scan-netdev +##test-memtester +##if [[ -f $OUTPUT_DIR/memtester.fail ]] ; then +## mkdir -p $SNAPSHOT_D +## cp -af $OUTPUT_DIR/* $SNAPSHOT_D/ +## FAILED_PROCS=`head -1 $OUTPUT_DIR/memtester.fail | sed 's/[^0-9]//g'` +## echo "${BLD}$FAILED_PROCS${OFF} have ${RED}FAILED${OFF} the memtester test." +## echo "All tests have been stopped..." +## echo "${BLD}Please replace the failing memory and run this tests again.${OFF}" +## rm -f /run/test.pid +## while [[ 1 ]] ; do +## sleep 3600 +## done +##fi +#test-badblocks +#if [[ -f $OUTPUT_DIR/badblocks.fail ]] ; then +# echo "One or more disks have ${RED}FAILED${OFF} the badblocks test." +# echo "${BLD}Please replace the failing disks and restart this tests again.{OFF}" # rm -f /run/test.pid # while [[ 1 ]] ; do # sleep 3600 # done #fi -test-badblocks -if [[ -f $OUTPUT_DIR/badblocks.fail ]] ; then - echo "One or more disks have ${RED}FAILED${OFF} the badblocks test." - echo "${BLD}Please replace the failing disks and restart this tests again.{OFF}" - rm -f /run/test.pid - while [[ 1 ]] ; do - sleep 3600 - done -fi +# +##test-memtester summary +#test-badblocks summary +# +##test-fio +##test-pmbw +##test-linpack +# +## Take snapshot +#mkdir -p $SNAPSHOT_D +#cp -af $OUTPUT_DIR/* $SNAPSHOT_D/ +# +#rm -f /run/test.pid +#while [[ 1 ]] ; do +# sleep 3600 +#done -#test-memtester summary -test-badblocks summary - -#test-fio -#test-pmbw -#test-linpack - -# Take snapshot -mkdir -p $SNAPSHOT_D -cp -af $OUTPUT_DIR/* $SNAPSHOT_D/ - -rm -f /run/test.pid -while [[ 1 ]] ; do - sleep 3600 -done -halt +poweroff diff --git a/scripts/test-batch b/scripts/test-batch index 483f9fd..1581a64 100755 --- a/scripts/test-batch +++ b/scripts/test-batch @@ -24,5 +24,77 @@ echo $$ > /run/batch.pid #mkdir -p $SNAPSHOT_D #cp -af $OUTPUT_DIR/* $SNAPSHOT_D/ +# 2017-02-23 migracion de espacio de direcciones +#vgscan +#vgchange -ay rhel +#mkdir /mnt/sysimage +#mount /dev/rhel/root /mnt/sysimage +#touch /mnt/sysimage/.autorelabel +#mkdir /mnt/sysimage/bak +#cp -avf /mnt/sysimage/etc/hosts /mnt/sysimage/bak/ +#cp -avf /mnt/sysimage/etc/sysconfig/network-scripts /mnt/sysimage/bak/ +#cd /mnt/sysimage/etc/sysconfig/network-scripts +#cp -af /mnt/sysimage/bak/network-scripts/ifcfg-* ./ +# +#cat > ifcfg-bond0 << EOF +#DEVICE=bond0 +#BONDING_OPTS='mode=1 miimon=100' +#PREFIX=22 +#GATEWAY=172.30.75.254 +#ONBOOT=yes +#MTU=1500 +#NM_CONTROLLED=no +#IPV6INIT=no +#EOF +# +#cat ifcfg-enp2s0f1 \ +# | grep IPADDR >> ifcfg-bond0 +# +#cat > ifcfg-enp2s0f0 << EOF +#DEVICE=enp2s0f0 +#Type=Ethernet +#BOOTPROTO=none +#ONBOOT=yes +#MASTER=bond0 +#SLAVE=yes +#NM_CONTROLLED=no +#ETHTOOL_OPTS="autoneg off speed 1000 duplex full" +#EOF +# +#cat > ifcfg-enp2s0f1 << EOF +#DEVICE=enp2s0f1 +#MASTER=bond0 +#SLAVE=yes +#ONBOOT=yes +#MTU=1500 +#NM_CONTROLLED=no +#IPV6INIT=no +#ETHTOOL_OPTS="autoneg off speed 1000 duplex full" +#EOF +# +#for CFG in ifcfg-* ; do +# sed -i 's/PREFIX=24/PREFIX=22/' $CFG +# sed -i 's/PREFIX=.24./PREFIX=22/' $CFG +# sed -i 's/255.255.255.0/255.255.252.0/' $CFG +# sed -i 's/10.129.146.254/10.129.159.254/' $CFG +# sed -i 's/10.129.146/10.129.156/' $CFG +# sed -i 's/10.129.145.254/10.129.155.254/' $CFG +# sed -i 's/10.129.145/10.129.152/' $CFG +# sed -i 's/10.129.144.254/10.129.147.254/' $CFG +# sed -i 's/10.129.144/10.129.144/' $CFG +# sed -i 's/172.30.73.254/172.30.83.254/' $CFG +# sed -i 's/172.30.73/172.30.80/' $CFG +# sed -i 's/172.30.72.254/172.30.79.254/' $CFG +# sed -i 's/172.30.72/172.30.76/' $CFG +# sed -i 's/172.30.71.254/172.30.75.254/' $CFG +# sed -i 's/172.30.71/172.30.72/' $CFG +# sed -i '/IPADDR/ s/\.64/\.151/' $CFG +# sed -i '/IPADDR/ s/\.65/\.152/' $CFG +# sed -i '/IPADDR/ s/\.66/\.153/' $CFG +# sed -i '/IPADDR/ s/\.67/\.154/' $CFG +# +#done + + rm -f /run/batch.pid #echo '--'