ipmitool工具常用命令汇总情况
ipmitool命令的执行流程

ipmitool命令的执行流程1.概述i p mi to ol是一种在服务器管理中常用的命令行工具,它允许管理员通过IP MI(I nt el li g en tP la tf or mM ana g em en tI nt er fa ce)接口来监控和管理服务器。
本文将介绍ip mi to ol命令的执行流程,以帮助读者更好地理解和使用这一工具。
2.安装ipm itool在开始使用i pm it oo l之前,首先需要确保已经安装了该工具。
i p mi to ol可以通过包管理器在各种操作系统上进行安装,如下所示:在U b u n t u上安装i p m i t o o ls u do ap t-ge ti ns tal l ip mi to ol在C e n t O S上安装i p m i t o o ls u do yu mi ns ta ll ipm i to ol3.连接到远程服务器要使用i pm it oo l命令,首先需要连接到远程服务器。
使用以下命令连接到具有I PM I功能的服务器:i p mi to ol-H<I P地址>-U<用户名>-P<密码>l an se t1ip add r<新IP地址>其中,`<I P地址>`是服务器的I P地址,`<用户名>`和`<密码>`是使用I PM I访问服务器所需的凭据。
4.执行ipm itool命令一旦连接到服务器,就可以执行各种i pmi t oo l命令来管理服务器。
以下是一些常用的示例:获取服务器信息i p mi to ol fr u此命令将显示服务器的F RU(F ie ld Re pla c ea bl eU ni t)信息,包括制造商、型号和序列号等。
重启服务器i p mi to ol po we rr ese t此命令将重新启动服务器。
监控传感器数据i p mi to ol se ns or此命令将显示服务器上各种传感器的当前状态,如温度、电压、风扇速度等。
Linux系统下的ipmitool工具应该怎样使用

Linux系统下的ipmitool工具应该怎样使用本文介绍ipmitool工具的使用,这个命令主要是用来操作服务器硬件的,所以一般的业务运维很少会用它,但它的功能很强大,比如:能够硬重启服务器,重设BMC口,配置BMC口IP,进入grub环境,设置boot顺序,等等。
在CentOS和RedHat Linux的大部分版本中都会默认安装它,所以它的实用性比较广。
还有一个好处是用它可以制作远程管理服务器的运维自动化系统。
- 进入grub环境:代码如下:ipmitool -H $BMC_IP -I lanplus -U $USERNAME -P $PASSWORD sol activate- 查看电源状态:代码如下:ipmitool -H $BMC_IP -I lan -U $USERNAME -P $PASSWORD power status- 强制修改启动项,让机器重启后自动进入BIOS设置界面:代码如下:ipmitool -H $BMC_IP -I lanplus -U $USERNAME -P $PASSWORD chassis bootparam set bootflag force_bios- 关掉服务器电源,再打开:代码如下:ipmitool -H $BMC_IP -I lan -U $USERNAME -P $PASSWORD power cycle- 查看BMC信息:代码如下:ipmitool -H $BMC_IP -I lan -U $USERNAME -P $PASSWORD mc info- 显示lan的信息:代码如下:ipmitool -H $BMC_IP -I lan -U $USERNAME -P $PASSWORD lan printIpmitool �CI open sensor list命令可以获取传感器中的各种监测值和该值的监测阈值,包括(CPU温度,电压,风扇转速,电源调制模块温度,电源电压等信息)Ipmitool �CI open sensor get “CPU0Temp”可以获取ID为CPU0Temp 监测值,CPU0Temp是sensor的ID,服务器不同,ID表示也不同。
ipmitool

三,配置远程终端重定向 1. 系统启动,安 F2 进入 BIOS 设置, 设置重定向到 com2
2009-11-3
IT 运维专家网
4) LAN User Configuration—选项配置设置连接管理账号 root 用户的密码
确认没有问题,按一下 ESC 键,出来一个小对话框,让选择,此时选择 Save Changes and Exit 选项进行存盘退
出,此时机器开始继续引导系统
-----------------------------------------------------------------------------------------------------------------
如果你重启 10.10.217.72,你将可以在 10.10.217.32 这台机器上看到相关启动的全部画面:
…….. 2009-11-3
IT 终端重定向配置完成,你也可以为你的老板每台服务器省掉上千元,不用去够买 DELL 的远程控制卡了。利用 ipmitool 这个工具命令行下即可以搞定一切,用他来处理你工作中遇到的一些故障 而不用直接跑到机房。
//掩码
ipmitool lan set 1 access on
ipmitool lan set 1 defgw ipaddr 10.10.217.1 //配置网关
ipmitool user list 1 ipmitool user set password 2 “52linuxtone”
//列出当前用户列表 //其中 2 为要设置密原的用户 ID 号,设置密码为 52linuxtone
IPMItool使用文档

