ipmitool is used to configure ipmi driver which enables serial communication over LAN port. Is there any ipmitool for Windows? Can we download the ipmi source code and build it for Windows? Please share the instructions on how to build it Windows.
问题:
回答1:
Building IPMI for Windows:
Install Cygwin onto your windows system: Cygwin
While installing Cygwin, choose gcc and crypto packages in addition to default package.
- Download the ipmitool source code from ipmitool
Unzip, configure and build ipmitool.
cd ipmitool-1.8.12
./configure --enable-intf-lanplus
make
Packaging IPMI binary and related dlls into a zip file.
mkdir ipmitool
cp ipmitool-1.8.12/src/.libs/ipmitool.exe ipmitool/
cp /bin/cygwin1.dll ipmitool/
cp /bin/ cygcrypto-1.0.0.dll ipmitool/
cp /bin/cygz.dll ipmitool/
cp /bin/cyggcc_s-1.dll ipmitool/
tar -zcvf ipmitool.tar ipmitool
Unzip the file, ipmitool.tar in your destination host. Some of the sample commands:
ipmitool.exe -I lan -U username -P password -H hosname sensor
ipmitool.exe -I lanplus -U username -P password -H hosname -C 3 sol activate
回答2:
You can use MobaXterm for Windows (alternative to Cygwin) and download the ipmitool plugin for it.
http://itsaboutlinux.blogspot.nl/2016/03/ipmitool-for-mobaxterm.html
回答3:
Just in case anyone else is trying to do this more recently...
Cygwin now uses OpenSSL 1.1 and the ipmitool 1.8.12 source code and cygwin version mentioned in Ashok's above answer assumed OpenSSL 1.0.
This might be fixed in upcoming release 1.8.19, but as of 1.8.18 it's not, so you'll have to download the latest source from GitHub: https://github.com/ipmitool/ipmitool (they moved from SourceForge)
Also, you'll need from cygwin_setup to also install:
- automake
- autoconf
- libtool
Then you can run
cd ipmitool-master/ ; ./bootstrap && ./configure && make
(configure includes lanplus plugin by default now)
I haven't tried to copy the cygwin DLLs to another machine as solution mentioned, but if you want to do that, you'd need cygcrypto-1.1.dll instead of 1.0 above.