天天看點

Dell R710 iDRAC6 遠端控制卡設定 copy from http://demo.netfoucs.com/xuensong520/article/details/8915945 IPMI設定  IPMI tool

預設情況下,啟用的 iDRAC6 網絡界面使用靜态 IP 位址 192.168.0.120 。必須對其進行配置,才能通路iDRAC6。打開伺服器電源,當出現以下界面時按 Ctrl+E進入設定:

Dell R710 iDRAC6 遠端控制卡設定 copy from http://demo.netfoucs.com/xuensong520/article/details/8915945 IPMI設定  IPMI tool

啟用iDRAC6 LAN和 IPMI Over LAN功能(按左右箭頭鍵設定為 On)

Dell R710 iDRAC6 遠端控制卡設定 copy from http://demo.netfoucs.com/xuensong520/article/details/8915945 IPMI設定  IPMI tool

接下來,為遠端控制卡配置IP資訊,在圖二界面中選擇 LAN Parameters:

Dell R710 iDRAC6 遠端控制卡設定 copy from http://demo.netfoucs.com/xuensong520/article/details/8915945 IPMI設定  IPMI tool

NIC Selecttion 設定為 Shared With Failover All LOMS,這樣的好處就是隻要任何一個網卡是連通的,遠端控制卡就可以正常連接配接。

提示:青綠色字型選項無法修改也無須修改。

繼續向下滾動,設定IP等參數 :

Dell R710 iDRAC6 遠端控制卡設定 copy from http://demo.netfoucs.com/xuensong520/article/details/8915945 IPMI設定  IPMI tool

請按自己需要,設定固定或動态IP,如果需要直接遠端連接配接到控制卡,則需要為其指定有效的網關。 DNS不用設定。設定完畢後,按 ESC傳回到圖二界面中。

設定遠端管理使用者名及密碼: 

在圖二所示界面中選擇“LAN User Configuration ” ,  按圖示設定使用者名和密碼: 

Dell R710 iDRAC6 遠端控制卡設定 copy from http://demo.netfoucs.com/xuensong520/article/details/8915945 IPMI設定  IPMI tool

配置完畢後,儲存BIOS設定後,伺服器重新啟動。

至于網上一些人說的設定好後無法ping通遠端管理IP,需要将電源拔掉,斷電幾分鐘的說法我是沒遇到,也許這就是國産伺服器與非國産的差別吧,DELL在這方面做的還行,不過感覺還是沒HP的功能多些,曾經測試過一台HP的ILO4,用起來還是比較舒服的,速度也蠻快,看到的資訊也比DELL的全些!

COM1就是伺服器接顯示器的序列槽,我們需要将 COM1 的輸入重定向到 COM2 接口,觀察控制台的輸出。

重新啟動伺服器,按F2 進入 BIOS 設定菜單:

Dell R710 iDRAC6 遠端控制卡設定 copy from http://demo.netfoucs.com/xuensong520/article/details/8915945 IPMI設定  IPMI tool

選擇 “Serial Communication ”,按圖示設定序列槽重定向參數:

Dell R710 iDRAC6 遠端控制卡設定 copy from http://demo.netfoucs.com/xuensong520/article/details/8915945 IPMI設定  IPMI tool

注意:如果telnet/SSH連接配接時出現亂碼,可以設定 Remote Terminal Type為 ansi試試。

儲存配置并重新開機伺服器。

使用SSH 用戶端程式連接配接控制卡的 IP( 先斷開 Telnet 連接配接 ) ,連接配接參數 :

Dell R710 iDRAC6 遠端控制卡設定 copy from http://demo.netfoucs.com/xuensong520/article/details/8915945 IPMI設定  IPMI tool

出現/admin-1> 提示符後,輸入 console com2即可觀察控制台的界面,和 Telnet效果一樣。

Dell R710 iDRAC6 遠端控制卡設定 copy from http://demo.netfoucs.com/xuensong520/article/details/8915945 IPMI設定  IPMI tool