戴尔IPMI默认用户名:root 密码:calvin曙光IPMI默认用户名:admin 密码:admin浪潮IPMI默认用户名:admin 密码:adminH3CIPMI默认用户名:admin 密码:Password@_安装: yum install ipmitool启动服务: service ipmi startlanplus是操作远程机器, 如果要操作本地机器,需要把lanplus换成 open1. 查看开关机状态:ipmitool -H (BMC的管理IP地址) -I lanplus -U (BMC登录用户名) -P (BMC 登录用户名的密码) power status2. 开机:ipmitool -H (BMC的管理IP地址) -I lanplus -U (BMC登录用户名) -P (BMC 登录用户名的密码) power on3. 关机:ipmitool -H (BMC的管理IP地址) -I lanplus -U (BMC登录用户名) -P (BMC 登录用户名的密码) power off4. 重启:ipmitool -H (BMC的管理IP地址) -I lanplus -U (BMC登录用户名) -P (BMC 登录用户名的密码) power reset二、IP网络设置说明:[ChannelNo] 字段是可选的,ChannoNo为1(Share Nic网络)或者8(BMC独立管理网络);设置网络参数,必须首先设置IP为静态,然后再进行其他设置;1. 查看网络信息:ipmitool -H (BMC的管理IP地址) -I lanplus -U (BMC登录用户名) -P (BMC 登录用户名的密码) lan print [ChannelNo]2. 修改IP为静态还是DHCP模式:ipmitool -H (BMC的管理IP地址) -I lanplus -U (BMC登录用户名) -P (BMC 登录用户名的密码) lan set <ChannelNo> ipsrc <static/dhcp>3. 修改IP地址:ipmitool -H (BMC的管理IP地址) -I lanplus -U (BMC登录用户名) -P (BMC 登录用户名的密码) lan set <ChannelNo> ipaddr <IPAddress>4. 修改子网掩码:ipmitool -H (BMC的管理IP地址) -I lanplus -U (BMC登录用户名) -P (BMC 登录用户名的密码) lan set <ChannelNo> netmask <NetMask>5. 修改默认网关:ipmitool -H (BMC的管理IP地址) -I lanplus -U (BMC登录用户名) -P (BMC 登录用户名的密码) lan set <ChannelNo> defgw ipaddr <默认网关>1. 查看FRU信息:ipmitool -H (BMC的管理IP地址) -I lanplus -U (BMC登录用户名) -P (BMC 登录用户名的密码) fru list2. 重启动BMC:ipmitool -H (BMC的管理IP地址) -I lanplus -U (BMC登录用户名) -P (BMC 登录用户名的密码) mc reset <warm/cold>3. 查看SDR Sensor信息:ipmitool -H (BMC的管理IP地址) -I lanplus -U (BMC登录用户名) -P (BMC 登录用户名的密码) sdr4. 查看Sensor信息:ipmitool -H (BMC的管理IP地址) -I lanplus -U (BMC登录用户名) -P (BMC 登录用户名的密码) sensor list。
ipmitool工具使用

Ubuntu 直接修改IPMIweb登录密码1、系统没有安装IPMItool的先要安装IPMItool。
2、不允许安装的就需要自己制作一个ubuntu的U盘系统,然后插入服务器U盘启动,然后修改IPMI密码了。
3、在Ubuntu系统下,直接修改ipmi的登录密码root@nodessl:~# ipmitool user list 1ID Name Callin Link Auth IPMI Msg Channel Priv Limit2 ADMIN false false true ADMINISTRATORroot@nodessl:~# ipmitool user enable ADMIN 1User Commands: summary [<channel number>]list [<channel number>]set name <user id> <username>set password <user id> [<password>]disable <user id>enable <user id>priv <user id> <privilege level> [<channel number>]test <user id> <16|20> [<password]>root@nodessl:~# ipmitool user set password 2 ssl1234、就是把默认的ADMIN用户的密码改成ssl123root@node62:~# ipmitool lan set 1 ipaddr 172.16.124.62Setting LAN IP Address to 172.16.124.62root@node62:~# ipmitool lan set 1 netmask 255.255.0.0Setting LAN Subnet Mask to 255.255.0.0。
ipmitool工具操作指南

