2010年1月7日木曜日

kfs01 S.M.A.R.T.

FreeBSDでS.M.A.R.T.を使いたい。

# cd /usr/ports/sysutils/smartmontools
# make config-recursive install clean

これだけ。あとはsmartctlコマンドで情報取得する。

○情報取得
/usr/local/sbin/smartctl -a /dev/ad4
/usr/local/sbin/smartctl -a /dev/ad6
/usr/local/sbin/smartctl -a /dev/ad8
/usr/local/sbin/smartctl -a /dev/ad10
/usr/local/sbin/smartctl -a /dev/ad12
/usr/local/sbin/smartctl -a /dev/ad13
/usr/local/sbin/smartctl -a /dev/ad14
/usr/local/sbin/smartctl -a /dev/ad15

○テスト(short,long,conveyance)
/usr/local/sbin/smartctl -t short /dev/ad4
/usr/local/sbin/smartctl -t short /dev/ad6
/usr/local/sbin/smartctl -t short /dev/ad8
/usr/local/sbin/smartctl -t short /dev/ad10
/usr/local/sbin/smartctl -t short /dev/ad12
/usr/local/sbin/smartctl -t short /dev/ad13
/usr/local/sbin/smartctl -t short /dev/ad14
/usr/local/sbin/smartctl -t short /dev/ad15

0 件のコメント: