IPMI “Unable to establish IPMI v2 / RMCP+ session”的解决方法

1.现象

IPMI
lan 接口无法访问,具体如下面命令执行后出现的错误提示:

[[email protected]
~]#   ipmitool -I lanplus -H 10.10.77.48 -U ADMIN -P ADMIN sel list

Error:
Unable to establish IPMI v2 / RMCP+ session

Get
SEL Info command failed

You
have new mail in /var/spool/mail/root

登录到10.10.77.48上去检查下,在本地通过KCS接口执行的情况,发现都成功:

[[email protected]
~]# ipmitool user list

ID
Name             Callin  Link Auth  IPMI Msg   Channel Priv Limit

2
 ADMIN            true    false      false      Unknown (0x00)

You
have new mail in /var/spool/mail/root

[[email protected]
~]# ipmitool user list 1

ID
Name             Callin  Link Auth  IPMI Msg   Channel Priv Limit

2
 ADMIN            false   false      true       ADMINISTRATOR

[[email protected]
~]# ipmitool -I lanplus -H 10.10.77.48 -U ADMIN -P ADMIN sel list

1
| 08/03/2017 | 17:26:02 | Unknown #0xff |  | Asserted

2
| 08/03/2017 | 17:26:38 | Power Supply #0xc8 | Power Supply AC lost |
Asserted

3
| 08/03/2017 | 17:30:38 | Unknown #0xff |  | Asserted

4
| 08/03/2017 | 17:31:13 | Power Supply #0xc8 | Power Supply AC lost |
Asserted

5
| 08/03/2017 | 17:43:33 | Unknown #0xff |  | Asserted

You
have new mail in /var/spool/mail/root

2解决过程

2.1和正确配置、能访问的比较网络:都OK

2.2检查用户并删去不用的用户

2.3得到LAN
interface的channel编号

2.4授权用户通过这个channel可以登录

2.5测试。

前面两步直接执行相应的命令就好了,我们从第三步开始看具体怎么执行。可以看到‘ipmitool
channel info” 在此种模式下显示默认的KCS
channel:

[[email protected]
~]# ipmitool channel info

Channel
0xf info:

Channel
Medium Type   : System Interface

Channel
Protocol Type : KCS

Session
Support       : session-less

Active
Session Count  : 0

Protocol
Vendor ID    : 7154

但我们是不的是LAN
interface,继续往下逐一测试,找到Lan
interface对应的channel
ID:

[[email protected]
~]# ipmitool channel info 1

Channel
0x1 info:

Channel
Medium Type   : 802.3 LAN

Channel
Protocol Type : IPMB-1.0

Session
Support       : multi-session

Active
Session Count  : 0

Protocol
Vendor ID    : 7154

Volatile(active)
Settings

Alerting
          : enabled

Per-message
Auth    : enabled

User
Level Auth     : enabled

Access
Mode         : always available

Non-Volatile
Settings

Alerting
          : enabled

Per-message
Auth    : enabled

User
Level Auth     : enabled

Access
Mode         : always available

通过上面命令可以看到, LAN
interface对应的channel
ID 为1,因为只有它的Medium
Type   是 802.3
LAN。

2.2向LAN
channel  添加用户:

很容易犯错的地方出现在这里,以为下面的命令列出的页是Lan
channel 看到的用户。

[[email protected]
~]# ipmitool user list

ID
Name             Callin  Link Auth  IPMI Msg   Channel Priv Limit

2
 ADMIN            true    false      false      Unknown (0x00)

3
                  true    true       true       OPERATOR

4
                  true    true       true       OPERATOR

其实不然,上面默认看到是被授权使用KCS
channel的用户,要查看Lan
channel的用户信息,要用下面的命令:

[[email protected]
~]# ipmitool user list 1

ID
Name             Callin  Link Auth  IPMI Msg   Channel Priv Limit

2
 ADMIN            true    false      true       ADMINISTRATOR

然后添加权限:

[[email protected]
~]# ipmitool user enable 2

[[email protected]
~]# ipmitool user priv 2 4 1

[[email protected]
~]# ipmitool user set name ADMIN

本地测试通过,通过LAN
interface 远程登录也通过:

[[email protected]
~]# ipmitool user set password 2 ADMIN

[[email protected]
~]# ipmitool user test 2 16

Password
for user 2:

Success

You
have new mail in /var/spool/mail/root

[[email protected]
~]# ipmitool user test 2 20

Password
for user 2:

