{"id":71556,"date":"2023-09-21T18:32:09","date_gmt":"2023-09-21T10:32:09","guid":{"rendered":"http:\/\/lrxjmw.cn\/?p=71556"},"modified":"2023-09-21T18:32:10","modified_gmt":"2023-09-21T10:32:10","slug":"ipmitool-maintenance-server","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/ipmitool-maintenance-server.html","title":{"rendered":"\u501f\u52a9IPMITOOL\u89e3\u51b3\u670d\u52a1\u5668\u5e95\u5c42\u7ef4\u62a4\u96be\u9898"},"content":{"rendered":"
\u786c\u4ef6\u7ef4\u62a4\u5de5\u5177\u6211\u5e38\u7528\u7684\u5c312\u4e2a\uff1a\u501a\u5929\u5251ipmitool\u4ee5\u53ca\u5c60\u9f99\u5200MegaCli\u3002\u4eca\u5929\u6211\u4eec\u6765\u4ecb\u7ecdIpmitool\u3002\u6ce8\u610f\uff1aIpmitool\u662f\u9488\u5bf9\u786c\u4ef6\u5e95\u5c42\u8fdb\u884c\u64cd\u4f5c\u7ba1\u7406\uff0c\u5bf9\u4e8e\u7535\u6e90\u76f8\u5173\u7684\u64cd\u4f5c\u8bf7\u4e09\u601d\uff01<\/p>\n
IPMI (intelligent platform management interface)\u667a\u80fd\u5e73\u53f0\u7ba1\u7406\u63a5\u53e3\u662f\u4e00\u79cd\u5f00\u653e\u6807\u51c6\u7684\u786c\u4ef6\u7ba1\u7406\u63a5\u53e3\u89c4\u683c \uff0c\u5b9a\u4e49\u4e86\u5d4c\u5165\u5f0f\u7ba1\u7406\u5b50\u7cfb\u7edf\u8fdb\u884c\u901a\u4fe1\u7684\u7279\u65b9\u6cd5\u3002 IPMI\u4fe1\u606f\u901a\u8fc7\u57fa\u677f\u7ba1\u7406\u63a7\u5236\u5668 (BMC)\uff08\u4f4d\u4e8e IPMI\u89c4\u683c\u7684\u786c\u4ef6\u7ec4\u4e0a\uff09\u8fdb\u884c\u4ea4\u6d41\u3002\u4f7f\u7528\u4f4e\u7ea7\u667a\u80fd\u7ba1\u7406\u800c\u4e0d\u4f7f\u7528\u64cd\u4f5c\u7cfb\u7edf \u8fdb\u884c\u7ba1\u7406\uff0c \u7528\u6237\u53ef\u4ee5\u5229\u7528IPMI\u76d1\u89c6\u670d\u52a1\u5668\u7684\u7269\u7406\u5065\u5eb7\u72b6\u6001\uff0c\u5982\u6e29\u5ea6\u3001\u7535\u538b\u3001\u98ce\u6247\u5de5\u4f5c\u72b6\u6001\u3001\u7535\u6e90\u72b6\u6001\u7b49\u3002<\/p>\n
IPMI \u628a\u7cfb\u7edf\u7ba1\u7406\u8f6f\u4ef6\u4ece\u7cfb\u7edf\u7684\u786c\u4ef6\u5e73\u53f0\u7ba1\u7406\u4efb\u52a1\u4e2d\u5206\u79bb\u51fa\u6765\uff0c\u5e76\u4e14\u628a\u5e95\u5c42\u7684\u670d\u52a1\u5668\u7ba1\u7406\u529f\u80fd\u4e0e\u9ad8\u5c42\u8f6f\u4ef6\u5206\u5f00\u3002\u8fd9\u6837\uff0c\u63a8\u51fa\u4e00\u4e2a\u901a\u7528\u7684\u3001\u8de8\u7cfb\u7edf\u7684\u5e73\u53f0\u7ba1\u7406\u76d1\u63a7\u8f6f\u4ef6\u5c31\u6210\u4e3a\u53ef\u80fd\uff1b
\nIPMI \u662f\u53ef\u6269\u5c55\u7684\u5e76\u4e14\u80fd\u591f\u5feb\u901f\u7b80\u5355\u5730\u5728\u5176\u4e0a\u9644\u52a0\u65b0\u529f\u80fd\uff0c\u5982\u589e\u52a0\u66f4\u591a\u7684\u4f20\u611f\u5668\u3001\u7ba1\u7406\u63a7\u5236\u5668\u6216\u7279\u5b9a\u7684\u914d\u4ef6\u8bbe\u5907\uff1b
\n\u5728\u52a0\u5165IPMI \u6280\u672f\u7684\u7cfb\u7edf\u91cc\uff0cCPU \u53ea\u9700\u8981\u4e0eIPMI \u5c31\u4e8b\u4ef6\u8fdb\u884c\u901a\u4fe1\uff0c\u5f62\u6210IPMI \u4e8b\u4ef6\u8bb0\u5f55\uff08Event Log\uff09\u3002\u5728\u7cfb\u7edf\u4e0a\u7684\u6bcf\u4e2a\u8bbe\u5907\u76f4\u63a5\u901a\u8fc7IPMI \u4e0e\u4e8b\u4ef6\u8bb0\u5f55\u6587\u4ef6\u901a\u4fe1\uff0c\u800c\u4e8b\u4ef6\u8bb0\u5f55\u6587\u4ef6\u4ee5\u7edf\u4e00\u7684\u65b9\u6cd5\u4e3a\u6bcf\u4e2a\u7279\u5b9a\u7684\u8bbe\u5907\u8bb0\u5f55\u6240\u6709\u7684\u4e8b\u4ef6\u72b6\u6001\u3002\u8fd9\u4e00\u7279\u70b9\u8fdb\u4e00\u6b65\u7b80\u5316\u4e86\u4ee3\u7406\uff08Agent\uff09\u7684\u5904\u7406\u4efb\u52a1\uff0c\u63d0\u9ad8\u4e86\u7cfb\u7edf\u7684\u6574\u4f53\u8fd0\u884c\u6027\u80fd\u3002<\/p>\n
IPMI \u7684\u6838\u5fc3\u662f\u57fa\u677f\u7ba1\u7406\u63a7\u5236\u5668(BMC)\uff0c\u5176\u5e76\u4e0d\u4f9d\u8d56\u4e8e\u670d\u52a1\u5668\u7684\u5904\u7406\u5668\u3001BIOS \u6216\u64cd\u4f5c\u7cfb\u7edf\u6765\u5de5\u4f5c\uff0c\u53ef\u8c13\u975e\u5e38\u5730\u72ec\u7acb\uff0c\u662f\u4e00\u4e2a\u5355\u72ec\u5728\u7cfb\u7edf\u5185\u8fd0\u884c\u7684\u65e0\u4ee3\u7406\u7ba1\u7406\u5b50\u7cfb\u7edf\uff0c\u53ea\u8981\u6709BMC \u4e0eIPMI \u56fa\u4ef6\u5176\u4fbf\u53ef\u5f00\u59cb\u5de5\u4f5c\uff0c\u800cBMC \u901a\u5e38\u662f\u4e00\u4e2a\u5b89\u88c5\u5728\u670d\u52a1\u5668\u4e3b\u677f\u4e0a\u7684\u72ec\u7acb\u7684\u677f\u5361\uff0c\u73b0\u5728\u4e5f\u6709\u670d\u52a1\u5668\u4e3b\u677f\u63d0\u4f9b\u5bf9IPMI \u652f\u6301\u7684\u3002IPMI \u826f\u597d\u7684\u81ea\u6cbb\u7279\u6027\u4fbf\u514b\u670d\u4e86\u4ee5\u5f80\u57fa\u4e8e\u64cd\u4f5c\u7cfb\u7edf\u7684\u7ba1\u7406\u65b9\u5f0f\u6240\u53d7\u7684\u9650\u5236\uff0c\u4f8b\u5982\u64cd\u4f5c\u7cfb\u7edf\u4e0d\u54cd\u5e94\u6216\u672a\u52a0\u8f7d\u7684\u60c5\u51b5\u4e0b\u5176\u4ecd\u7136\u53ef\u4ee5\u8fdb\u884c\u5f00\u5173\u673a\u3001\u4fe1\u606f\u63d0\u53d6\u7b49\u64cd\u4f5c\u3002<\/p>\n
\u5728\u5de5\u4f5c\u65f6\uff0c\u6240\u6709\u7684IPMI \u529f\u80fd\u90fd\u662f\u5411BMC \u53d1\u9001\u547d\u4ee4\u6765\u5b8c\u6210\u7684\uff0c\u547d\u4ee4\u4f7f\u7528IPMI \u89c4\u8303\u4e2d\u89c4\u5b9a\u7684\u6307\u4ee4\uff0cBMC \u63a5\u6536\u5e76\u5728\u7cfb\u7edf\u4e8b\u4ef6\u65e5\u5fd7\u4e2d\u8bb0\u5f55\u4e8b\u4ef6\u6d88\u606f\uff0c\u7ef4\u62a4\u63cf\u8ff0\u7cfb\u7edf\u4e2d\u4f20\u611f\u5668\u60c5\u51b5\u7684\u4f20\u611f\u5668\u6570\u636e\u8bb0\u5f55\u3002\u5728\u9700\u8981\u8fdc\u7a0b\u8bbf\u95ee\u7cfb\u7edf\u65f6\uff0cIPMI \u7684SOL \u7279\u6027\u5f88\u6709\u7528\u3002SOL \u6539\u53d8IPMI \u4f1a\u8bdd\u8fc7\u7a0b\u4e2d\u672c\u5730\u4e32\u53e3\u4f20\u9001\u65b9\u5411\uff0c\u4ece\u800c\u63d0\u4f9b\u5bf9\u7d27\u6025\u7ba1\u7406\u670d\u52a1\u3001Windows \u4e13\u7528\u7ba1\u7406\u63a7\u5236\u53f0\u6216Linux \u4e32\u884c\u63a7\u5236\u53f0\u7684\u8fdc\u7a0b\u8bbf\u95ee\u3002BMC \u901a\u8fc7\u5728LAN \u4e0a\u6539\u53d8\u4f20\u9001\u7ed9\u4e32\u884c\u7aef\u53e3\u7684\u4fe1\u606f\u7684\u65b9\u5411\u6765\u505a\u5230\u8fd9\u70b9\uff0c\u63d0\u4f9b\u4e86\u4e00\u79cd\u4e0e\u5382\u5546\u65e0\u5173\u7684\u8fdc\u7a0b\u67e5\u770b\u542f\u52a8\u3001\u64cd\u4f5c\u7cfb\u7edf\u52a0\u8f7d\u5668\u6216\u7d27\u6025\u7ba1\u7406\u63a7\u5236\u53f0\u6765\u8bca\u65ad\u548c\u7ef4\u4fee\u6545\u969c\u7684\u6807\u51c6\u65b9\u5f0f\u3002<\/p>\n
BMC \u57fa\u677f\u7ba1\u7406\u63a7\u5236\u5668 (baseboard management controller) \u7684\u7f29\u5199\uff0c\u8fd9\u662f\u4e00\u4e2a\u5728 IPMI\u7ed3\u6784\u4e0b\u63d0\u4f9b\u667a\u80fd\u7ba1\u7406\u7684\u63a7\u5236\u5668\uff0cBMC \u56e0\u4e3a\u591a\u96c6\u6210\u4e8e\u4e3b\u677f\u800c\u5f97\u540d\uff0c\u7cfb\u7edf\u7ba1\u7406\u8f6f\u4ef6\u5bf9\u5404\u4e2a\u88ab\u7ba1\u7406\u5668\u4ef6\u7684\u7ba1\u7406\uff0c\u90fd\u662f\u901a\u8fc7\u4e0eBMC \u901a\u4fe1\u6765\u5b9e\u73b0\u7684\u3002BMC \u901a\u8fc7\u4e0e\u4e3b\u677f\u4e0a\u7684\u4e0d\u540c\u4f20\u611f\u5668\u901a\u4fe1\u6765\u76d1\u89c6\u7cfb\u7edf\u662f\u5426\u6709\u4e25\u91cd\u4e8b\u4ef6\uff0c\u5e76\u5728\u67d0\u4e9b\u53c2\u6570\u8d85\u51fa\u5176\u9884\u7f6e\u9608\u503c\u65f6\u53d1\u51fa\u8b66\u62a5\u548c\u65e5\u5fd7\u4e8b\u4ef6\u3002BMC \u652f\u6301\u5de5\u4e1a\u6807\u51c6\u7684 Intelligent Platform Management Interface (IPMI) \u534f\u8bae\uff0c\u53ef\u4ee5\u5b9e\u73b0\u8fdc\u7a0b\u914d\u7f6e\u3001\u76d1\u6d4b\u548c\u6062\u590d\u7cfb\u7edf\u3002BMC \u82af\u7247\u5c31\u76f8\u5f53\u4e8e\u8ba1\u7b97\u673a\u4e2d\u7684\u4e2d\u592e\u5904\u7406\u5668\uff0c\u901a\u8fc7BMC \u82af\u7247\u4e0a\u4e00\u5bf9SMBus \u63a5\u53e3\u8fde\u63a5\u7f51\u7edc\uff0c\u7528\u6237\u53ef\u901a\u8fc7\u7f51\u7edc\u8bbf\u95ee\u5b9e\u73b0\u5bf9\u8fdc\u7a0b\u670d\u52a1\u5668\u63a5\u7ba1\u7684\u5e26\u5916\u7ba1\u7406\uff08Out-of-band\uff09\u529f\u80fd\uff0c\u4f8b\u5982\u8fdc\u7a0b\u63a5\u7ba1\u670d\u52a1\u5668\uff08Pre-OS\uff09\uff0c\u5728\u5ba2\u6237\u7aef\u5b9e\u73b0\u5bf9\u8fdc\u7a0b\u670d\u52a1\u5668\u7684\u5b8c\u5168\u63a5\u7ba1\uff1b\u901a\u8fc7RS-232 \u63a5\u53e3\u8fde\u63a5Modem\uff0c\u5728\u8fdc\u7a0b\u670d\u52a1\u5668\u5b95\u673a\u60c5\u51b5\u4e0b\uff0c\u7528\u6237\u53ef\u4ee5\u901a\u8fc7\u62e8\u53f7\u8bbf\u95ee\u83b7\u53d6SDR\u3001SEL \u6570\u636e\uff0c\u5206\u6790\u8bca\u65ad\u6545\u969c\u539f\u56e0\uff1bBMC \u901a\u8fc7IPMB \u63a5\u53e3\u8bbf\u95ee\u6a21\u7ec4\u98ce\u6247\u80cc\u677f\u3001\u7535\u6e90\u80cc\u677f\u7b49\u4e0a\u7684SMC\uff0c\u5b9e\u73b0\u5bf9\u5404\u79cd\u80cc\u677f\u7684\u6e29\u5ea6\u7535\u538b\u98ce\u6247\u8f6c\u901f\u7b49\u5173\u952e\u53c2\u6570\u7ba1\u7406\uff1bBMC \u901a\u8fc7\u7cfb\u7edf\u63a5\u53e3\uff08\u591a\u7528SMIC\uff1aServerManagement Interface Chip\uff09\uff0c\u5b9e\u73b0IPMI \u6d88\u606f\u4f20\u8f93\u673a\u5236\uff0c\u63a7\u5236LCD \u663e\u793a\u548c\u5b9e\u73b0\u4e0a\u5c42\u8f6f\u4ef6\u4e0e\u5e95\u5c42F\/W \u901a\u4fe1\uff0c\u5b9e\u73b0\u544a\u8b66\u3001\u6570\u636e\u91c7\u96c6\u3002SDR\u3001SEL\u3001FRU\uff08Field Replacement Unit\uff09\u7269\u7406\u5b9e\u4f53\u53ef\u4ee5\u662f\u505a\u5728\u82af\u7247\u5185\u7684\u5b58\u50a8\u4f53\uff0c\u4e5f\u53ef\u4ee5\u662f\u5916\u6302\u7684E2PROM\u3002<\/p>\n
BMC \u4ece\u4e0d\u540c\u7684\u4f20\u611f\u5668\u6536\u96c6\u4fe1\u606f\uff0c\u7136\u540e\u53ef\u4ee5\u5b58\u5230\u672c\u5730\u7684SEL \u91cc\u9762\uff0c\u4fbf\u4e8e\u4ee5\u540e\u67e5\u8be2\uff0c\u4e5f\u4f1a\u628a\u91cd\u8981\u7684\u4fe1\u606f\u663e\u793a\u5230\u670d\u52a1\u5668\u524d\u9762\u677f\u4e0a\u9762\u7684\u90a3\u4e2a\u5c0f\u7684LCD \u663e\u793a\u5668\u4e0a\uff08\u9700\u8981\u786c\u4ef6\u652f\u6301\uff09\u3002\u540c\u65f6\u8fd8\u80fd\u901a\u8fc7\u7f51\u5361(LAN),\u4e32\u53e3\uff08Serial\uff09\u3001\u672c\u5730\uff08Host\uff09\u6765\u8bbf\u95ee\u8fd9\u4e9b\u4fe1\u606f<\/p>\n
<\/p>\n
<\/p>\n
<\/p>\n
\u8f7d\u5165\u7cfb\u7edf\u529f\u80fd\u6a21\u5757\uff082.6 kernels\uff09\uff1a<\/p>\n
modprobe ipmi_msghandler\r\nmodprobe ipmi_si\r\nmodprobe ipmi_devintf<\/pre>\n\u6ce8\u610f\uff1a\u5fc5\u987b\u5148\u8f7d\u5165\u6a21\u5757\uff0c\u8fd9\u6837\u5185\u6838\u624d\u80fd\u8bc6\u522b ipmidev \u8bbe\u5907\u3002\u5982\u679c\u662f2.4kernels \u8f7d\u5165\u6a21\u5757\u6709\u6240\u533a\u522b\uff0c\u8bf7\u53c2\u8003\u6587\u6863\u7ed3\u5c3e\u9644\u5f55\u90e8\u5206\u3002<\/p>\n
7. \u5404\u54c1\u724c\u670d\u52a1\u5668\u5bf9\u4e8eIpmitool\u7684\u652f\u6301<\/strong><\/div>\n\u5982\u4e0b\u547d\u4ee4\u90fd\u662f\u5728\u672c\u5730\u8c03\u7528\uff0c\u5982\u679c\u9700\u8981\u914d\u5408\u8fdc\u7a0b\u8c03\u7528\u4f7f\u7528\uff0c\u5219\u6539\u4e3a:
\nipmitool -I lanplus -H $ILO_IP -U $USERNAME -P $PASSWORD XXXXXXXX<\/p>\n8\u3001\u5751\u2014\u5ba2\u6237\u7aef\u65e0\u6cd5\u83b7\u53d6dell\u673a\u5668\u7684mac\u4fe1\u606f<\/strong><\/div>\n\u73b0\u8c61\u65e0\u6cd5\u8fdc\u7a0b\u83b7\u53d6dell\u673a\u578b\u7684mac\u5730\u5740\u4fe1\u606f<\/p>\n
#ipmitool -I lanplus -U $ILO_USER -P $ILO_PW -H $ILO_IP delloem mac get 1<\/p>\n
Error in getting MAC Address : Not supported platform<\/p>\n
\u7ecf\u8fc7\u591a\u6b21\u6d4b\u8bd5\uff0c\u5bf9\u6bd4\u4e0d\u540c\u670d\u52a1\u5668\u7684\u7cfb\u7edf\u7248\u672c\uff0cipmitool\u7248\u672c\u4ee5\u53ca\uff0cIDRAC\u56fa\u4ef6\u7248\u672c\u540e\u53d1\u73b0\u662f\u5ba2\u6237\u7aef\u7684ipmitool\u7684\u7248\u672c\u95ee\u9898<\/p>\n
9\u3001\u5751\u2014SOL\u91cd\u5b9a\u5411\u51fa\u73b0\u4e71\u7801<\/strong><\/div>\n\u5728\u542f\u52a8\u7684\u5404\u4e2a\u9636\u6bb5\u90fd\u80fd\u591f\u6b63\u5e38\u663e\u793a\uff0c\u4e00\u5230\u767b\u5f55\u754c\u9762\uff0c\u5c31\u51fa\u73b0\u4e71\u7801.<\/p>\n
\u6545\u969c\u539f\u56e0\uff1a\u914d\u7f6e\u4e0d\u540c<\/p>\n
\/etc\/inittab\u6587\u4ef6\u914d\u7f6e\u4e0d\u540c S0:12345:respawn:\/sbin\/agetty -L 57600 ttyS1 vt102<\/p>\n
\/boot\/grub\/menu.lst\u6587\u4ef6\u914d\u7f6e\u4e0d\u540c \u672a\u6ce8\u91ca\u6389splashimage\u56fe\u5f62\u663e\u793a<\/p>\n
\n\u539f\u6587\u6765\u81ea\uff1ahttp:\/\/www.yunweipai.com\/archives\/19236.html<\/a><\/p>\n