1、安装cygwin,连接: Cygwin
选择:
gcc-core (在 Devel 目录下)
make (在 Devel 目录下)
openssl-devel
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、编译好的,下载地址