init
This commit is contained in:
19
archiv/chronjob-statedrive.sh
Normal file
19
archiv/chronjob-statedrive.sh
Normal file
@@ -0,0 +1,19 @@
|
||||
touch /raid/state-drive.txt
|
||||
date >> /raid/state-drive.txt
|
||||
echo "" >> /raid/state-drive.txt
|
||||
echo "SDA = raid_platte_1" >> /raid/state-drive.txt
|
||||
sudo smartctl -a /dev/sda | sed -n '6p' >> /raid/state-drive.txt
|
||||
sudo smartctl -a /dev/sda | sed -n '10p' >> /raid/state-drive.txt
|
||||
sudo smartctl -H /dev/sda | sed -n '5p' >> /raid/state-drive.txt
|
||||
echo "" >> /raid/state-drive.txt
|
||||
echo "SDB = raid_platte_2" >> /raid/state-drive.txt
|
||||
sudo smartctl -a /dev/sdb | sed -n '6p' >> /raid/state-drive.txt
|
||||
sudo smartctl -a /dev/sdb | sed -n '10p' >> /raid/state-drive.txt
|
||||
sudo smartctl -H /dev/sdb | sed -n '5p' >> /raid/state-drive.txt
|
||||
echo "" >> /raid/state-drive.txt
|
||||
echo "SDC = System" >> /raid/state-drive.txt
|
||||
sudo smartctl -a /dev/sdc | sed -n '6p' >> /raid/state-drive.txt
|
||||
sudo smartctl -a /dev/sdc | sed -n '10p' >> /raid/state-drive.txt
|
||||
sudo smartctl -H /dev/sdc | sed -n '5p' >> /raid/state-drive.txt
|
||||
rm /raid/netdrive/state-drive.txt
|
||||
mv /raid/state-drive.txt /raid/netdrive/state-drive.txt
|
||||
Reference in New Issue
Block a user