forked from DevOps/deploy.stack
10 lines
628 B
Plaintext
10 lines
628 B
Plaintext
|
|
#!/usr/bin/env bash
|
||
|
|
|
||
|
|
smartctl --all -d megaraid,0 /dev/sda >> /root/smartctl.$(date +%y%m%d).log
|
||
|
|
smartctl --all -d megaraid,1 /dev/sda >> /root/smartctl.$(date +%y%m%d).log
|
||
|
|
smartctl --all -d megaraid,2 /dev/sda >> /root/smartctl.$(date +%y%m%d).log
|
||
|
|
smartctl --all -d megaraid,3 /dev/sda >> /root/smartctl.$(date +%y%m%d).log
|
||
|
|
smartctl --all -d megaraid,4 /dev/sda >> /root/smartctl.$(date +%y%m%d).log
|
||
|
|
smartctl --all -d megaraid,5 /dev/sda >> /root/smartctl.$(date +%y%m%d).log
|
||
|
|
smartctl --all -d megaraid,6 /dev/sda >> /root/smartctl.$(date +%y%m%d).log
|
||
|
|
smartctl --all -d megaraid,7 /dev/sda >> /root/smartctl.$(date +%y%m%d).log
|