IPMITOOL操作指南1.ipmitool 常用命令介绍利用ipmitool 实现对服务器的ipmi 管理有两种方式:①通过操作系统监控本地服务器;②通过网络监控远程服务器。
ipmitool命令包含的Interface有open、lan、lanplus。
Open端口用于本地监控系统使用的;Lan/lanplus通过网络进行远程监控。
其中open是指的是OpenIPMI 和BMC通信,Lan是通过Ethernet LAN用IPV4的UDP协议和BMC通信。
UDP 的数据段包含了IPMI request/resoponse消息,消息具备一个IPMI session 头和RMCP 头。
IPMI使用Remote Management Control Protocol (RMCP) 版本1支持操作系统关闭(pre-OS和OS-absent),RMCP把把数据发送到UDP的623端口。
与LAN接口相同,lanplus同样使用Ethernet LAN 的UDP协议和BMC通信,但是lanplus使用RMCP+协议(在IPMIV2.0中描述)来通信,RMCP+允许使用改进的认证方式和数据完整性检查。
2.1 ipmitool命令格式本地监控命令:ipmitool [-c|-h|-v|-V]-I open <command>远程监控命令:ipmitool [-c|-h|-v|-V]-I lan/lanplus -H <hostname> [-p <port>][-U <username>][-A <authtype>][-L <privlvl>][-a|-E|-P|-f <password>][-o <oemtype>]<command>命令选项说明:-c使输出格式为CSV(逗号分隔的变量)格式。
但是不是针对所有命令都有效。
ipmitool raw指令用法

ipmitool raw指令用法IPMItool raw命令是一种在IPMI设备上执行原始命令的方式。
以下是一些使用IPMItool raw命令的实例:1. 查询传感器状态:使用IPMItool raw命令查询特定传感器的状态。
命令如下:ipmitool raw 0x04 0x2f 0x01其中,“0x04”是命令代码,“0x2f”是传感器ID,“0x01”是请求类型。
2. 查询系统事件日志:可以使用IPMItool raw命令查询IPMI设备的系统事件日志。
命令如下:ipmitool raw 0x0a 0x0c其中,“0x0a”是命令代码,“0x0c”是请求类型。
3. 查询传感器数据:可以使用IPMItool raw命令查询特定传感器的数据。
命令如下:ipmitool raw 0x04 0x2e 0x01 0x0a 0x2b其中,“0x04”是命令代码,“0x2e”是传感器ID,“0x01”是请求类型,“0x0a”是传感器数据类型,“0x2b”是传感器数据ID。
4. 远程启动服务器:IPMItool raw命令可用于远程启动服务器。
命令如下:ipmitool -I lanplus -H <hostname> -U <username> -P <password> raw 0x06 0x02其中,“0x06”是命令代码,“0x02”是请求类型。
命令中的“-I”,“-H”,“-U”和“-P”选项分别指定IPMI设备的接口类型,主机名,用户名和密码。
5. 重置服务器:使用IPMItool raw命令可以重置服务器。
命令如下:ipmitool -I lanplus -H <hostname> -U <username> -P <password> raw 0x06 0x04其中,“0x06”是命令代码,“0x04”是请求类型。
命令中的“-I”,“-H”,“-U”和“-P”选项分别指定IPMI设备的接口类型,主机名,用户名和密码。
ipmitool fru write

