10/05/15 16:58:06 0
>>533
× SDS
○ SSD
# 何で間違ったんだろう・・・
---
記録するスクリプト
-----------------------------------------------------------------------------------
#! /bin/sh
# $Id: sasuke-kai.sh, ver.alpha+2 2010/05/15 16:50:00 NAO Exp $
# name change : sasuke-kai
TZ=JST-9; export TZ
PATH=/usr/bin:/bin:/usr/local/bin:/usr/local/sbin; export PATH
_SSDLIFE="保存したい階層"
_FILENAME=`date +%Y%m%d`.txt
_DATE=`date +"%Y/%m/%d %H:%M:%S"`
_AD06_E8=`/usr/local/sbin/smartctl -a /dev/ad6 | grep 232 | awk '{print $4}'`
_AD06_E9=`/usr/local/sbin/smartctl -a /dev/ad6 | grep 233 | awk '{print $4}'`
_AD08_E8=`/usr/local/sbin/smartctl -a /dev/ad8 | grep 232 | awk '{print $4}'`
_AD08_E9=`/usr/local/sbin/smartctl -a /dev/ad8 | grep 233 | awk '{print $4}'`
echo ${_DATE} SSD_\(E8,E9\) = ad6\(${_AD06_E8},${_AD06_E9}\), ad08\(${_AD08_E8},${_AD08_E9}\) >> ${_HDDTMP}/${_FILENAME}
exit 0