win10 下 ipmitool 1.8.19编译

本文详细指导了如何在Cygwin环境中安装必要的依赖,下载和编译IPMITool1.8.19源码,以及如何使用它来管理和控制iDRAC7的BIOS设置,包括查看状态、开机、关机和重启操作。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

1、安装cygwin,连接: Cygwin

选择:
gcc-core (在 Devel 目录下)
make (在 Devel 目录下)
openssl-devel

dos2unix

2、下载ipmitool 1.8.19源码: IPMITool/ipmitool: An open-source tool for controlling IPMI-enabled systems - ipmitool - Codeberg.org

3、打开cygwin 终端界面,进入ipmitool 1.8.19源码目录,如:

cd d:/ipmitool

执行

$ find . -type f -and -not -name "*.cpp" -and -not -name "*.h" -and -not -name "*.png" -and -not -name "*.bmp" | sed "s/.*/\"\\0\"/" | xargs dos2unix
$  ./bootstrap
$  ./configure --enable-intf-lan --enable-intf-lanplus
$  make

4、编译完成后,在D:\ipmitool\src\.libs下,找到编译结果:

2023/10/16  17:21         1,516,344 ipmievd.exe
2023/10/16  17:21             5,809 ipmievd_ltshwrapper
2023/10/16  17:21         2,987,703 ipmitool.exe
2023/10/16  17:21             5,819 ipmitool_ltshwrapper
2023/10/16  17:21            27,999 lt-ipmievd.c
2023/10/16  17:21            28,013 lt-ipmitool.c

5、将其复制到其他目录,同时在cygwin安装目录中,找到bin目录,复制以下文件:

2023/09/23  19:16         3,842,579 cygcrypto-3.dll
2023/06/05  23:21            75,283 cyggcc_s-seh-1.dll
2023/01/20  14:34           334,867 cygncursesw-10.dll
2022/10/08  12:37           262,675 cygreadline7.dll
2023/09/06  19:29         2,953,269 cygwin1.dll
2023/08/19  17:49            89,619 cygz.dll

至此编译完成。

6.只因iDRAC7试用到期,又不想跑楼下按电源,因此我只需要开机命令,本人DELL R320,需要在系统BIOS设置中,打开以下选项,默认是禁用的。(开机时,按F11进入,找到iDRAC Settings)

IPMI Over LAN
(LAN 上 IPMI)
启用或禁用对共享网络控制器的带外 LAN 信道访问。
注:如果选择 Off (关), iDRAC 将不会接受通过 Dell
PowerEdge xx1x 系统的 LAN 接口到达的 IPMI 信息。

1)查看开关机状态:
ipmitool -H (BMC IP地址) -I lanplus -U (BMC用户名) -P (密码) power status
2)开机:
ipmitool -H (BMC IP地址) -I lanplus -U (BMC用户名) -P (密码) power on
3)关机:
ipmitool -H (BMC IP地址) -I lanplus -U (BM用户名) -P (密码) power off
4)重启:
ipmitool -H (BMC IP地址) -I lanplus -U (BMC用户名) -P (密码) power reset

7、编译好的,下载地址

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值