日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 综合教程 >内容正文

综合教程

IPMI设置与使用(远程控制服务器)

發布時間:2023/12/15 综合教程 42 生活家
生活随笔 收集整理的這篇文章主要介紹了 IPMI设置与使用(远程控制服务器) 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

如果服務器crash了或者就hang住了,我們不必要跑到機房去按電源鍵的,因為我們也想“運籌帷幄之中,決勝千里之外”嘛。我們可以用IPMI,它可以讓我們遠程用一條命令開啟(關閉、重啟)一臺服務器,也可以檢查服務器的狀態。

IPMI簡介:from wikipedia

TheIntelligent Platform Management Interface (IPMI)is a standardized computer system interface used by system administrators to manage a computer system and monitor its operation.

The development of this interface specification was led by Intel Corporation and is supported by more than two hundred computer systems vendors.[1]. Dell, Hewlett-Packard, Intel, and NEC Corporation announced IPMI v1.0 on 1998-09-16, v1.5 on 2001-03-01, and v2.0 on 2004-02-14.

Thebaseboard management controller(BMC)is the intelligence in the IPMI architecture. It is a specialized microcontroller embedded on the motherboard of a computer, generally a server. The BMC manages the interface between system management software and platform hardware.

Different types of sensors built into the computer system report to the BMC on parameters such as temperature, cooling fan speeds, power status, operating system (OS) status, etc.

服務器端IPMI的配置:

我目前測試SNB-EP平臺的機器,可以直接在BIOS中設置IPMI即可,都不必到OS中去進行設置了.(盡量將第一個網絡接口插上網線,有人說是通過第一個網口來控制的,這個我不確定。)

開啟服務器,按F2進入BIOS,選擇:Server ManagementàBMC LAN Configuration激活IPMI。

可以IP地址,比如改為192.168.111.111,子網掩碼:255.255.0.0(當然也可以設置為dynamic動態獲取IP)。

在下面User configuration設置中Enable一些user,將有管理權限的用戶enable起來,也可以設置管理密碼、修改用戶名等工作。

設置好后,就reboot系統,在局域網中另外的系統上ping一下剛才設置的IP 192.168.111.111,看看通不通,如果ping不通,可以試試去將server的電源線拔掉,并按開機安按鈕讓其放電,然后再重新插上電源線,開機。(我就遇到這樣的問題)

對于不能再BIOS中直接enable BMC user的機器,可以先將BMC的IP什么的設好(這時在子網中應該能ping通BMC的IP了),然后到linux操作系統中進行一些額外的設置。

load impi drivers:

modprobe ipmi_msghandler

modprobe ipmi_devintf

modprobe ipmi_si

install ipmitool: maybe use rpm package to install
ipmitool lan print 1# to find the LAN channel
configure IP address setting:

dynamic:ipmitool lan set 1 ipsrc dhcp

static :

# ipmitool lan set 1 ipaddr 192.168.111.111

# ipmitool lan set 1 netmask 255.255.0.0

# ipmitool lan set 1 defgw ipaddr 192.168.0.1

Establish an administration account with username and password.

Set BMC to require password authentication for ADMIN access over LAN. For example:

# ipmitool lan set 1 auth ADMIN MD5,PASSWORD

List the account slots on the BMC and identify an unused slot:

# ipmitool channel getaccess 1

Assign the administrator user name and password and enable messaging for the identified slot.

# ipmitool user set name 4 myuser

# ipmitool user set password 4 mypassword

# ipmitool user enable 4

# ipmitool channel setaccess 1 4 callin=off ipmi=on link=on privilege=4

Verify the setup after you complete configuration using the command ipmitool lan print.

# ipmitool lan print 1

# ipmitool channel getaccess 1 4

在客戶端的IPMI遠程操作:

在遠程操作的機器上也需要安裝impitool,然后通過一些命令來操作被控制的機器。

# ipmitool -H yourIP -U myuser -P mypassword power status(查看服務器的電源狀態)

# ipmitool -H yourIP -U myuser -P mypassword power reset(關閉電源并重啟機器)

# ipmitool -H yourIP -U myuser -P mypassword power on(開電源啟動機器)

# ipmitool -H yourIP -U myuser -P mypassword power on(關閉電源)

# ipmitool -H 192.168.12.84 -I lanplus -U test -P 123456 sdr type Temperature(服務器溫度)

其他更多功能,可以man ipmitool

一些參考資料:

http://wiki.adamsweet.org/doku.php?id=ipmi_on_linux

http://www.6curl.com/ipmi-config-error/

http://www.ibm.com/developerworks/cn/linux/l-ipmi/index.html

http://publib.boulder.ibm.com/infocenter/lnxinfo/v3r0m0/index.jsp?topic=%2Fliaai%2Fipmi%2Fliaaiipmipassword.htm

總結

以上是生活随笔為你收集整理的IPMI设置与使用(远程控制服务器)的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。