ipmitool工具常用命令匯總_第1頁
ipmitool工具常用命令匯總_第2頁
ipmitool工具常用命令匯總_第3頁
ipmitool工具常用命令匯總_第4頁
ipmitool工具常用命令匯總_第5頁
已閱讀5頁,還剩28頁未讀 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡(jiǎn)介

1、ipmitool工具常用命令匯總目錄1.工具的安裝 .32.命令的 help .33.查看管理口的 IP地址 .54.管理底盤 chassis配置 .64.1查看底盤配置匯總 .64.2管理電源 .64.3管理時(shí)間間隔.74.4管理電源恢復(fù)策略 .74.5查看上次重啟原因 .74.6查詢上電時(shí)間.84.7管理啟動(dòng)項(xiàng) .84.8設(shè)置啟動(dòng)項(xiàng)的參數(shù) .85.使用 delloem 進(jìn)行管理 .95.1配置 lcd .95.2查看 MAC地址.105.3設(shè)置 lan 的模式 .115.4設(shè)置背板 led的狀態(tài) .115.5管理電源監(jiān)控.126.查看傳感器數(shù)據(jù) sensor .126.1查看當(dāng)前系統(tǒng)所有的

2、傳感器數(shù)據(jù) .136.2設(shè)置傳感器的告警閾值 .136.3查看某一傳感器的狀態(tài)信息 .136.4查看某一個(gè)傳感器的當(dāng)前值 .147.管理傳感器倉庫 sdr .147.1查看傳感器倉庫中的信息列表 .157.2查看傳感器的類型和指定類型的數(shù)據(jù).167.3查看指定傳感器的配置信息 .177.4查看傳感器倉庫 sdr 的配置信息 .188. 查看系統(tǒng)事件sel 日志 .188.1 查看 sel 的狀態(tài)信息188.2 查看 sel 的中的日志信息191. 工具的安裝yum install -y OpenIPMI ipmitool開啟服務(wù)/etc/init.d/ipmi status/etc/init.

3、d/ipmi startrootcell83 # ipmitool -Vipmitool version 1.8.182. 命令的 help明細(xì)的命令參考man ipmitool或者附件 ipmitool.helprootcell83 # ipmitool -hipmitool version 1.8.18usage: ipmitool options. -hThis help-VShow version information-vVerbose (can use multiple times)-cDisplay output in comma separated format-d NSpec

4、ify a /dev/ipmiN device to use (default=0)-I intfInterface to use-H hostnameRemote host name for LAN interface-p portRemote RMCP port default=623-U usernameRemote session username-f fileRead remote session password from file-z sizeChange Size of Communication Channel (OEM)-S sdrUse local remote SDR

5、cache-D tty:b:s Specify the serial device, baud rate to useand, optionally, specify that interface is the systemone-4Use only IPv4-6Use only IPv6-aPrompt for remote password-YPrompt for the Kg key for IPMIv2 authentication-e charSet SOL escape character-C ciphersuite Cipher suite to be used by lanpl

6、us interface-k keyUse Kg key for IPMIv2 authentication-yhex_keyUsehexadecimal-encodedKg keyforIPMIv2authentication-L levelRemote session privilege level default=ADMINISTRATORAppend a + to use name/privilege lookup in RAKP1-A authtypeForce use of auth type NONE, PASSWORD, MD2, MD5 or OEM-P passwordRe

7、mote session password-ERead password from IPMI_PASSWORD environment variable-KRead kgkey from IPMI_KGKEY environment variable-m addressSet local IPMB address-b channelSet destination channel for bridged request-t addressBridge request to remote target address-B channelSet transit channel for bridged

8、 request (dual bridge)-T addressSet transit address for bridge request (dual bridge)-l lunSet destination lun for raw commands-o oemtypeSetup for OEM (use list to see available OEM types)-O seloemUse OEM SEL event descriptions-NsecondsSpecifytimeout for landefault=2/lanplusdefault=1 interface-R retr

9、ySet the number of retries for lan/lanplus interfacedefault=4Interfaces:openLinux OpenIPMI Interface defaultimbIntel IMB InterfacelanIPMI v1.5 LAN InterfacelanplusIPMI v2.0 RMCP+ LAN Interfaceserial-terminal Serial Interface, Terminal Modeserial-basicSerial Interface, Basic ModeusbIPMI USB Interface

