ipmitool工具普通命令汇总.doc

上传人:一*** 文档编号:2739884 上传时间:2020-05-02 格式:DOC 页数:30 大小:29.48KB
返回 下载 相关 举报
ipmitool工具普通命令汇总.doc_第1页
第1页 / 共30页
ipmitool工具普通命令汇总.doc_第2页
第2页 / 共30页
点击查看更多>>
资源描述

《ipmitool工具普通命令汇总.doc》由会员分享,可在线阅读,更多相关《ipmitool工具普通命令汇总.doc(30页珍藏版)》请在得力文库 - 分享文档赚钱的网站上搜索。

1、/ipmitool工具常用命令汇总目录1.工具的安装32.命令的help33.查看管理口的IP地址54.管理底盘chassis配置64.1查看底盘配置汇总64.2管理电源64.3管理时间间隔74.4管理电源恢复策略74.5查看上次重启原因74.6查询上电时间84.7管理启动项84.8设置启动项的参数85.使用delloem进行管理95.1配置lcd95.2查看MAC地址105.3设置lan的模式115.4设置背板led的状态115.5管理电源监控126.查看传感器数据sensor126.1查看当前系统所有的传感器数据136.2设置传感器的告警阈值136.3查看某一传感器的状态信息136.4查看

2、某一个传感器的当前值147.管理传感器仓库sdr147.1查看传感器仓库中的信息列表157.2查看传感器的类型和指定类型的数据167.3查看指定传感器的配置信息177.4查看传感器仓库sdr的配置信息178.查看系统事件sel日志188.1查看sel的状态信息188.2查看sel的中的日志信息181.工具的安装yum install -y OpenIPMI ipmitool开启服务/etc/init.d/ipmi status/etc/init.d/ipmi startrootcell83 # ipmitool -Vipmitool version 1.8.182.命令的help明细的命令参考

3、man ipmitool或者附件ipmitool.helprootcell83 # 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 -

4、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, ba

5、ud rate to use and, 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 f

6、or 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 pa

7、ssword -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 re

