1.加入安裝來源
wget -q -O - http://linux.dell.com/repo/hardware/dsu/bootstrap.cgi | bash
2.安裝系統更新套件
zypper install dell-system-update
3.更新韌體 (輸入數字鍵按下enter 選擇要更新的項目,c 按下enter 為commit)
dsu
4.加入SLES12 的系統更新來源 5.安裝libwsman1 (你可以透過此下載,或是自己打包)zypper ar http://linux.dell.com/repo/hardware/dsu/os_dependent/SLES12_64 dell-platform
zypper install libwsman1-2.4.11-19.6.x86_64.rpm
6.安裝套件
zypper install srvadmin-all OpenIPMI net-snmp
7.建立IGNORE_GENERATION
touch /opt/dell/srvadmin/lib64/openmanage/IGNORE_GENERATION
8.設定開機啟動&啟動服務
chkconfig dataeng on
chkconfig dsm_om_connsvc on
chkconfig dsm_om_shrsvc on
systemctl start dataeng.service
systemctl start dsm_om_connsvc.service
systemctl start dsm_om_shrsvc.service
9.最後記得防火牆要打開1311 port,然後就可以透過瀏覽器開啟是不是非常的簡單呢,接下來我們繼續來設定Email 通知
1.安裝mailx
zypper in mailx
2.設定mail.rc(這邊的設定檔位置跟CentOS有些不同)
vi /etc/mail.rc
加入以下設定(請自行修改紅色字體的部份) 3.建立發送通知的scriptset from=urid@urdomain.com smtp=urdomain.com set smtp-auth-user=urid smtp-auth-password=urpassword set smtp-auth=login
vi /usr/local/bin/om-alert.sh
加入以下script (from http://idolinux.blogspot.tw)
#!/bin/sh
HOST=`hostname`
EMAIL="urid@urdomain.com"
echo "There has been an OpenManage ALERT detected on $HOST. Please login to the web interface to see details." | mail -s "OM ALERT $HOST $1" $EMAIL
修改權限4.把所有項目都套用異常通知chmod +x /usr/local/bin/om-alert.sh
for I in `omconfig system alertaction | sed 's/ *(.*)//; s/>.*//; s/.*[:<] *// ; s/|/ /g;'`; do
echo $I;
omconfig system alertaction event=$I alert=true broadcast=true execappath="/usr/local/bin/om-alert.sh $I"
done
沒有留言:
張貼留言