首页 > 其他分享 >执行ipmitool命令的时候提示:Could not open device at /dev/ipmi0...

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

时间:2023-12-28 10:36:54浏览次数:33  
标签:... 00 ipmitool x86 ipmi Could 64 el7


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


标签:...,00,ipmitool,x86,ipmi,Could,64,el7
From: https://blog.51cto.com/u_12484226/9010231

相关文章

  • 新火种AI|抖音对AIGC亮明牌!AI虚拟人带货或将面临最大危机...
    作者:小岩编辑:小迪12月19日,抖音官方发布了一则重要公告,宣布将严厉打击包括AIGC在内的6种新型违规行为。所谓AIGC,指的就是当下发展势头正劲的生成式人工智能。之所以要打击AIGC,其实是为了重点打击新型养号行为。抖音志在打击黑灰产,而AIGC造假成了绕不过去的“路障”。事实上,抖音此次......
  • 记录--try...catch知识补全
    这里给大家分享我在网上总结出来的一些知识,希望对大家有所帮助说到try...catch都觉得非常熟悉了,不就是用来捕捉代码块中的错误嘛,平时也用得比较多的。然而因为了解不够多,我的面试却栽在了一个简单的知识点上:try...catch只能捕捉到同步执行代码块中的错误。题目是:以下代码有错......
  • js一道try...catch的面试题
    说到try...catch都觉得非常熟悉了,不就是用来捕捉代码块中的错误嘛,平时也用得比较多的。然而因为了解不够多,我的面试却栽在了一个简单的知识点上:try...catch只能捕捉到同步执行代码块中的错误。题目是:以下代码有错吗?如果有错,应该如何改正?try{setTimeout(()=>{thrown......
  • nested exception is org.apache.ibatis.type.TypeException: Could not set paramete
    org.mybatis.spring.MyBatisSystemException:nestedexceptionisorg.apache.ibatis.type.TypeException:Couldnotsetparametersformapping:ParameterMapping{property='name',mode=IN,javaType=classjava.lang.String,jdbcType=null,numericScale=nu......
  • 今年,北美技术行业已有24w人被裁....
    北美tech裁员愈演愈烈!根据Layoffs.fyi的统计,今年已经有1059家科技企业裁员,裁员人数高达24万人。麻了!亚麻裁到了盈利部门亚麻又传出裁员的新消息。让人惊掉下巴的是,这一次竟然向盈利部门—广告部开刀了,可见处境真得很艰难!还不止,有消息称将继续裁减Alexa语音助手业务部门数百个岗位,把......
  • 常见的网页错误代码:404、405、500......解析
    1、400  请求出错(服务器无法理解用户的请求):可能输入格式有误,服务器无法理解我们想要表达什么 比如:①有可能是前端请求时参数拼接有问题②有可能时前端传给后端的参数类型与后端接收的参数类型不匹配,比如前端传String,后端用Integer接收,③有可能是后端的实体类没有配置无参构......
  • C 语言教程:条件和 if...else 语句
    C语言中的条件和if...else语句您已经学习过C语言支持数学中的常见逻辑条件:小于:a<b小于或等于:a<=b大于:a>b大于或等于:a>=b等于:a==b不等于:a!=b您可以使用这些条件来根据不同的决策执行不同的操作。C语言具有以下条件语句:使用if来指定要执行的代码块,......
  • C 语言教程:条件和 if...else 语句
    C语言中的条件和if...else语句您已经学习过C语言支持数学中的常见逻辑条件:小于:a<b小于或等于:a<=b大于:a>b大于或等于:a>=b等于:a==b不等于:a!=b您可以使用这些条件来根据不同的决策执行不同的操作。C语言具有以下条件语句:使用if来指定要执行的代码块......
  • 我依然没有用quest2串流过一次...
    我在前几年买了quest2在它刚上市的时候,从日本amazon邮过来64gb版本全新没开封是将近2400rmb, 激活quest2于国内是一件蛮麻烦的事,但是毕竟quest2是一个比较便宜的vr头盔,说起来我想要vr头盔这件事,早在2016年我在微软上班的时候就很想了. 那时候vr概念很火,htc的vr已经上市了,......
  • OpenAI Q* 是一个彻底的 谣言...
    OpenAI仍未明确解释Q*究竟是什么,但透露的线索倒是相当不少。11月22日,就在OpenAI决定解雇(后又重新聘用)CEOSamAltman的几天之后,技术媒体TheInformation报道称OpenAI取得了一项重大技术突破,使其能够“开发出更强大的AI模型”。新模型被命名为Q*(音为「Qstar」),“具......