Set
User Password command failed (user 2): Unknown (0x80)

Failure:
password incorrect

[[email protected]
~]# ipmitool user test 2 20

Password
for user 2:

Success

3.总结

使用IPMI命令管理用户、通道、权限的时候,务必理解用户权限管理是基于通道的,同一个用户可以被授权使用某个通道而被禁止使用其他通道。

时间: 2024-12-20 02:01:45

IPMI “Unable to establish IPMI v2 / RMCP+ session”的解决方法的相关文章

Unable to execute dex: Multiple dex files define 解决方法

问题发生概述:       程序编译正常,在用Eclipse调试执行时,报错Unable to execute dex: Multiple dex files define,因为以前也没有遇到这类错误,首先便尝试万能纠错发,如下方法一,也是上网搜索众多解决方案之一,尝试后未果,便按照搜索方案,逐一尝试,都未能解决,最后盯着工程突然发现问题.具体解决方案如下: 方法一:       Eclipse->Project->去掉Build Automatically->Clear ->Bu

转:Unable to execute dex: Multiple dex files define 解决方法

转自:http://blog.csdn.net/mxlxiao7/article/details/8978930 问题发生概述: 程序编译正常,在用Eclipse调试执行时,报错Unable to execute dex: Multiple dex files define 具体解决方案如下: 在项目中,有一个类的包名和引用的jar包中的类和包名一致,我用的是jar包中的类,所以工程中的这个类就是重复引用的,删除工程中重复引用的类后,成功打包启动.希望各位同学注意这个小问题. 转:Unable

ASP.NET Web Service中使用Session 及 Session丢失解决方法 续

原文:ASP.NET Web Service中使用Session 及 Session丢失解决方法 续 1.关于Session丢失问题的说明汇总,参考这里 2.在Web Servcie中使用Session,需要对Web Method做如下处理 [WebMethod(EnableSession = true)]public void usingSession(){    Session["Name"] = "Name";} 如果不加EnableSession = tru

Hibernate的懒加载session丢失解决方法

在web.xml加入spring提供的过滤器,延长session的生命周期 <!--Hibernate的懒加载session丢失解决方法 --> <filter> <filter-name>openSessionInView</filter-name> <filter-class>org.springframework.orm.hibernate4.support.OpenSessionInViewFilter</filter-class&

ubuntu系统下selenium打开火狐浏览器提示&#39;Unable to find a matching set of capabilities.解决方法

环境: 1.ubuntu系统 2.selenium 3.141.0 3.火狐浏览器驱动 geckodriver-v0.24.0-linux32 在Python中执行脚本: from selenium import webdriverbrowser = webdriver.Firefox() 结果提示:Message: Unable to find a matching set of capabilities Traceback (most recent call last):  File "/h

【Android-tips】 Unable to execute dex: Multiple dex files define 解决方法

唔,之前已经想过今后不动android,没想到还是因为比赛的原因重操旧业.android有很多问题是由于eclipse的不完善造成的,比如今天遇到的这个问题 Unable to execute dex: Multiple dex files define [2011-10-23 16:23:29 - Dex Loader] Unable to execute dex: Multiple dex files define Lcom/myapp/R$array; [2011-10-23 16:23:

Struts2中的Unable to load configuration错误的分析与解决方法

当我们遇到 Unable to load configuration. 这样的错误时,可以根据具体的错误提示找出错误的原因. Unable to load configuration. - interceptor-ref - file:/D:/Java/apache-tomcat-6.0.32/webapps/examquestions/WEB-INF/classes/struts.xml:28:49 at com.opensymphony.xwork2.config.Configuration

eclipse:运行 Android 项目时出现 “Unable to execute dex: Multiple dex files define” 解决方法

android 项目在eclipse 出现Unable to execute dex: Multiple dex files define Conversion to Dalvik format failed: Unable to execute dex: Multiple dex files define 的原因主要是因为jar包重复导入造成的冲突 这个项目我使用了swipebacklayout的library,library里面已经导入了v7的jar包,项目工程里也有个v7包,解决方法就是将

ERROR: JDWP Unable to get JNI 1.2 environment的解决方法

当执行如下代码时: //从控制台获取输入 InputStream is = System.in; Scanner scanner = new Scanner(is); System.out.println("请输入:"); System.out.println(scanner.nextLine()); 有时会发生如下错误: ERROR: JDWP Unable to get JNI 1.2 environment, jvm->GetEnv() return code = -2 J