ipmitool fru write
IPMItool是一个非常强大的管理和监控工具,用于管理服务器硬件和系统健康状况。
其中,FRU(Field Replaceable Unit)命令允许用户对服务器的特定硬件组件进行配置和更新。
使用ipmitool fru write命令,用户可以修改FRU的特定参数。
以下是该命令的一般语法:
css
ipmitool fru write [OPTIONS] fru-number data
fru-number:指定要写入的FRU的编号。
data:要写入的数据,可以是十六进制或ASCII格式。
该命令的选项可能包括:
-v:详细输出模式,显示更详细的操作信息。
-P:使用指定的通道连接到IPMI适配器。
-C:使用指定的用户名和密码进行身份验证。
-k:使用指定的加密密钥进行身份验证。
请注意,使用ipmitool命令需要具有适当的权限和知识,并且应该谨慎操作以避免对服务器硬件造成损坏或数据丢失。
在执行任何硬件相关的操作之前,强烈建议备份重要数据并确保您了解正在进行的操作和其潜在风险。
如果您需要更详细的信息或示例,请参考IPMItool的官方文档或向具有相关经验的专业人员咨询。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
ipmitool工具常用命令汇总目录1.工具的安装 (3)2.命令的help (3)3.查看管理口的IP地址 (5)4.管理底盘chassis配置 (6)4.1查看底盘配置汇总 (6)4.2管理电源 (6)4.3管理时间间隔 (7)4.4管理电源恢复策略 (7)4.5查看上次重启原因 (7)4.6查询上电时间 (8)4.7管理启动项 (8)4.8设置启动项的参数 (8)5.使用delloem进行管理 (9)5.1配置lcd (9)5.2查看MAC地址 (10)5.3设置lan的模式 (11)5.4设置背板led的状态 (11)5.5管理电源监控 (12)6.查看传感器数据sensor (12)6.1查看当前系统所有的传感器数据 (13)6.2设置传感器的告警阈值 (13)6.3查看某一传感器的状态信息 (13)6.4查看某一个传感器的当前值 (14)7.管理传感器仓库sdr (14)7.1查看传感器仓库中的信息列表 (15)7.2查看传感器的类型和指定类型的数据 (16)7.3查看指定传感器的配置信息 (17)7.4查看传感器仓库sdr的配置信息 (18)8.查看系统事件sel日志 (18)8.1查看sel的状态信息 (18)8.2查看sel的中的日志信息 (19)1.工具的安装yum install -y OpenIPMI ipmitool开启服务/etc/init.d/ipmi status/etc/init.d/ipmi start[root@cell83 ~]# ipmitool -Vipmitool version 1.8.182.命令的help明细的命令参考man ipmitool或者附件ipmitool.help[root@cell83 ~]# ipmitool -hipmitool version 1.8.18usage: ipmitool [options...] <command>-h This help-V Show version information-v Verbose (can use multiple times)-c Display output in comma separated format-d N Specify a /dev/ipmiN device to use (default=0)-I intf Interface to use-H hostname Remote host name for LAN interface-p port Remote RMCP port [default=623]-U username Remote session username-f file Read remote session password from file-z size Change Size of Communication Channel (OEM)-S sdr Use local file for remote SDR cache-D tty:b[:s] Specify the serial device, baud rate to useand, optionally, specify that interface is the system one-4 Use only IPv4-6 Use only IPv6-a Prompt for remote password-Y Prompt for the Kg key for IPMIv2 authentication-e char Set SOL escape character-C ciphersuite Cipher suite to be used by lanplus interface-k key Use Kg key for IPMIv2 authentication-y hex_key Use hexadecimal-encoded Kg key for IPMIv2 authentication-L level Remote session privilege level [default=ADMINISTRATOR] Append a '+' to use name/privilege lookup in RAKP1-A authtype Force use of auth type NONE, PASSWORD, MD2, MD5 or OEM -P password Remote session password-E Read password from IPMI_PASSWORD environment variable -K Read kgkey from IPMI_KGKEY environment variable-m address Set local IPMB address-b channel Set destination channel for bridged request-t address Bridge request to remote target address-B channel Set transit channel for bridged request (dual bridge) -T address Set transit address for bridge request (dual bridge) -l lun Set destination lun for raw commands-o oemtype Setup for OEM (use 'list' to see available OEM types) -O seloem Use file for OEM SEL event descriptions-N seconds Specify timeout for lan [default=2] / lanplus [default=1] interface-R retry Set the number of retries for lan/lanplus interface [default=4]Interfaces:open Linux OpenIPMI Interface [default]imb Intel IMB Interfacelan IPMI v1.5 LAN Interfacelanplus IPMI v2.0 RMCP+ LAN Interfaceserial-terminal Serial Interface, Terminal Modeserial-basic Serial Interface, Basic Modeusb IPMI USB Interface(OEM Interface for AMI Devices)Commands:raw Send a RAW IPMI request and print responsei2c Send an I2C Master Write-Read command and print response spd Print SPD info from remote I2C devicelan Configure LAN Channelschassis Get chassis status and set power statepower Shortcut to chassis power commandsevent Send pre-defined events to MCmc Management Controller status and global enablessdr Print Sensor Data Repository entries and readingssensor Print detailed sensor informationfru Print built-in FRU and scan SDR for FRU locatorsgendev Read/Write Device associated with Generic Device locators sdrsel Print System Event Log (SEL)pef Configure Platform Event Filtering (PEF)sol Configure and connect IPMIv2.0 Serial-over-LANtsol Configure and connect with Tyan IPMIv1.5 Serial-over-LAN isol Configure IPMIv1.5 Serial-over-LANuser Configure Management Controller userschannel Configure Management Controller channelssession Print session informationdcmi Data Center Management Interfacenm Node Manager Interfacesunoem OEM Commands for Sun serverskontronoem OEM Commands for Kontron devicespicmg Run a PICMG/ATCA extended cmdfwum Update IPMC using Kontron OEM Firmware Update Managerfirewall Configure Firmware Firewalldelloem OEM Commands for Dell systemsshell Launch interactive IPMI shellexec Run list of commands from fileset Set runtime variable for shell and exechpm Update HPM components using PICMG HPM.1 fileekanalyzer run FRU-Ekeying analyzer using FRU filesime Update Intel Manageability Engine Firmwarevita Run a VITA 46.11 extended cmdlan6 Configure IPv6 LAN Channels3.查看管理口的IP地址[root@cell83 ~]# ipmitool -I open lan print[root@cell83 ~]# ipmitool -I open lan print | grep IPIP Address Source : Static AddressIP Address : 192.168.0.133IP Header : TTL=0x40 Flags=0x40 Precedence=0x00 TOS=0x10 Default Gateway IP : 192.168.0.1Backup Gateway IP : 0.0.0.04.管理底盘chassis配置[root@cell83 ~]# ipmitool -I open chassis helpChassis Commands: status, power, identify, policy, restart_cause, poh, bootdev, bootparam, selftest4.1查看底盘配置汇总[root@cell83 ~]# ipmitool -I open chassis statusSystem Power : onPower Overload : falsePower Interlock : inactiveMain Power Fault : falsePower Control Fault : falsePower Restore Policy : previousLast Power Event :Chassis Intrusion : inactiveFront-Panel Lockout : inactiveDrive Fault : falseCooling/Fan Fault : falseSleep Button Disable : not allowedDiag Button Disable : allowedReset Button Disable : not allowedPower Button Disable : allowedSleep Button Disabled: falseDiag Button Disabled : trueReset Button Disabled: falsePower Button Disabled: false4.2管理电源查看当前电源状态[root@cell83 ~]# ipmitool -I open chassis power statusChassis Power is on打开电源ipmitool -I open chassis power on关闭电源ipmitool -I open chassis power off重启电源ipmitool -I open chassis power cycle重置电源ipmitool -I open chassis power reset其他配置ipmitool -I open chassis power diagipmitool -I open chassis power soft4.3管理时间间隔查询时间间隔:[root@cell83 ~]# ipmitool -I open chassis identifyChassis identify interval: default (15 seconds)设置时间间隔:[root@cell83 ~]# ipmitool -I open chassis identify helpchassis identify <interval>default is 15 seconds0 to turn offforce to turn on indefinitely4.4管理电源恢复策略[root@cell83 ~]# ipmitool -I open chassis policy helpchassis policy <state>list : return supported policiesalways-on : turn on when power is restoredprevious : return to previous state when power is restored always-off : stay off after power is restored4.5查看上次重启原因[root@cell83 ~]# ipmitool -I open chassis restart_causeSystem restart cause: unknown4.6查询上电时间[root@cell83 ~]# ipmitool -I open chassis pohGet Chassis Power-On-Hours failed: Invalid command4.7管理启动项[root@cell83 ~]# ipmitool -I open chassis bootdev helpbootdev <device> [clear-cmos=yes|no]bootdev <device> [options=help,...]none : Do not change boot device orderpxe : Force PXE bootdisk : Force boot from default Hard-drivesafe : Force boot from default Hard-drive, request Safe Modediag : Force boot from Diagnostic Partitioncdrom : Force boot from CD/DVDbios : Force boot into BIOS Setupfloppy: Force boot from Floppy/primary removable media4.8设置启动项的参数[root@cell83 ~]# ipmitool -I open chassis bootparam helpbootparam get <param #>bootparam set bootflag <device> [options=...]Legal devices are:none : No overrideforce_pxe : Force PXE bootforce_disk : Force boot from default Hard-driveforce_safe : Force boot from default Hard-drive, request Safe Modeforce_diag : Force boot from Diagnostic Partitionforce_cdrom : Force boot from CD/DVDforce_bios : Force boot into BIOS SetupLegal options are:help : print this messagePEF : Clear valid bit on reset/power cycle cause by PEFtimeout : Automatically clear boot flag valid bit on timeoutwatchdog: Clear valid bit on reset/power cycle cause by watchdogreset : Clear valid bit on push button reset/soft resetpower : Clear valid bit on power up via power push button or wake event Any Option may be prepended with no- to invert sense of operation5.使用delloem进行管理查看帮助[root@cell83 ~]# ipmitool -I open delloem helpusage: delloem <command> [option...]commands:lcdmaclansetledpowermonitorvFlashFor help on individual commands type:delloem <command> help5.1配置lcd[root@cell83 ~]# ipmitool -I open delloem lcd helpGeneric DELL HW:lcd set {none}|{default}|{custom <text>}Set LCD text displayed during non-fault conditionsiDRAC 11g or iDRAC 12g or iDRAC 13g :lcd set {mode}|{lcdqualifier}|{errordisplay}Allows you to set the LCD mode and user-defined string.lcd set mode {none}|{modelname}|{ipv4address}|{macaddress}|{systemname}|{servicetag}|{ipv6address}|{ambienttemp}{systemwatt }|{assettag}|{userdefined}<text>Allows you to set the LCD display mode to any of the precedingparameterslcd set lcdqualifier {watt}|{btuphr}|{celsius}|{fahrenheit}Allows you to set the unit for the system ambient temperature mode.lcd set errordisplay {sel}|{simple}Allows you to set the error display.lcd infoShow LCD text that is displayed during non-fault conditionslcd set vkvm{active}|{inactive}Set vKVM active and inactive, message will be displayed on lcdwhen vKVM is active and vKVM session is in progresslcd set frontpanelaccess {viewandmodify}|{viewonly}|{disabled}Set LCD mode to view and modify, view only or disabledlcd statusShow LCD Status for vKVM display<active|inactive>and Front Panel access mode {viewandmodify}|{viewonly}|{disabled}5.2查看MAC地址[root@cell83 ~]# ipmitool -I open delloem mac helpmac listLists the MAC address of LOMsmac get <NIC number>Shows the MAC address of specified LOM. 0-7 System LOM, 8- DRAC/iDRAC. [root@cell83 ~]# ipmitool -I open delloem mac listSystem LOMsNIC Number MAC Address Status0 b8:2a:72:db:56:2a Enabled1 b8:2a:72:db:56:2b Enabled2 b8:2a:72:db:56:28 Enabled3 b8:2a:72:db:56:29 EnablediDRAC7 MAC Address b0:83:fe:c9:6d:315.3设置lan的模式[root@cell83 ~]# ipmitool -I open delloem lan helplan set <Mode>sets the NIC Selection Mode :on iDRAC12g OR iDRAC13g :dedicated, shared with lom1, shared with lom2,shared with lom3,sharedwith lom4,shared with failover lom1,shared with failover lom2,sharedwith failover lom3,shared with failover lom4,shared with Failover allloms, shared with Failover None).on other systems :dedicated, shared, shared with failover lom2,shared with Failover all loms.lan geton iDRAC12g or iDRAC13g :returns the current NIC Selection Mode (dedicated, shared with lom1, sharedwith lom2, shared with lom3, shared with lom4,shared with failover lom1,shared with failover lom2,shared with failover lom3,shared with failoverlom4,shared with Failover all loms,shared with Failover None). on other systems :dedicated, shared, shared with failover,lom2, shared with Failover all loms.lan get activereturns the current active NIC (dedicated, LOM1, LOM2, LOM3, LOM4). 5.4设置背板led的状态[root@cell83 ~]# ipmitool -I open delloem setled helpsetled <b:d.f> <state..>Set backplane LED stateb:d.f = PCI Bus:Device.Function of drive (lspci format)state = present|online|hotspare|identify|rebuilding|fault|predict|critical|failed5.5管理电源监控[root@cell83 ~]# ipmitool -I open delloem powermonitor helppowermonitorShows power tracking statisticspowermonitor clear cumulativepowerReset cumulative power readingpowermonitor clear peakpowerReset peak power readingpowermonitor powerconsumptionDisplays power consumption in <watt|btuphr>powermonitor powerconsumptionhistory <watt|btuphr>Displays power consumption historypowermonitor getpowerbudgetDisplays power cap in <watt|btuphr>powermonitor setpowerbudget <val><watt|btuphr|percent>Allows user to set the power cap in <watt|BTU/hr|percentage>powermonitor enablepowercapTo enable set power cappowermonitor disablepowercapTo disable set power cap6.查看传感器数据sensor[root@cell83 ~]# ipmitool -I open sensor helpSensor Commands: list thresh get reading6.1查看当前系统所有的传感器数据[root@cell83 ~]# ipmitool -I open sensor list6.2设置传感器的告警阈值[root@cell83 ~]# ipmitool -I open sensor thresh helpsensor thresh <id> <threshold> <setting>id : name of the sensor for which threshold is to be set threshold : which threshold to setunr = upper non-recoverableucr = upper criticalunc = upper non-criticallnc = lower non-criticallcr = lower criticallnr = lower non-recoverablesetting : the value to set the threshold tosensor thresh <id> lower <lnr> <lcr> <lnc>Set all lower thresholds at the same timesensor thresh <id> upper <unc> <ucr> <unr>Set all upper thresholds at the same time6.3查看某一传感器的状态信息[root@cell83 ~]# ipmitool -I open sensor get helpsensor get <id> ... [id]id : name of desired sensor查看温度传感器[root@cell83 ~]# ipmitool -I open sensor get TempLocating sensor record...Sensor ID : Temp (0xe)Entity ID : 3.1Sensor Type (Threshold) : TemperatureSensor Reading : 48 (+/- 1) degrees CStatus : okLower Non-Recoverable : naLower Critical : 3.000Lower Non-Critical : 8.000Upper Non-Critical : 79.000Upper Critical : 84.000Upper Non-Recoverable : naPositive Hysteresis : 1.000Negative Hysteresis : 1.000Assertion Events :Assertions Enabled :6.4查看某一个传感器的当前值[root@cell83 ~]# ipmitool -I open sensor reading helpsensor reading <id> ... [id]id : name of desired sensor查看温度传感器[root@cell83 ~]# ipmitool -I open sensor reading TempTemp | 477.管理传感器仓库sdr[root@cell83 ~]# ipmitool -I open sdr helpusage: sdr <command> [options]list | elist [option]all All SDR Recordsfull Full Sensor Recordcompact Compact Sensor Recordevent Event-Only Sensor Recordmcloc Management Controller Locator Recordfru FRU Locator Recordgeneric Generic Device Locator Recordtype [option]<Sensor_Type> Retrieve the state of specified sensor. Sensor_Type can be specified either asa string or a hex value.list Get a list of available sensor typesget <Sensor_ID>Retrieve state of the first sensor matched by Sensor_IDinfoDisplay information about the repository itselfentity <Entity_ID>[.<Instance_ID>]Display all sensors associated with an entitydump <file>Dump raw SDR data to a filefill <option>sensors Creates the SDR repository for the current configurationnosat Creates the SDR repository for the currentconfiguration, without satellite scanfile <file> Load SDR repository from a filerange <range> Load SDR repository from a provided list or range. Use ',' for list or '-' forrange, eg. 0x28,0x32,0x40-0x447.1查看传感器仓库中的信息列表[root@cell83 ~]# ipmitool -I open sdr elist helpusage: sdr elist [all|full|compact|event|mcloc|fru|generic]=>查看仓库中所有的信息:elist和list的格式内容上略有不同[root@cell83 ~]# ipmitool -I open sdr elist all[root@cell83 ~]# ipmitool -I open sdr list all=>查看传感器的数据[root@cell83 ~]# ipmitool -I open sdr elist fullFan1 RPM | 30h | ok | 7.1 | 6240 RPMFan2 RPM | 31h | ok | 7.1 | 6240 RPMFan3 RPM | 32h | ok | 7.1 | 6240 RPMFan4 RPM | 33h | ok | 7.1 | 6120 RPMFan5 RPM | 34h | ok | 7.1 | 6240 RPMFan6 RPM | 35h | ok | 7.1 | 6240 RPMInlet Temp | 04h | ok | 7.1 | 35 degrees CExhaust Temp | 01h | ok | 7.1 | 40 degrees CTemp | 0Eh | ok | 3.1 | 47 degrees CTemp | 0Fh | ok | 3.2 | 46 degrees CCurrent 1 | 6Ah | ok | 10.1 | 0.80 AmpsCurrent 2 | 6Bh | ns | 10.2 | No ReadingVoltage 1 | 6Ch | ok | 10.1 | 236 VoltsVoltage 2 | 6Dh | ns | 10.2 | No ReadingPwr Consumption | 77h | ok | 7.1 | 168 Watts说明:Fan ----表示风扇Inlet Temp ----进口温度Exhaust Temp ----出口温度Temp ----CPU的温度Current --电流Voltage ---电压Pwr Consumption ----功率7.2查看传感器的类型和指定类型的数据查看传感器有哪些类型[root@cell83 ~]# ipmitool -I open sdr type listSensor Types:Temperature (0x01) Voltage (0x02) Current (0x03) Fan (0x04) Physical Security (0x05) Platform Security (0x06) Processor (0x07) Power Supply (0x08) Power Unit (0x09) Cooling Device (0x0a) Other (0x0b) Memory (0x0c) Drive Slot / Bay (0x0d) POST Memory Resize (0x0e) System Firmwares (0x0f) Event Logging Disabled (0x10) Watchdog1 (0x11) System Event (0x12) Critical Interrupt (0x13) Button (0x14) Module / Board (0x15) Microcontroller (0x16) Add-in Card (0x17) Chassis (0x18) Chip Set (0x19) Other FRU (0x1a) Cable / Interconnect (0x1b) Terminator (0x1c) System Boot Initiated (0x1d) Boot Error (0x1e) OS Boot (0x1f) OS Critical Stop (0x20) Slot / Connector (0x21) System ACPI Power State (0x22) Watchdog2 (0x23) Platform Alert (0x24) Entity Presence (0x25) Monitor ASIC (0x26) LAN (0x27) Management Subsys Health (0x28) Battery (0x29) Session Audit (0x2a) Version Change (0x2b) FRU State (0x2c)查看指定传感器的数据如查看温度:[root@cell83 ~]# ipmitool -I open sdr type TemperatureInlet Temp | 04h | ok | 7.1 | 35 degrees CExhaust Temp | 01h | ok | 7.1 | 40 degrees CTemp | 0Eh | ok | 3.1 | 46 degrees CTemp | 0Fh | ok | 3.2 | 47 degrees C如查看电源的个数1:有一个电源[root@cell83 dvd]# ipmitool -I open sdr type "Power Supply"PS Redundancy | 74h | ns | 7.1 | No ReadingStatus | 62h | ok | 10.1 | Presence detectedStatus | 63h | ns | 10.2 | Disabled如查看电源的个数2:有四个电源[root@db04 ~]# ipmitool -I open sdr type "Power Supply"PS Redundancy | 74h | ok | 7.1 | Redundancy LostStatus | 62h | ok | 10.1 | Presence detectedStatus | 63h | ok | 10.2 | Presence detected, Power Supply AC lostStatus | 52h | ok | 10.3 | Presence detected, Config Error, Power Supply InactiveStatus | 53h | ok | 10.4 | Presence detected, Config Error, Power Supply Inactive7.3查看指定传感器的配置信息[root@cell83 ~]# ipmitool -I open sdr get TempSensor ID : Temp (0xe)Entity ID : 3.1 (Processor)Sensor Type (Threshold) : Temperature (0x01)Sensor Reading : 47 (+/- 1) degrees CStatus : okNominal Reading : 23.000Normal Minimum : 11.000Normal Maximum : 69.000Upper critical : 83.000Upper non-critical : 77.000Lower critical : 3.000Lower non-critical : 8.000Positive Hysteresis : 1.000Negative Hysteresis : 1.000Minimum sensor range : UnspecifiedMaximum sensor range : UnspecifiedEvent Message Control : Per-thresholdReadable Thresholds : No ThresholdsSettable Thresholds : No ThresholdsAssertion Events :Assertions Enabled :7.4查看传感器仓库sdr的配置信息[root@cell83 ~]# ipmitool -I open sdr infoSDR Version : 0x51Record Count : 170Free Space : 1836 bytesMost recent Addition : 02/07/2106 06:28:15Most recent Erase : 02/07/2106 06:28:15SDR overflow : noSDR Repository Update Support : modalDelete SDR supported : noPartial Add SDR supported : noReserve SDR repository supported : yesSDR Repository Alloc info supported : no8.查看系统事件sel日志[root@cell83 ~]# ipmitool -I open sel helpSEL Commands: info clear delete list elist get add time save readraw writeraw interpret8.1查看sel的状态信息[root@cell83 ~]# ipmitool -I open sel info helpSEL InformationVersion : 1.5 (v1.5, v2 compliant)Entries : 740Free Space : 4544 bytesPercent Used : 72%Last Add Time : 08/27/2018 08:48:29Last Del Time : 09/13/2014 11:16:12Overflow : falseSupported Cmds : 'Reserve'8.2查看sel的中的日志信息ipmitool -I open sel list | elistWhen this command is invoked without arguments, the entire contents of the System Event Log are displayed. If invoked as elist (extended list) it will also use the Sensor Data Record entries to display the sensor ID for the sensor that caused each event. Note this can take a long time over the system interface.<count> | first <count>Displays the first count (least-recent) entries in the SEL. If count is zero, all entries are displayed.last <count>Displays the last count (most-recent) entries in the SEL. If count is zero, all entries are displayed.查看前5条[root@cell83 ~]# ipmitool -I open sel elist first 51 | 09/13/2014 | 11:16:12 | Event Logging Disabled SEL | Log area reset/cleared | Asserted2 | 10/15/2014 | 13:42:04 | Physical Security Intrusion | General Chassis intrusion () | Asserted3 | 10/15/2014 | 13:42:09 | Physical Security Intrusion | General Chassis intrusion () | Deasserted4 | 10/16/2014 | 12:08:20 | Physical Security Intrusion | General Chassis intrusion () | Asserted5 | 10/16/2014 | 12:08:49 | Physical Security Intrusion | General Chassis intrusion () | Deasserted查看后5条[root@cell83 ~]# ipmitool -I open sel elist last 52e0 | 08/02/2018 | 01:45:10 | Physical Security Intrusion | General Chassis intrusion () | Deasserted2e1 | 08/04/2018 | 04:11:34 | OS Boot | Installation started | Asserted2e2 | 08/04/2018 | 04:21:03 | OS Boot | Installation completed | Asserted 2e3 | 08/27/2018 | 08:48:24 | Physical Security Intrusion | General Chassisintrusion () | Asserted2e4 | 08/27/2018 | 08:48:29 | Physical Security Intrusion | General Chassis intrusion () | Deasserted。