ipmitool常⽤命令详解
ipmitool命令
ipmitool –I [open|lan|lanplus] command
OpenIPMI接⼝,command有以下项:
raw:发送⼀个原始的IPMI请求,并且打印回复信息。
lan:配置⽹络(lan)信道(channel)
chassis :查看底盘的状态和设置电源
ant怎么读event:向BMC发送⼀个已经定义的事件(event),可⽤于测试配置的SNMP是否成功
mc:查看MC(Management Contollor)状态和各种允许的项
sdr:打印传感器仓库中的所有监控项和从传感器读取到的值。
nsor:打印详细的传感器信息。
fru:打印内建的Field Replaceable Unit (FRU)信息
l: 打印 System Event Log (SEL)
pef:设置 Platform Event Filtering (PEF),事件过滤平台⽤于在监控系统发现有event时候,⽤PEF中的策略进⾏事件过滤,然后看是否需要报警。
sol/isol:⽤于配置通过串⼝的Lan进⾏监控
英语同声翻译ur:设置BMC中⽤户的信息 。
channel:设置Management Controller信道。
ipmitool chassis
ipmitool chassis
ipmitool chassis identify #蓝⾊uid指⽰灯,直接执⾏命令,只能维持15秒
ipmitool chassis status
System Power : on #开机状态
Power Overload : fal #是否过载
Power Interlock : inactive
Main Power Fault : fal #主电源是否故障
Power Control Fault : fal
Power Restore Policy : always-on #上电后机器的响应状态
Last Power Event : command
Chassis Intrusion : inactive
Front-Panel Lockout : inactive
onpurpoDrive Fault : fal #是否有硬盘告警
Cooling/Fan Fault : fal #是否存在风扇告警
Sleep Button Disable : allowed
Diag Button Disable : allowed
Ret Button Disable : allowed
Power Button Disable : allowed
Sleep Button Disabled: fal
Diag Button Disabled : fal
Ret Button Disabled: fal
Power Button Disabled: fal
ipmitool chassis bootdev pxe #下次启动默认从⽹卡启动,只⼀次有效ipmitool chassis bootdev disk #下次启动默认从硬盘启动
ipmitool chassis bootdev pxe options=persistent #永久⽣效ipmitool chassis power status | on |ret
nsor查看
ipmitool nsor
fru读取和设置
ipmitool fruoutofreach
ipmitool fru edit
ipmitol ur 命令
查看⽤户
ipmitool ur list
添加⽤户
ipmitool ur t name 4 abcd #新增⽤户abcd
设置密码
ipmitool ur t password 4 wifi@LS123 enable/disable⽤户
ipmitool ur enable 4
猴子英文怎么写channel参数
命令使⽤:
查看指定⽤户权限
修改权限
ipmitool channel taccess 2 "4" privilege=4 ipmi=on link=on callin=on
mc参数
ipmitool mc info #查看bmc固件版本
ipmitool mc ret cold #重启bmc
lan参数
查看⽹络信息
ipmitool lan print
Set in Progress : Set Complete
Auth Type Support : MD5
Auth Type Enable : Callback : MD5
: Ur : MD5
: Operator : MD5
: Admin : MD5
: OEM : MD5
实时翻译
IP Address Source : DHCP Address
IP Address :
Subnet Mask :
MAC Address :
SNMP Community String : AMI
IP Header : TTL=0x40 Flags=0x40 Precedence=0x00 TOS=0x10 BMC ARP Control : ARP Respons Enabled, Gratuitous ARP Disabled Gratituous ARP Intrvl : 0.0 conds
Default Gateway IP : 10.3.67.254
Default Gateway MAC : 00:00:00:00:00:00
Backup Gateway IP : 0.0.0.0
西安培训机构Backup Gateway MAC : 00:00:00:00:00:00
802.1q VLAN ID : Disabled
802.1q VLAN Priority : 0
RMCP+ Cipher Suites : 0,1,2,3,6,7,8,11,12,15,16,17
Cipher Suite Priv Max : caaaaaaaaaaaXXX
: X=Cipher Suite Unud
: c=CALLBACK
产品经理设计培训: u=USER
: o=OPERATOR
: a=ADMIN
: O=OEM
韩文歌曲修改IP为静态还是DHCP模式
ipmitool lan t 1 ipsrc dhcp | static
修改IP地址
ipmitool lan t <ChannelNo> ipaddr <IPAddress>
# ipmitool lan t 1 ipaddr 192.168.2.60
修改⼦⽹掩码
ipmitool lan t <ChannelNo> netmask <NetMask>
# ipmitool lan t 1 netmask 255.255.0.0
修改默认⽹关
ipmitool lan t <ChannelNo> defgw ipaddr <Gateway >laydown
# ipmitool lan t 1 defgw ipaddr 192.168.2.1
问题:
ipmitool lan t 1 ipsrc static
Channel 1 is not a LAN channel!
解决⽅法:帮助确认查找channel