歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux綜合 >> Linux資訊 >> Linux文化 >> 使用IPMI遠程控制管理DELL2850服務器

使用IPMI遠程控制管理DELL2850服務器

日期:2017/2/27 11:58:03   编辑:Linux文化

Dell™ PowerEdge™ 2850 系統底板管理控制器 (BMC) 通過與主機板上的不同傳感器通信來監視系統是否有嚴重事件,並在某些參數超出其預置阈值時發出警報和日志事件。 BMC 支持工業標准的 Intelligent Platform Management Interface (IPMI) 規范,可以實現遠程配置、監測和恢復系統。 BMC 提供以下功能: 通過系統的串行端口和集成 NIC 進行訪問 故障日志記錄和 SNMP 警報發送 訪問系統事件日志 (SEL) 和傳感器狀況 控制包括開機和關機在內的系統功能 獨立於系統電源或工作狀態的支持 用於系統設置、基於文本公用程序和操作系統控制台的文本控制台重定向 使用 LAN 上串行 (SOL) 訪問 Red Hat® Enterprise Linux 串行控制台界面 看到了吧,以上是DELL官方對IPMI功能的描述,這些功能非常強大哦,據我所知,現在一般大廠的服務器都支持ipmi功能,比如DELL,HP,IBM。今天我們以DELL的2850為例,給大家簡單介紹一下IPMI的基本使用。 1.配置系統啟用IPMI,啟動服務器,在啟動過程中,看提示,按Ctrl+E 進入IPMI管理界面 2.設置IPMI Over LAN為On,默認為Off,意思為啟用通過LAN方式的IPMI。 screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onmouseover="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {return true;} else {window.open('http://blog.5ilinux.com/archives/images/ipmi01.jpg');}" onmousewheel="return imgzoom(this);"> 3.設置IPMI的地址,這裡的地址可以跟你服務器的ip地址一樣,不會有沖突,放心設置,MAC地址不用設置。VLAN不用設置。 screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onmouseover="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {return true;} else {window.open('http://blog.5ilinux.com/archives/images/ipmi02.jpg');}" onmousewheel="return imgzoom(this);"> 4.這裡是設置訪問的用戶名和密碼,遠程訪問IPMI是需要驗證的。 screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onmouseover="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {return true;} else {window.open('http://blog.5ilinux.com/archives/images/ipmi03.jpg');}" onmousewheel="return imgzoom(this);"> 好了設置完畢,重啟機器,基本上現在服務器就已經能通過遠程訪問ipmi了。 我們先在另外一台機器裝上ipmiltool,一個管理IPMI的開源工具,可以在任何機器安裝,安裝的機器本身主板可以沒有IPMI。 裝完以後,我們試驗一下能不能訪問,運行以下命令 ipmitool –I lan –H host -U user -a channel info host:填寫你的服務器的IP地址 user:填寫你之前設置的用戶名,我們這裡是root 正常的話,會提示你輸入密碼,就是圖3我們設置的密碼。 以下是顯示的信息: screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onmouseover="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {return true;} else {window.open('http://blog.5ilinux.com/archives/images/ipmi04.jpg');}" onmousewheel="return imgzoom(this);"> 說明遠程服務器,我們剛才設置的服務器已經啟用IPMI。 那怎麼在本地訪問IPMI呢,如果你直接用ipmitool訪問是訪問不了的,會提示以下錯誤: Error: Unable to establish LAN session Unable to Get Channel Info 這裡我們得安裝OpenIPMI,裝完這個,系統就能認出IPMI,這樣我們才能通過ipmitool訪問,當然前提是你的內核編譯支持IPMI了。 裝完OpenIPMI後,啟用IPMI服務 /etc/rc.d/init.d/ipmi start 一般如果內核支持的話,能正常啟動,用lsmod看看加載的模塊 screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onmouseover="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {return true;} else {window.open('http://blog.5ilinux.com/archives/images/ipmi05.jpg');}" onmousewheel="return imgzoom(this);"> 這時我們可以本地訪問IPMI,還是剛才那個命令,參看channel信息,不過本地訪問命令有所不同,改為 screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onmouseover="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {return true;} else {window.open('http://blog.5ilinux.com/archives/images/ipmi06.jpg');}" onmousewheel="return imgzoom(this);"> 下面我們介紹一些遠程控制IPMI的用法 獲取遠程服務器的電源狀態 Ipmitool -I lan –H host –U root –a chassis power status 遠程軟關機,相當於按下reset,這個在服務器死機的時候用到 Ipmitool -vI lan –H host –U root –a chassis power soft 類似的命令我們也可以用來遠程開機,獲取服務器運行的信息等。 參考文檔: 使用ipmitool 實現Linux 系統下對服務器的ipmi 管理 IPMI HOWTO for Debian GNU/Linux on the Intel SR2300 著作信息:張微波 2006.7.16 北京
Copyright © Linux教程網 All Rights Reserved