10、(OEM Interface for AMI Devices)Commands:rawSend a RAW IPMI request and print responsei2cSend an I2C Master Write-Read command and print responsespdPrint SPD info from remote I2C devicelanConfigure LAN ChannelschassisGet chassis status and set power statepowerShortcut to chassis power commandseventSe

11、nd pre-defined events to MCmcManagement Controller status and global enablessdrPrint Sensor Data Repository entries and readingssensorPrint detailed sensor informationfruPrint built-in FRU and scan SDR for FRU locatorsgendevRead/Write Device associated with Generic Device locatorssdrselPrint System

12、Event Log (SEL)pefConfigure Platform Event Filtering (PEF)solConfigure and connect IPMIv2.0 Serial-over-LANtsolConfigure and connect with Tyan IPMIv1.5 Serial-over-LANisolConfigure IPMIv1.5 Serial-over-LANuserConfigure Management Controller userschannelConfigure Management Controller channelssession

13、Print session informationdcmiData Center Management InterfacenmNode Manager InterfacesunoemOEM Commands for Sun serverskontronoemOEM Commands for Kontron devicespicmgRun a PICMG/ATCA extended cmdfwumUpdate IPMC using Kontron OEM Firmware Update ManagerfirewallConfigure Firmware FirewalldelloemOEM Co

14、mmands for Dell systemsshellLaunch interactive IPMI shellexecRun list of commands from filesetSet runtime variable for shell and exechpmUpdate HPM components using PICMG HPM.1 fileekanalyzerrun FRU-Ekeying analyzer using FRU filesimeUpdate Intel Manageability Engine FirmwarevitaRun a VITA 46.11 exte

15、nded cmdlan6Configure IPv6 LAN Channels3. 查看管理口的 IP 地址rootcell83 # ipmitool -I open lan printrootcell83 # ipmitool -I open lan print | grep IPIP Address Source: Static AddressIP Address: 33IP Header: TTL=0x40 Flags=0x40 Precedence=0x00 TOS=0x10Default Gateway IP: Backup Gateway

16、 IP: 4. 管理底盤chassis配置rootcell83 # ipmitool -I open chassis helpChassisCommands:status,power,identify,policy,restart_cause,poh,bootdev, bootparam, selftest4.1 查看底盤配置匯總rootcell83 # ipmitool -I open chassis statusSystem Power: onPower Overload: falsePower Interlock: inactiveMain Power Fault: fal

17、sePower Control Fault : falseLast 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: false

18、Diag Button Disabled : trueReset Button Disabled: falsePower Button Disabled: false4.2 管理電源查看當(dāng)前電源狀態(tài)rootcell83 # ipmitool -I open chassis power statusChassis Power is on打開電源ipmitool -I open chassis power on關(guān)閉電源ipmitool -I open chassis power off重啟電源ipmitool -I open chassis power cycle重置電源ipmitool -I o

19、pen chassis power reset其他配置ipmitool -I open chassis power diagipmitool -I open chassis power soft4.3 管理時(shí)間間隔查詢時(shí)間間隔:rootcell83 # ipmitool -I open chassis identifyChassis identify interval: default (15 seconds)設(shè)置時(shí)間間隔:rootcell83 # ipmitool -I open chassis identify helpchassis identify default is 15 seco

20、nds0 to turn offforce to turn on indefinitely4.4 管理電源恢復(fù)策略rootcell83 # ipmitool -I open chassis policy helpchassis policy list: return supported policiesalways-on: turn on when power is restoredprevious: return to previous state when power is restoredalways-off : stay off after power is restored4.5 查

21、看上次重啟原因rootcell83 # ipmitool -I open chassis restart_causeSystem restart cause: unknown4.6 查詢上電時(shí)間rootcell83 # ipmitool -I open chassis pohGet Chassis Power-On-Hours failed: Invalid command4.7 管理啟動(dòng)項(xiàng)rootcell83 # ipmitool -I open chassis bootdev helpbootdev clear-cmos=yes|nobootdev options=help,.none :

22、 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 rem

23、ovable media4.8 設(shè)置啟動(dòng)項(xiàng)的參數(shù)rootcell83 # ipmitool -I open chassis bootparam helpbootparam get bootparam 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_d

