ipmitool工具常用命令汇总

合集下载

ipmitool工具常用命令汇总情况

ipmitool工具常用命令汇总情况

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。

ipmitool用法

ipmitool用法

ipmitool用法
ipmitool是一款用于管理IPMI(智能平台管理接口)设备的命令行工具,它支持多种操作,下面是部分常用用法:
- raw:发送一个原始的IPMI请求,并且打印回复信息。

- lan:配置网络(lan)信道。

- chassis:查看底盘的状态和配置电源。

- event:向BMC发送一个已定义的事件,可用于测试配置的SNMP是否成功。

- mc:查看MC(Management Contollor)状态和各种允许的项。

- sdr:打印传感器仓库中的任何监控项和从传感器读取到的值。

- sensor:打印周详的传感器信息。

- fru:打印内建的Field Replaceable Unit (FRU)信息。

- sel:打印 System Event Log (SEL)。

- pef:配置 Platform Event Filtering (PEF),事件过滤平台用于在监控系统发现有event时候,用PEF中的策略进行事件过滤,然后看是否需要报警。

- sol/isol:用于配置通过串口的Lan进行监控。

- user:配置BMC中用户的信息。

你可以根据实际需求选择相应的命令参数并根据提示输入相关参数,以实现对IPMI设备的管理和维护。

如果你还需要了解其他用法,可以继续向我提问。

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此命令将显示服务器上各种传感器的当前状态,如温度、电压、风扇速度等。

ipmitool fru命令参数

ipmitool fru命令参数

ipmitool fru命令参数ipmitool fru命令参数是一款用于获取服务器硬件信息的命令行工具。

通过使用ipmitool fru命令参数,用户可以获取到服务器硬件上的各种信息,例如服务器型号、序列号、制造商、产品名称等。

本文将详细介绍ipmitool fru命令参数的各个选项及其用法。

1. -h, --help该选项用于获取ipmitool fru命令的帮助信息。

在命令行中输入ipmitool fru -h即可显示帮助信息,其中包含了该命令的使用方法、选项说明等内容。

通过阅读帮助信息,用户可以更好地理解和使用ipmitool fru命令。

2. -v, --verbose该选项用于显示更详细的信息。

默认情况下,ipmitool fru命令只会显示服务器的基本信息,使用-v选项可以显示更多的详细信息,包括各个硬件组件的详细描述、温度传感器的实时温度等。

3. -l, --list该选项用于列出所有可用的FRU记录。

FRU(Field Replaceable Unit)是一种用于描述服务器硬件组件的记录,包括制造商、序列号、产品名称等信息。

使用-l选项可以列出所有的FRU记录,以便用户了解服务器的硬件配置。

4. -t <type>, --type <type>该选项用于指定要获取的FRU记录的类型。

FRU记录可以分为不同的类型,例如主板、电源、风扇等。

使用-t选项可以指定要获取的FRU记录的类型,例如ipmitool fru -t motherboard可以获取主板的FRU记录。

5. -n <number>, --number <number>该选项用于指定要获取的FRU记录的编号。

每个服务器上的FRU 记录都有一个唯一的编号,使用-n选项可以指定要获取的特定编号的FRU记录。

例如ipmitool fru -n 1可以获取编号为1的FRU记录。

6. -e, --export该选项用于导出FRU记录到文件。

Linux系统下的ipmitool工具应该怎样使用

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 bmc reset和mc reset

ipmitool bmc reset和mc reset

ipmitool bmc reset和mc reset摘要:1.IPMItool 和bmc reset 的介绍2.mc reset 的功能和应用3.IPMItool bmc reset 和mc reset 的异同正文:一、IPMItool 和bmc reset 的介绍IPMItool 是一个用于管理和配置基于IPMI(Intelligent Platform Management Interface)的服务器的开源工具。

它可以实现远程开关机、读取传感器数据、配置事件日志等功能,为数据中心管理员提供了便捷的管理手段。

bmc reset(基板管理控制器重置)是一种通过IPMItool 发送的命令,用于重置服务器的基板管理控制器(BMC)。

