ipmitool工具常用命令汇总.docx
《ipmitool工具常用命令汇总.docx》由会员分享,可在线阅读,更多相关《ipmitool工具常用命令汇总.docx(22页珍藏版)》请在冰豆网上搜索。
![ipmitool工具常用命令汇总.docx](https://file1.bdocx.com/fileroot1/2023-2/13/c3ff77b5-887a-4d2d-ac1d-b6e0d6b9f286/c3ff77b5-887a-4d2d-ac1d-b6e0d6b9f2861.gif)
ipmitool工具常用命令汇总
ipmitool工具常用命令汇总
1、工具得安装
yuminstall-yOpenIPMIipmitool
开启服务
/etc/init、d/ipmistatus
/etc/init、d/ipmistart
[root@cell83~]#ipmitool-V
ipmitoolversion1、8、18
2、命令得help
明细得命令参考manipmitool
或者附件ipmitool、help
[root@cell83~]#ipmitool-h
ipmitoolversion1、8、18
usage:
ipmitool[options、、、]
-hThishelp
-VShowversioninformation
-vVerbose(canusemultipletimes)
-cDisplayoutputinmaseparatedformat
-dNSpecifya/dev/ipmiNdevicetouse(default=0)
-IintfInterfacetouse
-HhostnameRemotehostnameforLANinterface
-pportRemoteRMCPport[default=623]
-UusernameRemotesessionusername
-ffileReadremotesessionpasswordfromfile
-zsizeChangeSizeofmunicationChannel(OEM)
-SsdrUselocalremoteSDRcache
-Dtty:
b[:
s]Specifytheserialdevice,baudratetouse
and,optionally,specifythatinterfaceisthesystemone
-4UseonlyIPv4
-6UseonlyIPv6
-aPromptforremotepassword
-YPromptfortheKgkeyforIPMIv2authentication
-echarSetSOLescapecharacter
-CciphersuiteCiphersuitetobeusedbylanplusinterface
-kkeyUseKgkeyforIPMIv2authentication
-yhex_keyUsehexadecimal-encodedKgkeyforIPMIv2authentication
-LlevelRemotesessionprivilegelevel[default=ADMINISTRATOR]
Appenda'+'tousename/privilegelookupinRAKP1
-AauthtypeForceuseofauthtypeNONE,PASSWORD,MD2,MD5orOEM
-PpasswordRemotesessionpassword
-EReadpasswordfromIPMI_PASSWORDenvironmentvariable
-KReadkgkeyfromIPMI_KGKEYenvironmentvariable
-maddressSetlocalIPMBaddress
-bchannelSetdestinationchannelforbridgedrequest
-taddressBridgerequesttoremotetargetaddress
-BchannelSettransitchannelforbridgedrequest(dualbridge)
-TaddressSettransitaddressforbridgerequest(dualbridge)
-llunSetdestinationlunforrawmands
-ooemtypeSetupforOEM(use'list'toseeavailableOEMtypes)
-OseloemUseOEMSELeventdescriptions
-NsecondsSpecifytimeoutforlan[default=2]/lanplus[default=1]interface
-RretrySetthenumberofretriesforlan/lanplusinterface[default=4]
Interfaces:
openLinuxOpenIPMIInterface[default]
imbIntelIMBInterface
lanIPMIv1、5LANInterface
lanplusIPMIv2、0RMCP+LANInterface
serial-terminalSerialInterface,TerminalMode
serial-basicSerialInterface,BasicMode
usbIPMIUSBInterface(OEMInterfaceforAMIDevices)
mands:
rawSendaRAWIPMIrequestandprintresponse
i2cSendanI2CMasterWrite-Readmandandprintresponse
spdPrintSPDinfofromremoteI2Cdevice
lanConfigureLANChannels
chassisGetchassisstatusandsetpowerstate
powerShortcuttochassispowermands
eventSendpre-definedeventstoMC
mcManagementControllerstatusandglobalenables
sdrPrintSensorDataRepositoryentriesandreadings
sensorPrintdetailedsensorinformation
fruPrintbuilt-inFRUandscanSDRforFRUlocators
gendevRead/WriteDeviceassociatedwithGenericDevicelocatorssdr
selPrintSystemEventLog(SEL)
pefConfigurePlatformEventFiltering(PEF)
solConfigureandconnectIPMIv2、0Serial-over-LAN
tsolConfigureandconnectwithTyanIPMIv1、5Serial-over-LAN
isolConfigureIPMIv1、5Serial-over-LAN
userConfigureManagementControllerusers
channelConfigureManagementControllerchannels
sessionPrintsessioninformation
dcmiDataCenterManagementInterface
nmNodeManagerInterface
sunoemOEMmandsforSunservers
kontronoemOEMmandsforKontrondevices
picmgRunaPICMG/ATCAextendedcmd
fwumUpdateIPMCusingKontronOEMFirmwareUpdateManager
firewallConfigureFirmwareFirewall
delloemOEMmandsforDellsystems
shellLaunchinteractiveIPMIshell
execRunlistofmandsfromfile
setSetruntimevariableforshellandexec
hpmUpdateHPMponentsusingPICMGHPM、1file
ekanalyzerrunFRU-EkeyinganalyzerusingFRUfiles
imeUpdateIntelManageabilityEngineFirmware
vitaRunaVITA46、11extendedcmd
lan6ConfigureIPv6LANChannels
3、查瞧管理口得IP地址
[root@cell83~]#ipmitool-Iopenlanprint
[root@cell83~]#ipmitool-Iopenlanprint|grepIP
IPAddressSource:
StaticAddress
IPAddress:
192、168、0、133
IPHeader:
TTL=0x40Flags=0x40Precedence=0x00TOS=0x10
DefaultGatewayIP:
192、168、0、1
BackupGatewayIP:
0、0、0、0
4、管理底盘chassis配置
[root@cell83~]#ipmitool-Iopenchassishelp
Chassismands:
status,power,identify,policy,restart_cause,poh,bootdev,bootparam,selftest
4、1查瞧底盘配置汇总
[root@cell83~]#ipmitool-Iopenchassisstatus
SystemPower:
on
PowerOverload:
false
PowerInterlock:
inactive
MainPowerFault:
false
PowerControlFault:
false
PowerRestorePolicy:
previous
LastPowerEvent:
ChassisIntrusion:
inactive
Front-PanelLockout:
inactive
DriveFault:
false
Cooling/FanFault:
false
SleepButtonDisable:
notallowed
DiagButtonDisable:
allowed
ResetButtonDisable:
notallowed
PowerButtonDisable:
allowed
SleepButtonDisabled:
false
DiagButtonDisabled:
true
ResetButtonDisabled:
false
PowerButtonDisabled:
false
4、2管理电源
查瞧当前电源状态
[root@cell83~]#ipmitool-Iopenchassispowerstatus
ChassisPowerison
打开电源
ipmitool-Iopenchassispoweron
关闭电源
ipmitool-Iopenchassispoweroff
重启电源
ipmitool-Iopenchassispowercycle
重置电源
ipmitool-Iopenchassispowerreset
其她配置
ipmitool-Iopenchassispowerdiag
ipmitool-Iopenchassispowersoft
4、3管理时间间隔
查询时间间隔:
[root@cell83~]#ipmitool-Iopenchassisidentify
Chassisidentifyinterval:
default(15seconds)
设置时间间隔:
[root@cell83~]#ipmitool-Iopenchassisidentifyhelp
chassisidentify
defaultis15seconds
0toturnoff
forcetoturnonindefinitely
4、4管理电源恢复策略
[root@cell83~]#ipmitool-Iopenchassispolicyhelp
chassispolicy
list:
returnsupportedpolicies
always-on:
turnonwhenpowerisrestored
previous:
returntopreviousstatewhenpowerisrestored
always-off:
stayoffafterpowerisrestored
4、5查瞧上次重启原因
[root@cell83~]#ipmitool-Iopenchassisrestart_cause
Systemrestartcause:
unknown
4、6查询上电时间
[root@cell83~]#ipmitool-Iopenchassispoh
GetChassisPower-On-Hoursfailed:
Invalidmand
4、7管理启动项
[root@cell83~]#ipmitool-Iopenchassisbootdevhelp
bootdev[clear-cmos=yes|no]
bootdev[options=help,、、、]
none:
Donotchangebootdeviceorder
pxe:
ForcePXEboot
disk:
ForcebootfromdefaultHard-drive
safe:
ForcebootfromdefaultHard-drive,requestSafeMode
diag:
ForcebootfromDiagnosticPartition
cdrom:
ForcebootfromCD/DVD
bios:
ForcebootintoBIOSSetup
floppy:
ForcebootfromFloppy/primaryremovablemedia
4、8设置启动项得参数
[root@cell83~]#ipmitool-Iopenchassisbootparamhelp
bootparamget
bootparamsetbootflag[options=、、、]
Legaldevicesare:
none:
Nooverride
force_pxe:
ForcePXEboot
force_disk:
ForcebootfromdefaultHard-drive
force_safe:
ForcebootfromdefaultHard-drive,requestSafeMode
force_diag:
ForcebootfromDiagnosticPartition
force_cdrom:
ForcebootfromCD/DVD
force_bios:
ForcebootintoBIOSSetup
Legaloptionsare:
help:
printthismessage
PEF:
Clearvalidbitonreset/powercyclecausebyPEF
timeout:
Automaticallyclearbootflagvalidbitontimeout
watchdog:
Clearvalidbitonreset/powercyclecausebywatchdog
reset:
Clearvalidbitonpushbuttonreset/softreset
power:
Clearvalidbitonpowerupviapowerpushbuttonorwakeevent
AnyOptionmaybeprependedwithno-toinvertsenseofoperation
5、使用delloem进行管理
查瞧帮助
[root@cell83~]#ipmitool-Iopendelloemhelp
usage:
delloem[option、、、]
mands:
lcd
mac
lan
setled
powermonitor
vFlash
Forhelponindividualmandstype:
delloemhelp
5、1配置lcd
[root@cell83~]#ipmitool-Iopendelloemlcdhelp
GenericDELLHW:
lcdset{none}|{default}|{custom}
SetLCDtextdisplayedduringnon-faultconditions
iDRAC11goriDRAC12goriDRAC13g:
lcdset{mode}|{lcdqualifier}|{errordisplay}
AllowsyoutosettheLCDmodeanduser-definedstring、
lcdsetmode{none}|{modelname}|{ipv4address}|{macaddress}|
{systemname}|{servicetag}|{ipv6address}|{ambienttemp}
{systemwatt}|{assettag}|{userdefined}
AllowsyoutosettheLCDdisplaymodetoanyofthepreceding
parameters
lcdsetlcdqualifier{watt}|{btuphr}|{celsius}|{fahrenheit}
Allowsyoutosettheunitforthesystemambienttemperaturemode、
lcdseterrordisplay{sel}|{simple}
Allowsyoutosettheerrordisplay、
lcdinfo
ShowLCDtextthatisdisplayedduringnon-faultconditions
lcdsetvkvm{active}|{inactive}
SetvKVMactiveandinactive,messagewillbedisplayedonlcd
whenvKVMisactiveandvKVMsessionisinprogress
lcdsetfrontpanelaccess{viewandmodify}|{viewonly}|{disabled}
SetLCDmodetoviewandmodify,viewonlyordisabled
lcdstatus
ShowLCDStatusforvKVMdisplay
andFrontPanelaccessmode{viewandmodify}|{viewonly}|{disabled}
5、2查瞧MAC地址
[root@cell83~]#ipmitool-Iopendelloemmachelp
maclist
ListstheMACaddressofLOMs
macget
ShowstheMACaddressofspecifiedLOM、0-7SystemLOM,8-DRAC/iDRAC、
[root@cell83~]#ipmitool-Iopendelloemmaclist
SystemLOMs
NICNumberMACAddressStatus
0b8:
2a:
72:
db:
56:
2aEnabled
1b8:
2a:
72:
db:
56:
2bEnabled
2b8:
2a:
72:
db:
56:
28Enabled
3b8:
2a:
72:
db:
56:
29Enabled
iDRAC7MACAddressb0:
83:
fe:
c9:
6d:
31
5、3设置lan得模式
[root@cell83~]#ipmitool-Iopendelloemlanhelp
lanset
setstheNICSelectionMode:
oniDRAC12gORiDRAC13g:
dedicated,sharedwithlom1,sharedwithlom2,sharedwithlom3,shared
withlom4,sharedwithfailoverlom1,sharedwithfailoverlom2,shared
withfailoverlom3,sharedwithfailoverlom4,sharedwithFailoverall