ipmitool工具常用命令汇总情况.docx
《ipmitool工具常用命令汇总情况.docx》由会员分享,可在线阅读,更多相关《ipmitool工具常用命令汇总情况.docx(23页珍藏版)》请在冰豆网上搜索。
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)
-cDisplayoutputincommaseparatedformat
-dNSpecifya/dev/ipmiNdevicetouse(default=0)
-IintfInterfacetouse
-HhostnameRemotehostnameforLANinterface
-pportRemoteRMCPport[default=623]
-UusernameRemotesessionusername
-ffileReadremotesessionpasswordfromfile
-zsizeChangeSizeofCommunicationChannel(OEM)
-SsdrUselocalfileforremoteSDRcache
-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)
-llunSetdestinationlunforrawcommands
-ooemtypeSetupforOEM(use'list'toseeavailableOEMtypes)
-OseloemUsefileforOEMSELeventdescriptions
-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)
Commands:
rawSendaRAWIPMIrequestandprintresponse
i2cSendanI2CMasterWrite-Readcommandandprintresponse
spdPrintSPDinfofromremoteI2Cdevice
lanConfigureLANChannels
chassisGetchassisstatusandsetpowerstate
powerShortcuttochassispowercommands
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
sunoemOEMCommandsforSunservers
kontronoemOEMCommandsforKontrondevices
picmgRunaPICMG/ATCAextendedcmd
fwumUpdateIPMCusingKontronOEMFirmwareUpdateManager
firewallConfigureFirmwareFirewall
delloemOEMCommandsforDellsystems
shellLaunchinteractiveIPMIshell
execRunlistofcommandsfromfile
setSetruntimevariableforshellandexec
hpmUpdateHPMcomponentsusingPICMGHPM.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
ChassisCommands:
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:
Invalidcommand
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...]
commands:
lcd
mac
lan
setled
powermonitor
vFlash
Forhelponindividualcommandstype:
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,sharedwithfailov