8、quest (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 defa

9、ult=1 interface -R retry Set the number of retries for lan/lanplus interface default=4Interfaces:open Linux OpenIPMI Interface defaultimb Intel IMB Interface lan IPMI v1.5 LAN Interface lanplus IPMI v2.0 RMCP+ LAN Interface serial-terminal Serial Interface, Terminal Mode serial-basic Serial Interfac

10、e, Basic Mode usb 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 statepowe

11、r 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 associate

12、d 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-LANisol Configure IPMIv1.5 Serial-over-LANuser Configure Management Controller use

13、rschannel 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 Firmwar

14、e 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 file

15、sime Update Intel Manageability Engine Firmwarevita Run a VITA 46.11 extended cmdlan6 Configure IPv6 LAN Channels3.查看管理口的IP地址rootcell83 # ipmitool -I open lan printrootcell83 # ipmitool -I open lan print | grep IPIP Address Source : Static AddressIP Address : 192.168.0.133IP Header : TTL=0x40 Flags=

16、0x40 Precedence=0x00 TOS=0x10Default Gateway IP : 192.168.0.1Backup Gateway IP : 0.0.0.04.管理底盘chassis配置rootcell83 # ipmitool -I open chassis helpChassis Commands: status, power, identify, policy, restart_cause, poh, bootdev, bootparam, selftest4.1查看底盘配置汇总 rootcell83 # ipmitool -I open chassis status

17、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 allow

18、edDiag Button Disable : allowedReset Button Disable : not allowedPower Button Disable : allowedSleep Button Disabled: falseDiag Button Disabled : trueReset Button Disabled: falsePower Button Disabled: false4.2管理电源查看当前电源状态rootcell83 # ipmitool -I open chassis power statusChassis Power is on打开电源ipmito

19、ol -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管理时间间隔查询时间间隔:rootcell83 # ipmitool -I open chassis identifyChassis identify in

20、terval: default (15 seconds)设置时间间隔:rootcell83 # ipmitool -I open chassis identify helpchassis identify default is 15 seconds 0 to turn off force to turn on indefinitely 4.4管理电源恢复策略rootcell83 # ipmitool -I open chassis policy helpchassis policy list : return supported policies always-on : turn on whe

21、n power is restored previous : return to previous state when power is restored always-off : stay off after power is restored 4.5查看上次重启原因 rootcell83 # ipmitool -I open chassis restart_causeSystem restart cause: unknown 4.6查询上电时间 rootcell83 # ipmitool -I open chassis pohGet Chassis Power-On-Hours fail

22、ed: Invalid command 4.7管理启动项rootcell83 # ipmitool -I open chassis bootdev helpbootdev clear-cmos=yes|nobootdev options=help,. none : Do not change boot device order pxe : Force PXE boot disk : Force boot from default Hard-drive safe : Force boot from default Hard-drive, request Safe Mode diag : Forc

23、e boot from Diagnostic Partition cdrom : Force boot from CD/DVD bios : Force boot into BIOS Setup floppy: Force boot from Floppy/primary removable media 4.8设置启动项的参数rootcell83 # ipmitool -I open chassis bootparam helpbootparam get bootparam set bootflag options=. Legal devices are: none : No override

24、 force_pxe : Force PXE boot force_disk : Force boot from default Hard-drive force_safe : Force boot from default Hard-drive, request Safe Mode force_diag : Force boot from Diagnostic Partition force_cdrom : Force boot from CD/DVD force_bios : Force boot into BIOS Setup Legal options are: help : prin

25、t this message PEF : Clear valid bit on reset/power cycle cause by PEF timeout : Automatically clear boot flag valid bit on timeout watchdog: Clear valid bit on reset/power cycle cause by watchdog reset : Clear valid bit on push button reset/soft reset power : Clear valid bit on power up via power p

26、ush button or wake event Any Option may be prepended with no- to invert sense of operation5.使用delloem进行管理查看帮助rootcell83 # ipmitool -I open delloem helpusage: delloem mands: lcd mac lan setled powermonitor vFlashFor help on individual commands type:delloem help5.1配置lcdrootcell83 # ipmitool -I open de

27、lloem 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| system

28、name|servicetag|ipv6address|ambienttemp systemwatt |assettag|userdefined Allows you to set the LCD display mode to any of the preceding parameters lcd set lcdqualifier watt|btuphr|celsius|fahrenheit Allows you to set the unit for the system ambient temperature mode. lcd set errordisplay sel|simple A

29、llows you to set the error display. lcd info Show LCD text that is displayed during non-fault conditions lcd set vkvmactive|inactive Set vKVM active and inactive, message will be displayed on lcd when vKVM is active and vKVM session is in progress lcd set frontpanelaccess viewandmodify|viewonly|disa

30、bled Set LCD mode to view and modify, view only or disabled lcd status Show LCD Status for vKVM display and Front Panel access mode viewandmodify|viewonly|disabled5.2查看MAC地址rootcell83 # ipmitool -I open delloem mac help mac list Lists the MAC address of LOMs mac get Shows the MAC address of specifie

31、d LOM. 0-7 System LOM, 8- DRAC/iDRAC. rootcell83 # ipmitool -I open delloem mac listSystem LOMsNIC NumberMAC AddressStatus0b8:2a:72:db:56:2aEnabled1b8:2a:72:db:56:2bEnabled2b8:2a:72:db:56:28Enabled3b8:2a:72:db:56:29EnablediDRAC7 MAC Address b0:83:fe:c9:6d:315.3设置lan的模式rootcell83 # ipmitool -I open d

32、elloem lan help lan set sets the NIC Selection Mode : on iDRAC12g OR iDRAC13g : dedicated, shared with lom1, shared with lom2,shared with lom3,shared with lom4,shared with failover lom1,shared with failover lom2,shared with failover lom3,shared with failover lom4,shared with Failover all loms, share

33、d with Failover None). on other systems : dedicated, shared, shared with failover lom2, shared with Failover all loms. lan get on iDRAC12g or iDRAC13g : returns the current NIC Selection Mode (dedicated, shared with lom1, shared with lom2, shared with lom3, shared with lom4,shared with failover lom1

34、, shared with failover lom2,shared with failover lom3,shared with failover lom4,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 active returns the current active NIC (dedicated, LOM1, L

35、OM2, LOM3, LOM4).5.4设置背板led的状态rootcell83 # ipmitool -I open delloem setled help setled Set backplane LED state b:d.f = PCI Bus:Device.Function of drive (lspci format) state = present|online|hotspare|identify|rebuilding| fault|predict|critical|failed 5.5管理电源监控rootcell83 # ipmitool -I open delloem pow

36、ermonitor help powermonitor Shows power tracking statistics powermonitor clear cumulativepower Reset cumulative power reading powermonitor clear peakpower Reset peak power reading powermonitor powerconsumption Displays power consumption in powermonitor powerconsumptionhistory Displays power consumpt

37、ion history powermonitor getpowerbudget Displays power cap in powermonitor setpowerbudget Allows user to set the power cap in powermonitor enablepowercap To enable set power cap powermonitor disablepowercap To disable set power cap 6.查看传感器数据sensorrootcell83 # ipmitool -I open sensor helpSensor Comma

38、nds: list thresh get reading6.1查看当前系统所有的传感器数据rootcell83 # ipmitool -I open sensor list6.2设置传感器的告警阈值rootcell83 # ipmitool -I open sensor thresh helpsensor thresh id : name of the sensor for which threshold is to be set threshold : which threshold to set unr = upper non-recoverable ucr = upper critica

39、l unc = upper non-critical lnc = lower non-critical lcr = lower critical lnr = lower non-recoverable setting : the value to set the threshold tosensor thresh lower Set all lower thresholds at the same timesensor thresh upper Set all upper thresholds at the same time 6.3查看某一传感器的状态信息 rootcell83 # ipmitool -I open sensor get helpsensor get . id id : name of desired sensor 查看温度传感器 rootcell83 # ipmitool -I open sensor get Tem

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 教育专区 > 教案示例

本站为文档C TO C交易模式,本站只提供存储空间、用户上传的文档直接被用户下载,本站只是中间服务平台,本站所有文档下载所得的收益归上传人(含作者)所有。本站仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。若文档所含内容侵犯了您的版权或隐私,请立即通知得利文库网,我们立即给予删除!客服QQ:136780468 微信:18945177775 电话:18904686070

工信部备案号:黑ICP备15003705号-8 |  经营许可证:黑B2-20190332号 |   黑公网安备:91230400333293403D

© 2020-2023 www.deliwenku.com 得利文库. All Rights Reserved 黑龙江转换宝科技有限公司 

黑龙江省互联网违法和不良信息举报
举报电话:0468-3380021 邮箱:hgswwxb@163.com