当服务器出现故障时,可以通过bmc reset 命令恢复BMC 的正常工作。

二、mc reset 的功能和应用mc reset(内存控制器重置)是IPMItool 提供的另一个命令,用于重置服务器的内存控制器。

在服务器运行过程中,内存控制器可能出现故障,导致系统崩溃或无法正常启动。

此时,可以使用mc reset 命令来恢复内存控制器的正常工作。

mc reset 命令的应用场景包括:服务器启动时出现内存错误、服务器运行过程中出现内存故障等。

通过使用mc reset 命令,可以快速地解决内存控制器相关的问题,提高服务器的稳定性和可靠性。

三、IPMItool bmc reset 和mc reset 的异同1.相同点:- 都是基于IPMItool 的命令,用于管理和配置服务器。

- 都可以用于恢复服务器硬件设备的正常工作,提高服务器的稳定性和可靠性。

2.不同点:- bmc reset 命令用于重置服务器的基板管理控制器(BMC),而mc reset 命令用于重置服务器的内存控制器。

- bmc reset 命令主要解决BMC 相关的问题,如BMC 失去响应、BMC 设置错误等;而mc reset 命令主要解决内存控制器相关的问题,如内存错误、内存故障等。

ipmitool sdr elist命令结果详解

ipmitool sdr elist命令结果详解

ipmitool sdr elist命令结果详解ipmitool是一个开源的命令行工具,用于管理基板管理控制器(BMC)通过Intelligent Platform Management Interface(IPMI)协议连接到远程服务器或设备。

sdr elist是ipmitool中的一个命令,用于获取传感器数据记录(SDR)中的传感器列表。

以下是对ipmitoolsdr elist命令结果的详细解析。

ipmitool sdr elist命令的结果包含了服务器或设备上的传感器列表。

每个传感器都有其特定的标识符、名称、状态、阈值和读数。

下面是ipmitool sdr elist命令结果的一个示例:\begin{verbatim}Sensor ID Sensor Name Sensor Type Reading-------------------------------------------------------------------------01 XX Sensor 1 Temperature 40 degrees C02 XX Sensor 2 Voltage 1.2 Volts03 XX Sensor 3 Current 5.0 Amps\end{verbatim}在这个示例中,命令结果的第一列是传感器的标识符(SensorID),它用于唯一标识每个传感器。

第二列是传感器的名称(Sensor Name),它描述了传感器所监测的物理量或参数。

第三列是传感器的类型(Sensor Type),它指示了传感器所监测的是温度、电压、电流等。

第四列是传感器的读数(Reading),它显示了传感器当前的测量值。

对于每个传感器,命令结果还可以包括状态信息和阈值信息。

状态信息描述了传感器是否正常工作,是否出现异常或错误。

阈值信息定义了传感器的上限和下限,用于设置警告或报警。

除了基本的传感器信息,ipmitool sdr elist命令的结果还可能包含其他信息,如设备的序列号、版本号、制造商等。

ipmitool

ipmitool
# /etc/init.d/ipmi start # ipmitool lan print 1 //打印当前 BMC 配置,其它命令在后面将详细解绍.
三,配置远程终端重定向 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

IP 路由命令详解

IP 路由命令详解

IP 路由命令详解
下面列出了可在运行“路由和远程访问”的服务器的命令提示符下键入以管理IP 设置的netsh 命令。

如果某个特定功能有多个命令,则在表示这些命令时可使用斜杠(/) 来分隔每个命令。

例如,routing ip set/show loglevel 命令实际上是两个分开的命令:routing ip set loglevel 和routing ip show loglevel。

在命令提示符下键入命令时,请在每个命令之前键入netsh。

要获得每条命令的准确语法,请键入带有?选项的命令。

例如,要查看netsh routing ip set interface 命令的命令行帮助,请在命令提示符下键入netsh routing ip set interface ?。

ipmi命令

ipmi命令

