20090204by_&Frost
                                                                                           Puppet 初始化配置文件 by_<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

  参考:

 

简介:(摘自①《使用 ipmitool 实现 Linux 系统下对服务器的 ipmi 管理崔涛》)
IPMIIntelligent Platform Management Interface)即智能平台管理接口是使硬件管理具备“智能化”的新一代通用接口标准。用户可以利用 IPMI 监视服务器的物理特征,如温度、电压、电扇工作状态、电源供应以及机箱***等。Ipmi 最大的优势在于它是独立于 CPU BIOS OS 的,所以用户无论在开机还是关机的状态下,只要接通电源就可以实现对服务器的监控。Ipmi 是一种规范的标准,其中最重要的物理部件就是BMC(Baseboard Management Controller 如图1),一种嵌入式管理微控制器,它相当于整个平台管理的“大脑”,通过它 ipmi 可以监控各个传感器的数据并记录各种事件的日志。
<?xml:namespace prefix = v ns = "urn:schemas-microsoft-com:vml" />

 

通过它可以实现获取传感器的信息、显示系统日志内容、网络远程开关机等功能。
Ipmitool 有两种使用方式:
第一步、确定硬件支持ipmi
# dmidecode |grep -C 5 IPMI
IPMI Device Information

        Interface Type: KCS (Keyboard Control Style)

        Specification Version: 2.0

        I<?xml:namespace prefix = st1 ns = "urn:schemas-microsoft-com:office:smarttags" />2C Slave Address: 0x10

        NV Storage Device: Not Present

        Base Address: 0x0000000000000CA8 (I/O)

        Register Spacing: 32-bit Boundaries

 

第二步、官方②下载ipmitool-***.tar.bz2
$ tar xvfj ipmitool-***.tar.bz2

$ ./configure --prefix=/usr/local/ipmi/ --enable-intf-bmc --enable-intf-static
不过感觉suse自带那个好用 能用ipmishell

 

第三步、加载ipmi驱动模块,启用ipmi服务

 

第四步、设置参数
#ipmitool  shell

ipmitool> lan set 1 ipaddr <x.x.x.x>    #192.168.99.99

ipmitool> lan set 1 netmask <x.x.x.x>

。。。。。
。。。。。
!!!注意:完成了上述步骤后,被监控服务器上就不再需要 ipmi 系统接口了,可以把ipmi的驱动模块卸载,甚至可以重装一个全新的无ipmi 支持的操作系统。

 

第五步、监控机
监控机配置安装ipmitool
添加99网段ip#ip a add 192.168.99.14/32 dev eth0
测试:首先确保通信无阻 ping 192.168.99.99
查看被监控机电源状态:# ipmitool -H 192.168.99.99 -U admin -P pass power status
# ipmitool -H 192.168.6.51 -U admin -P pass chassis status
开机、关机测试。这样简单的ipmitool远程控制电源就OK了。
为了安全,删除被监控机ipmitool工具,监控机ipmitool设置成root权限可访问。

 

!!!To test IPMI over LAN, two things are worth pointing out at this stage:

You will need to do this from another machine (due to the way that the BMC conspires with the NIC to intercept packets - if you try to send the packets from the local machine, Linux will deliver the packets locally, without touching the NIC, so the BMC doesn't get a chance to steal the packets)
Any local firewall on the target machine will not need altering (for the same reason as above, if the BMC is configured correctly, the Linux kernel on the target machine doesn't get to see the packets at all)

 

 

一些概念:
Keyboard Controller Style (KCS)

Remote Management Control Protocol (RMCP)

Sensor Data Records (SDR)

System Event Log (SEL)  

 

!!! 问题

ipmitool> lan print 1

Set in Progress         : Set Complete

Auth Type Support       : NONE MD2 MD5 PASSWORD

Auth Type Enable        : Callback : MD2 MD5

                        : User     : MD2 MD5

                        : Operator : MD2 MD5

                        : Admin    : MD2 MD5

                        : OEM      : MD2 MD5

ipmitool-1.8.9

 

ppcn-24:/tmp/ipmitool-1.8.9 # /usr/local/bin/ipmitool delloem

usage: delloem <command> [option...]

 

commands:

    sysinfo

    lcd

    sel

    sensor

    powermonitor

For help on individual commands type:

delloem <command> help

 

ipmitool> mc info

Device ID                 : 32

Device Revision           : 0

Firmware Revision         : 1.77

IPMI Version              : 2.0

Manufacturer ID           : 674

Manufacturer Name         : Unknown (0x2a2)

Product ID                : 256 (0x0100)

Device Available          : yes

Provides Device SDRs      : yes

 

 

固件升级!   查看了几台机器的网卡型号用的一样,却发现 firmware-version: 低的总不能通过 IPMI 管理。。。。很纳闷,想到了是不是可以升级 固件版本呢 ? 。。 幸运的 DELL 官方提供了网卡驱动升级包。。。

FRMW_LX_R185441.BIN       osabmcutil9g-SUSE-3.0-11.i386.rpm

Ethtool –I eth0      。。。 version: 1.7.6b  。。。

LAN 上串行 Proxy (SOL Proxy)

配合远程系统 BIOS 控制台重定向的 SOL 协议允许管理员通过 LAN 远程查看和更改管理系统的 BIOS 设置。 使用 SOL 也可以通过 LAN 访问 Linux 串行控制台和 Microsoft EMS/SAC 界面。

 

。。。。。。

比较乱,隔得太久没整理  还好留自己看的