24、iag: 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

25、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 eventAny Option may be prepended with no- to invert sense of operation5. 使用 delloem 進(jìn)行管理查看幫助rootcell83 # ipmitool -I open delloem helpusage: dello

26、em mands:lcdmaclansetledpowermonitorvFlashFor help on individual commands type:delloem help5.1 配置 lcdrootcell83 # 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

27、|lcdqualifier|errordisplayAllows you to set the LCD mode and user-defined string.lcd set mode none|modelname|ipv4address|macaddress| systemname|servicetag|ipv6address|ambienttemp systemwatt |assettag|userdefinedAllows you to set the LCD display mode to any of the preceding parameterslcd set lcdquali

28、fier watt|btuphr|celsius|fahrenheitAllows you to set the unit for the system ambient temperature mode.lcd set errordisplay sel|simpleAllows you to set the error display.lcd infoShow LCD text that is displayed during non-fault conditionslcd set vkvmactive|inactiveSet vKVM active and inactive, message

29、 will be displayed on lcd when 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|disabled5.2 查看 MAC地

30、址rootcell83 # ipmitool -I open delloem mac helpmac listLists the MAC address of LOMsmac get Shows the MAC address of specified LOM. 0-7 System LOM, 8- DRAC/iDRAC.rootcell83 # ipmitool -I open delloem mac listSystem LOMsNIC Number MAC AddressStatus0b8:2a:72:db:56:2aEnabled1b8:2a:72:db:56:2bEnabled2b8

31、:2a:72:db:56:28Enabled3b8:2a:72:db:56:29EnablediDRAC7 MAC Address b0:83:fe:c9:6d:315.3 設(shè)置 lan 的模式rootcell83 # ipmitool -I open delloem lan helplan set sets the NIC Selection Mode :on iDRAC12g OR iDRAC13g :dedicated, shared with lom1, shared with lom2,shared with lom3,sharedwithlom4,sharedwithfailove

32、rlom1,sharedwithfailoverlom2,sharedwithfailoverlom3,sharedwithfailoverlom4,sharedwithFailover 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 (dedic

33、ated, shared with lom1, sharedwithlom2,sharedwithlom3,sharedwithlom4,sharedwithfailover lom1,shared with failover lom2,shared with failover lom3,shared withfailoverlom4,shared with Failover all loms,shared with Failover None).on other systems :dedicated, shared, shared with failover,lom2, shared wit

34、h Failover all loms.lan get activereturns the current active NIC (dedicated, LOM1, LOM2, LOM3, LOM4).5.4 設(shè)置背板 led 的狀態(tài)rootcell83 # ipmitool -I open delloem setled helpsetled Set backplane LED stateb:d.f = PCI Bus:Device.Function of drive (lspci format)state = present|online|hotspare|identify|rebuildi

35、ng|fault|predict|critical|failed5.5 管理電源監(jiān)控rootcell83 # ipmitool -I open delloem powermonitor helppowermonitorShows power tracking statisticspowermonitor clear cumulativepowerReset cumulative power readingpowermonitor clear peakpowerReset peak power readingpowermonitor powerconsumptionDisplays power

36、consumption in powermonitor powerconsumptionhistory Displays power consumption historypowermonitor getpowerbudgetDisplays power cap in powermonitor setpowerbudget Allows user to set the power cap in powermonitor enablepowercapTo enable set power cappowermonitor disablepowercapTo disable set power ca

37、p6. 查看傳感器數(shù)據(jù) sensorrootcell83 # ipmitool -I open sensor helpSensor Commands: list thresh get reading6.1 查看當(dāng)前系統(tǒng)所有的傳感器數(shù)據(jù)rootcell83 # ipmitool -I open sensor list6.2 設(shè)置傳感器的告警閾值rootcell83 # ipmitool -I open sensor thresh helpsensor thresh id: name of the sensor for which threshold is to be setthreshold :

38、 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 lower Set all lower thresholds at the same timesensor thresh upper Set all upper thresholds at the same time6.3 查看某一傳感器的狀態(tài)信息rootcell83 # ipmitool -I open sensor get helpsensor get . idid: name of desired sensor查看溫度傳感器rootcell83 # ipmitool -I open sensor get TempLocating sensor re

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。

最新文檔

評(píng)論

0/150

提交評(píng)論