9 ipmitool -I lanplus -H 172.16.32.195 -U root -P opendoor sol activate
10 ipmitool -I lanplus -H 172.16.32.195 -U root -P opendoor123 sol activate
Ipmitool –I open chassis power cycle 关机重启
Ipmitool –I open chassis restart_cause查看上次系统重启的原因
Ipmitool –I open chassis policy list 查看支持的底盘电源相关策略。
Ipmitool –I open mc reset 使BMC重新硬启动
Ipmitool –I open chassis power status查看电源状态
Ipmitool –I open chassis power on启动底盘,用此命令可以远程开机
Ipmitool –I open chassis power off关闭底盘,用此命令可以远程关机
Ipmitool –I open chassis power reset实现硬重启,用此命令可以远程开机
Ipmitool –I open mc info 查看BMC硬件信息
Ipmitool –I open mc getenables 列出BMC所有允许的选项
ipmitool -I lanplus -H 192.168.32.195 -U root -P opendoor123 sol activate
ipmitool -I lanplus -H 192.168.32.195 -U root -P opendoor123 power cycle

cmdtool常用指令

cmdtool常用指令

cmdtool常用指令
在cmdtool中,常用的指令包括:
1. copy:用于拷贝文件,例如"copy * "d:""用于将当前目录下的所有文件拷贝到D盘。

2. attrib:用于更改文件属性,例如"attrib"命令可以去除当前目录下所有文件(夹)的隐藏属性。

3. ipconfig:用于查询本机ip信息。

4. nslookup:用于查询网站ip地址,格式为"nslookup网站域名"。

5. ping:用于测试网络连通性,格式为"ping 域名/ip地址"。

6. netstat:用于查看开启了哪些端口以及端口的网络连接情况,例如"netstat -an"可以查看所有开启了哪些端口以及端口的网络连接情况。

7. tracert:用于跟踪路由信息。

8. shutdown:用于关闭计算机,例如"shutdown -h 1"用于立即关闭计算机。

9. cls:用于清除屏幕。

10. help或/?:用于查看帮助,例如"/?"或"help"。

这些指令的使用可能需要结合具体的操作系统和软件环境进行理解和操作。

在运行这些指令之前,请确保您已经熟悉了相关的操作系统和软件环境,并仔细阅读相关的使用说明和文档。

ipmitool命令收集

ipmitool命令收集
2.1.2 使用ipmiutil本地获取信息
Ipmiutil安装完成后,会包含以下可执行命令:
alarms –显示和设置Telco alarms报警(LED显示和延迟)
bmchealth – 测试BMC是否工作正常。
fruconfig – 显示FRU的产品信息,写入有用信息
getevent – 接收一个IPMI event,并显示。
Ipmitool –I open chassis power reset实现硬重启,用此命令可以远程开机
Ipmi还可以设置系统启动boot的设备,具体见ipmitool帮助文档。
Ipmitool –I open mc reset 使BMC重新硬启动
Ipmitool –I open mc info 查看BMC硬件信息
Ipmitool –I open chassis restart_cause查看上次系统重启的原因
Ipmitool –I open chassis policy list 查看支持的底盘电源相关策略。
Ipmitool –I open chassis power on启动底盘,用此命令可以远程开机
Ipmitool –I open chassis power off关闭底盘,用此命令可以远程开机
Ipmitool -I open lan set 1 access on设置channel 1允许访问。
Ipmitool -I open pef info打印Platform Event Filtering (pef)信息
Ipmitool -I open pef status查看Platform Event Filtering (pef)状态
IPMI远程管理实验 on DELL PE2950

IPMITool常用操作指令

IPMITool常用操作指令

