IPMItool简介

Introduction

IPMItool is a utility for managing and configuring devices that support the Intelligent Platform Management Interface (IPMI) version 1.5 and version 2.0 specifications. IPMI is an open standard for monitoring, logging, recovery, inventory, and control of hardware that is implemented independent of the main CPU, BIOS, and OS. The service processor (or Baseboard Management Controller, BMC) is the brain behind platform management and its primary purpose is to handle the autonomous sensor monitoring and event logging features.

The ipmitool program provides a simple command-line interface to this BMC. It features the ability to read the sensor data repository (SDR) and print sensor values, display the contents of the System Event Log (SEL), print Field Replaceable Unit (FRU) inventory information, read and set LAN configuration parameters, and perform remote chassis power control.

It was originally written to take advantage of IPMI-over-LAN interfaces but is also capable of using a system interface as provided by a kernel device driver such asOpenIPMI  on Linux and BMC on Solaris 10 or the new OpenIPMI-compatible driver in FreeBSD. 

win7系统上的编译ipmitool的方法: 1. 下载Cygwin编译工具 http://www.cygwin.com/setup-x86.exe 2. 在Cygwin里安装相关的编译组件 2.1)双击cygwin setup-x86.exe Install from Internet --> 路径默认C:\cygwin --> Local Package Directory选择:D:\Program Files\CygwinPackage --> 点击 Use System Proxy Settings --> 在User URL里填写中国地区的镜像, 比如:http://mirrors.aliyun.com 2.2)在View的下拉列表里选中Category,点开ALL --》 + Devel--> 对于32位系统,勾选如下11个组件: binutils gcc g++ gdb make automake libtool mingw-gcc(旧版是gcc-mingw) libncurses-devel libreadline-devel fish 详细如下: √ 勾选 binutils 2.29-1 √ 勾选 gcc-core 7.4.0-1 √ 勾选 gcc-g++ 7.4.0-1 √ 勾选 gdb 8.1.1-1 √ 勾选 make 4.2.1-2 √ 勾选 automake 11-1 √ 勾选 libtool 2.4.6-7 √ 勾选 mingw64-i686-gcc-core 7.4.0-1 √ 勾选 mingw64-i686-gcc-g++ 7.4.0-1 √ 勾选 mingw64-x86-i686-gcc-core 7.4.0-1 √ 勾选 mingw64-x86-i686-gcc-g++ 7.4.0-1 √ 勾选 libncurses-devel 6.1-1 √ 勾选 libreadline-devel 7.0.3-3 √ 勾选 fish 2.3)一路点击默认,直到安装完成; 2.4) 测试gcc、g++、make是否安装好,步骤如下: 运行Cygwin,在弹出的命令行窗口里依次输入如下命令; gcc --version g++ --version make --version cygcheck -c cygwin 如果上面4条都能打印出版本信息,说明cygwin安装成功。 注意,version前面是双横杆--。 2.5) 配置cygwin环境变量 右击[我的电脑]--》属性 --》高级系统设置 --》环境变量 --》系统环境变量 --》 选择Path --》编辑 --》在Path变量值路径的末尾,添加如下字段: ;C:\cygwin\bin 注意,要确保前面加个英文半角分号来和其他的变量值进行区分。 点击"OK"关闭对话框,然后打开cygwin命令黑框框,输入如下命令进行测试: pwd ls 3、将ipmitool-1.8.17.tar.bz2拷贝到C:\cygwin\XXX\home目录下,解压该文件 即ipmitool的路径为:C:\cygwin\XXX\home\ipmitool-1.8.17 注意:XXX表示电脑用户名称,如果电脑用户名称为hello,那么XXX = hello,即路径为: C:\cygwin\hello\home\ipmitool-1.8.17 依次类推。 4、打开[Cygwin Terminal],这里以用户名hello为例,依次输入如下命令: cd C:\cygwin\hello\home\ipmitool-1.8.17 ./bootstrap ./configure --enable-intf-lanplus --disable-intf-usb --enable-intf-serial --enable-ipmishell LANG=C make 5、把下列的文件,拷贝到一个文件夹中,可以在不同的Windows使用。当然,这些exe只能win7版本才能使用。 ipmitool-1.8.17\src\.libs\ipmitool.exe C:\cygwin\bin\cygcrypto-1.0.0.dll C:\cygwin\bin\cyggcc_s-1.dll C:\cygwin\bin\cygncursesw-10.dll C:\cygwin\bin\cygreadline7.dll C:\cygwin\bin\cygwin1.dll C:\cygwin\bin\cygz.dll 注意,[ipmitool-1.8.XX\src\ipmitool.exe]只是一个封装的exe,该exe功能取决于第4步的./configure编译命令, 还有源码里实际的函数功能。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值