如果使用WEB界面管理伺服器,在主要端浏覽器位址欄中輸入控制卡的 IP, 使用設定的使用者名和密碼登入即可。

    從圖中可以看到,效果已經出來了,這個功能相當重要,這也是我喜歡的地方,可以看到伺服器的啟動過程,不過僅僅是BIOS的啟動界面,不過這對于采用網絡安裝系統已經足夠了,如想看到整個系統的引導過程,還需要對系統參數做一些修改,步驟如下:

 1. 在主要配置部分添加: 

serial -unit=0 -speed=57600

terminal -timeout=10 serial console

 2. 在splashimage 前加 # 将其注釋

在kernel /boot/vmlinuz-2.6.18-164.el5 ro root=/dev/sda1後添加:

console=tty0 console=ttyS1,115200n8 

完整的配置範例: 

Dell R710 iDRAC6 遠端控制卡設定 copy from http://demo.netfoucs.com/xuensong520/article/details/8915945 IPMI設定  IPMI tool

編輯 /etc/inittab ,以便激活序列槽登入。在 /etc/inittab 檔案中  

1.1:2345:respawn:/sbin/mingetty tty1前面添加一行:

co2:12345:respawn:/sbin/agetty -L ttyS1 115200 vt100

cobbler

2. 編輯 /etc/securetty , 以允許 root 帳号從序列槽登入,在 /etc/securetty中添加新行: ttyS1

3. 重新開機系統,檢查是否可從序列槽登入到Linux。

這個更改系統參數的步驟我還沒有驗證,不知是否可行,因為我目前采用的是自動化部署,在我的Distros檔案中已經做了相關配置,可以直接看到整個系統的安裝過程

以及系統安裝完成後的系統界面,整個效果和IDRAC授權後的功能基本相同,如果公司要買授權的話,這也能為公司省了不少錢呢!

   到這裡BIOS的設定就完成了,下面介紹下linux下IPMI tool的一些常用指令。

無論是centos,還是ubuntu都可以直接安裝,源裡都有

<a href="http://demo.netfoucs.com/xuensong520/article/details/8915945#" target="_blank"></a>

yum -y install ipmitoolapt-get -y install ipmitool  

modprobe ipmi_msghandlermodprobe ipmi_devintfmodprobe ipmi_si  

這個時候,你就基本可以對IPMI進行各種設定,你web可以做到的,指令行下都應該可以實作。

DELL的&lt;channel_no&gt;是1,HP的是2 ,超微的是1,如果提示你輸入channel_no 就輸入就可以。

IPMItool,可以檢視本地的BMC的設定,檢視本地是不需要身份驗證。如果檢視遠端,需要提供IPMI 的使用者名和密碼。

ipmitool user set password 2 esxu  

使用靜态位址:ipmitool lan set &lt;channel_no&gt; ipsrc static

使用動态位址:ipmitool lan set &lt;channel_no&gt; ipsrc dhcp

設定IP:ipmitool lan set &lt;channel_no&gt; ipaddr &lt;x.x.x.x&gt;

設定掩碼:ipmitool lan set &lt;channel_no&gt; netmask &lt;x.x.x.x&gt;

設定網關:ipmitool lan set &lt;channel_no&gt; defgw ipaddr &lt;x.x.x.x&gt;

本地操作 -I open 表示接口本地:ipmitool -I open lan print 1

操作遠端機器 -I lan 表示接口遠端:ipmitool -I lan -H 192.168.80.20 -U root -P passwd lan print 1

改變伺服器引導方式

ipmitool -I lan -H 192.168.80.20 -U root-P passwd chassis bootdev pxeipmitool -I lan -H 192.168.80.20-U root -P passwd chassis bootdev diskipmitool -I lan -H 192.168.80.20-U root -P passwd chassis bootdev cdrom  

本文轉自 zhangfang526 51CTO部落格,原文連結:http://blog.51cto.com/zhangfang526/1791010

繼續閱讀