一、开关机,重启1. 查看开关机状态: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二、用户管理说明:[ChannelNo] 字段是可选的,ChannoNo为1或者8;BMC默认有2个用户:user id 为1的匿名用户,user id为2的ADMIN用户;<>字段为必选内容;<privilege level>:2为user权限,3为Operator权限,4为Administrator权限;1. 查看用户信息:ipmitool –H (BMC的管理IP地址) –I lanplus –U (BMC登录用户名) –P (BMC 登录用户名的密码) user list [ChannelNo]2. 增加用户:ipmitool –H (BMC的管理IP地址) –I lanplus –U (BMC登录用户名) –P (BMC 登录用户名的密码) user set name <user id> <username>3. 设置密码:ipmitool –H (BMC的管理IP地址) –I lanplus –U (BMC登录用户名) –P (BMC 登录用户名的密码) user set password <user id> <password>4. 设置用户权限:ipmitool –H (BMC的管理IP地址) –I lanplus –U (BMC登录用户名) –P (BMC 登录用户名的密码) user priv <user id> <privilege level> [ChannelNo]5. 启用/禁用用户:ipmitool –H (BMC的管理IP地址) –I lanplus –U (BMC登录用户名) –P (BMC 登录用户名的密码) user enable/disable <user id>三、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 <默认网关>四、SOL功能说明:<9.6/19.2/38.4/57.6/115.2>其中115.2代表115200,即*1000是表示的波特率。

ipmi命令

ipmi命令

ipmi命令Ipmitool -I open lan set 1 ipaddr 192.168.32.195设置channel 1 的地址为192.168.32.195Ipmitool -I open lan print 1 查看channel 1的网络配置Ipmitool –I open chassis status查看底盘状态,其中包括了底盘电源信息,底盘工作状态等Ipmitool –I open chassis power status查看电源状态Ipmitool –I open chassis power on启动底盘,用此命令可以远程开机Ipmitool –I open chassis power off关闭底盘,用此命令可以远程关机Ipmitool –I open chassis power reset实现硬重启,用此命令可以远程开机Ipmitool –I open chassis power cycle 关机重启Ipmitool –I open chassis restart_cause查看上次系统重启的原因Ipmitool –I open chassis policy list 查看支持的底盘电源相关策略。

Ipmitool –I open mc reset 使BMC重新硬启动Ipmitool –I open mc info 查看BMC硬件信息Ipmitool –I open mc getenables 列出BMC所有允许的选项ipmitool -I lanplus -H 192.168.32.195 -U root -P opendoor123 sol activateipmitool -I lanplus -H 192.168.32.195 -U root -P opendoor123 power cycle1.远程控制:将被控制机器的IP增加eth0:12.然后查找本机的IPMI的IP命令:ipmitool -I open lan print 19 ipmitool -I lanplus -H 172.16.32.195 -U root -P opendoor sol activate10 ipmitool -I lanplus -H 172.16.32.195 -U root -P opendoor123 sol activate11 ipmitool -I lanplus -H 172.16.32.195 -U root -P opendoor123 power status12 ipmitool -I lanplus -H 172.16.32.195 -U root -P opendoor123 power status。

ipmitool工具操作指南

ipmitool工具操作指南

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远程监控命令:ipmitool [-c|-h|-v|-V]-I lan/lanplus -H [-p ][-U ][-A ][-L ][-a|-E|-P|-f ][-o ]命令选项说明:-c使输出格式为CSV(逗号分隔的变量)格式。

但是不是针对所有命令都有效。

-h获取基本帮助-v 提⾼详细输出的级别。

这个操作可以指定多次⽤来提⾼调试输出的级别。

如果指定三次,那么你将会得到所有传⼊和传出的数据包。

-V列出版本信息。

-I 选择使⽤的IPMI接⼝。

编译⽀持的接⼝都在使⽤帮助输出中可见。

-H远程服务地址,可以为ip地址或者是主机名。

IPMItool使用文档

IPMItool使用文档
启动服务: service ipmi start
lanplus是操作远程机器, 如果要操作本地机器,需要把lanplus换成 open
1. 查看开关机状态:
ipmitool -H (BMC的管理IP地址) -I lanplus -U (BMC登录用户名) -P (BMC 登录用户名的密码) power status
为大人带来形象的羊生肖故事来历为孩子带去快乐的生肖图画故事阅读
戴尔IPMI默认用户名:root 密码:calvin
曙光IPMI默认用户名:admin 密码:admin
浪潮IPMI默认用户名:admin密码:admin
H3CIPMI默认用户名:admin 密码:Password@_
安装:yum install ipmitool
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>
2. 开机:
ipmitool -H (BMC的管理IP地址) -I lanplus -U (BMC登录用户名) -P (BMC 登录用户名的密码) power on
3. 关机:
ipmitool -H (BMC的管理IP地址) -I lanplus -U (BMC登录用户名) -P (BMC 登录用户名的密码) power off

