作業日記@HatenaBlog

各種の作業メモ

2009-01-03から1日間の記事一覧

smartmontoolsの導入

S.M.A.R.T.によりHDDを監視。 portinstallによりインストール # portinstall -v sysutils/smartmontools rc.confに追記 # vi /etc/rc.conf smartd_enable="YES" smartd.confの設定 # cd /usr/local/etc/ # cp smartd.conf.sample smartd.conf # vi smartd.co…

UPSによる電源制御

ケーブル接続 apcupsdの設定メモを参考にAPC社製Smart-UPS 500とシリアル接続する。 portインストール # portinstall -v sysutils/apcupsd libiconvのportsインストール時にオプション選択があるので、両方とも[X]チェックする。 [X] EXTRA_ENCODINGS Includ…

NTPによる時刻同期

rc.confに設定追加 /etc/defaults/rc.conf から、設定ファイルをコピーする。 # grep ntpd_ /etc/defaults/rc.conf >> /etc/rc.conf ntpd_conf="NO"をYESに変更。 # vi /etc/rc.conf ntpd_enable="YES" # Run ntpd Network Time Protocol (or NO). ntpd_prog…