A blog about software development and server management
How to compile IPMItool.exe for Windows
Install Cygwin on your windows system. While installing Cygwin make sure to install the development tools (dependencies on these packages will be automatically selected by Cygwin)
Launch ‘Cygwin64 Terminal’ and change your directory to extract location. Im my case: /cygdrive/c/ipmitool-IPMITOOL_1_8_18. cd /cygdrive/c/ipmitool-IPMITOOL_1_8_18
Configure and build IPMItool: ./bootstrap ./configure --enable-intf-lanplus make make install
Packaging the IPMItool binary and related DLLs in an archive file: cd .. mkdir ipmitool cp ipmitool-1.8.18/src/.libs/ipmitool.exe ipmitool/ cp /bin/cygwin1.dll ipmitool/ cp /bin/cygcrypto* ipmitool/ cp /bin/cygz.dll ipmitool/ cp /bin/cyggcc_s-*.dll ipmitool/ cp /bin/cygreadline*.dll ipmitool/ cp /bin/cygncursesw-*.dll ipmitool/ tar -zcvf ipmitool.tar ipmitool
Extract the file, ipmitool.tar in your destination host. Some of the sample commands to test your ipmitool.exe: ipmitool.exe -I lan -U username -P password -H address sel list ipmitool.exe -I lanplus -U username -P password -H address sel list
2 thoughts on “How to compile IPMItool.exe for Windows”
If anyone gets the error “Failed to load entries from IANA PEN Registry” after compiling ipmitool.exe. This is probably due to pathing for windows or permissions from cygwin. Didnt dive to much in to figuring out why.
You will need to do 2 things, download the master of ipmitool instead of downloading the source for 1.8.19. and follow step 5 again but use this command “./configure –enable-intf-lanplus IANADIR=C:/Temp/” instead of “./configure –enable-intf-lanplus”
this should resolve your issue.
You could also edit the file “Makefile.am”at the root of the source code and go to line 44 and add .txt ad end of “IANA_PEN = http://www.iana.org/assignments/enterprise-numbers” to look like this now.
THANK YOU! I have no experience in compiling code and have been messing with this for hours but your clear instructions finally got me over the finish line. Everything is working perfectly (even used newest release 1.8.19).
If anyone gets the error “Failed to load entries from IANA PEN Registry” after compiling ipmitool.exe. This is probably due to pathing for windows or permissions from cygwin. Didnt dive to much in to figuring out why.
You will need to do 2 things, download the master of ipmitool instead of downloading the source for 1.8.19. and follow step 5 again but use this command “./configure –enable-intf-lanplus IANADIR=C:/Temp/” instead of “./configure –enable-intf-lanplus”
this should resolve your issue.
You could also edit the file “Makefile.am”at the root of the source code and go to line 44 and add .txt ad end of “IANA_PEN = http://www.iana.org/assignments/enterprise-numbers” to look like this now.
“IANA_PEN = http://www.iana.org/assignments/enterprise-numbers.txt”
This was checked in as 1 of the fixes for folks having this issue as well.
THANK YOU! I have no experience in compiling code and have been messing with this for hours but your clear instructions finally got me over the finish line. Everything is working perfectly (even used newest release 1.8.19).