ipmitool工具操作指南

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工具常用命令汇总

ipmitool工具常用命令汇总

ipmitool工具常用命令汇总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...]-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 status System 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 status Chassis 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 identifydefault is 15 seconds0 to turn offforce to turn on indefinitely4.4管理电源恢复策略[root@cell83 ~]# ipmitool -I open chassis policy helpchassis policylist : 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 [clear-cmos=yes|no]bootdev [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 Mode diag : 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 help bootparam getbootparam set bootflag [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 timeout watchdog: 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 [option...]commands:lcdmaclansetledpowermonitorvFlashFor help on individual commands type:delloem help5.1配置lcd[root@cell83 ~]# ipmitool -I open delloem lcd helpGeneric DELL HW:lcd set {none}|{default}|{custom }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}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 conditions lcd 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 displayand Front Panel access mode {viewandmodify}|{viewonly}|{disabled}5.2查看MAC地址[root@cell83 ~]# ipmitool -I open delloem mac helpmac listLists the MAC address of LOMsmac getShows 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:31。

使用ipmitool实现Linux系统下对服务器的ipmi管理

使用ipmitool实现Linux系统下对服务器的ipmi管理

使用ipmitool实现Linux系统下对服务器的ipmi管理使用 ipmitool 实现 Linux 系统下对服务器的 ipmi 管理(对IPMI 有详细解读)IPMItool manpage一、DELL服务器开启IPMI:(支持DELL型号:PE1850 ,PE2850 ,PE1950,PE2950,R410,R510,R710)1.配置系统启用IPMI,启动服务器,在启动过程中,看提示,按Ctrl+E 进入进入远程访问公用程序2.设置IPMI Over LAN为On,意思为启用通过LAN方式的IPMI,默认为Off。

二、通过web访问DRAC 开启IPMI:(支持此方式的DELL服务器型号:PE1950,PE2950 ,R410,R510,R710)远程访问--配置---网络---IPMI LAN 设置----启用LAN 上的IPMI注:如果未开启IPMI,远程访问时报错提示:Error: Unable to establish LAN session三、设置iDRAC网络参数(也可以web方式配置网络设置参数):DRAC5选择LAN Parameters,配置iDRAC网卡参数, NIC Selection ,设置网卡共享模式,默认为“Dedicated” (专用).iDRAC6选择LAN Parameters, 可以配置iDRAC网络参数与NIC Selection, 默认为“Dedicated” (专用).注:LAN 共享依赖于“NIC Selection”(NIC 选择)配置选项。

可用选项有“Shared”(共享)和“Failover”(故障转移),如果存在Remote Access Controller (RAC)卡,则还有一个选项“Dedicated” (专用)。

显示配置选项。

* “Shared”(共享)选择此选项与主机操作系统共享网络接口。

当主机操作系统配置为 NIC 组时,远程访问设备网络接口具有全部功能。

相关主题
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 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查看当前系统所有的传感器数据 (12)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 responsespd 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 sdr sel 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-LANisol 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 Manager firewall 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_cause System 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 E nabled2 b8:2a:72:db:56:28 E nabled3 b8:2a:72:db:56:29 E nablediDRAC7 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 currentconfigurationnosat Creates the SDR repository for the currentconfiguration, without satellite scanfile <file> Load SDR repository from a filerange <range> Load SDR repository from a provided listor 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 interpret 8.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 | Asserted2e3 | 08/27/2018 | 08:48:24 | Physical Security Intrusion | General Chassis intrusion () | Asserted2e4 | 08/27/2018 | 08:48:29 | Physical Security Intrusion | General Chassis intrusion () | Deasserted。

相关文档
最新文档