执行ipmitool命令的时候提示:Could not open device at /dev/ipmi0...

1、问题:
执行ipmitool命令的时候提示“
Could not open device at /dev/ipmi0 or /dev/ipmi/0 or /dev/ipmidev/0: No such file or directory”
2、诊断:
缺少相关模块
3、解决:
更新ipmi的rpm包之后,需要加载模块

[root@ ~]# yum install ipmi*
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
Redhat-7.4                                                                                                                                                                                                                                             | 2.9 kB  00:00:00     
Resolving Dependencies
--> Running transaction check
---> Package ipmitool.x86_64 0:1.8.18-5.el7 will be installed
--> Processing Dependency: OpenIPMI-modalias for package: ipmitool-1.8.18-5.el7.x86_64
--> Running transaction check
---> Package OpenIPMI-modalias.x86_64 0:2.0.19-15.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

==============================================================================================================================================================================================================================================================================
 Package                                                                Arch                                                        Version                                                             Repository                                                       Size
==============================================================================================================================================================================================================================================================================
Installing:
 ipmitool                                                               x86_64                                                      1.8.18-5.el7                                                        Redhat-7.4                                                      441 k
Installing for dependencies:
 OpenIPMI-modalias                                                      x86_64                                                      2.0.19-15.el7                                                       Redhat-7.4                                                       15 k

Transaction Summary
==============================================================================================================================================================================================================================================================================
Install  1 Package (+1 Dependent package)

Total download size: 456 k
Installed size: 1.5 M
Is this ok [y/d/N]: y
Downloading packages:
(1/2): OpenIPMI-modalias-2.0.19-15.el7.x86_64.rpm                                                                                                                                                                                                      |  15 kB  00:00:00     
(2/2): ipmitool-1.8.18-5.el7.x86_64.rpm                                                                                                                                                                                                                | 441 kB  00:00:00     
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                                                                                                                         6.1 MB/s | 456 kB  00:00:00     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : OpenIPMI-modalias-2.0.19-15.el7.x86_64                                                                                                                                                                                                                     1/2 
  Installing : ipmitool-1.8.18-5.el7.x86_64                                                                                                                                                                                                                               2/2 
  Verifying  : ipmitool-1.8.18-5.el7.x86_64                                                                                                                                                                                                                               1/2 
  Verifying  : OpenIPMI-modalias-2.0.19-15.el7.x86_64                                                                                                                                                                                                                     2/2 

Installed:
  ipmitool.x86_64 0:1.8.18-5.el7                                                                                                                                                                                                                                              

Dependency Installed:
  OpenIPMI-modalias.x86_64 0:2.0.19-15.el7                                                                                                                                                                                                                                    

Complete!
[root@ ~]#ipmitool
Could not open device at /dev/ipmi0 or /dev/ipmi/0 or /dev/ipmidev/0: No such file or directory
[root@ ~]#  lsmod | grep ipmi
[root@ ~]# 
[root@ ~]# 
[root@ ~]# modprobe ipmi_watchdog;modprobe ipmi_poweroff;modprobe ipmi_devintf;modprobe ipmi_si;modprobe ipmi_msghandler
[root@ ~]# lsmod | grep ipmi
ipmi_si                53456  2 
ipmi_poweroff          14366  0 
ipmi_watchdog          25058  0 
ipmi_devintf           17572  0 
ipmi_msghandler        46608  4 ipmi_devintf,ipmi_poweroff,ipmi_watchdog,ipmi_si
[root@ ~]# ipmitool 
No command provided!
Commands:
	raw           Send a RAW IPMI request and print response
	i2c           Send an I2C Master Write-Read command and print response
	spd           Print SPD info from remote I2C device
	lan           Configure LAN Channels
	chassis       Get chassis status and set power state
	power         Shortcut to chassis power commands
	event         Send pre-defined events to MC
	mc            Management Controller status and global enables
	sdr           Print Sensor Data Repository entries and readings
	sensor        Print detailed sensor information
	fru           Print built-in FRU and scan SDR for FRU locators
	gendev        Read/Write Device associated with Generic Device locators sdr
	sel           Print System Event Log (SEL)
	pef           Configure Platform Event Filtering (PEF)
	sol           Configure and connect IPMIv2.0 Serial-over-LAN
	tsol          Configure and connect with Tyan IPMIv1.5 Serial-over-LAN
	isol          Configure IPMIv1.5 Serial-over-LAN
	user          Configure Management Controller users
	channel       Configure Management Controller channels
	session       Print session information
	dcmi          Data Center Management Interface
	nm            Node Manager Interface
	sunoem        OEM Commands for Sun servers
	kontronoem    OEM Commands for Kontron devices
	picmg         Run a PICMG/ATCA extended cmd
	fwum          Update IPMC using Kontron OEM Firmware Update Manager
	firewall      Configure Firmware Firewall
	delloem       OEM Commands for Dell systems
	shell         Launch interactive IPMI shell
	exec          Run list of commands from file
	set           Set runtime variable for shell and exec
	hpm           Update HPM components using PICMG HPM.1 file
	ekanalyzer    run FRU-Ekeying analyzer using FRU files
	ime           Update Intel Manageability Engine Firmware
	vita          Run a VITA 46.11 extended cmd
	lan6          Configure IPv6 LAN Channels

增加管理用户(重置IPMI账号密码):
登录Linux系统后台:
ipmitool user set name 2 root;ipmitool user set password 2 123456;ipmitool user list 1
  • 7
    点赞
  • 27
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值