我正在从ubuntu 12.04执行以下命令并获得错误
ipmitool -H 192.168.0.254 -U root -P root用户列表
验证类型NONE不支持
验证类型NONE不支持
错误:无法建立LAN会话
获取用户访问命令失败(通道14,用户1)
我已启用详细选项并具有以下输出
ipmitool -H 192.168.0.254 -U root -P root user list -vvv
ipmi_lan_send_cmd:opened=[0], open=[134852928]
IPMI LAN host 192.168.0.254 port 623
Sending IPMI/RMCP presence ping packet
send_packet (12 bytes)
06 00 ff 06 00 00 11 be 80 00 00 00
recv_packet (27 bytes)
06 00 ff 06 00 00 11 be 40 00 10 00 00 11 be 00
00 00 00 81 00 00 00 00 00 00 00
Received IPMI/RMCP response packet:
IPMI NOT Supported
ASF Version unknown
RMCP Version 1.0
RMCP Sequence 255
IANA Enterprise 1162752
ipmi_lan_send_cmd:opened=[1], open=[134852928]
>> IPMI Request Session Header
>> Authtype : NONE
>> Sequence : 0x00000000
>> Session ID : 0x00000000
>> IPMI Request Message Header
>> Rs Addr : 20
>> NetFn : 06
>> Rs LUN : 0
>> Rq Addr : 81
>> Rq Seq : 00
>> Rq Lun : 0
>> Command : 38
send_packet (23 bytes)
06 00 ff 07 00 00 00 00 00 00 00 00 00 09 20 18
c8 81 00 38 0e 04 35
recv_packet (30 bytes)
06 00 ff 07 00 00 00 00 00 00 00 00 00 10 81 1c
63 20 00 38 00 01 80 18 02 a2 02 00 00 69
ipmi message header (30 bytes)
06 00 ff 07 00 00 00 00 00 00 00 00 00 10 81 1c
63 20 00 38 00 01 80 18 02 a2 02 00 00 69
<< IPMI Response Session Header
<< Authtype : NONE
<< Sequence : 0x00000000
<< Session ID : 0x00000000
<< IPMI Response Message Header
<< Rq Addr : 81
<< NetFn : 07
<< Rq LUN : 0
<< Rs Addr : 20
<< Rq Seq : 00
<< Rs Lun : 0
<< Command : 38
<< Compl Code : 0x00
get_auth_capabilities (8 bytes)
01 80 18 02 a2 02 00 00
Channel 01 Authentication Capabilities:
Privilege Level : ADMINISTRATOR
Auth Types :
Per-msg auth : disabled
User level auth : disabled
Non-null users : disabled
Null users : disabled
Anonymous login : disabled
Authentication type NONE not supported
ipmi_lan_send_cmd:opened=[1], open=[134852928]
>> IPMI Request Session Header
>> Authtype : NONE
>> Sequence : 0x00000000
>> Session ID : 0x00000000
>> IPMI Request Message Header
>> Rs Addr : 20
>> NetFn : 06
>> Rs LUN : 0
>> Rq Addr : 81
>> Rq Seq : 01
>> Rq Lun : 0
>> Command : 38
send_packet (23 bytes)
06 00 ff 07 00 00 00 00 00 00 00 00 00 09 20 18
c8 81 04 38 0e 04 31
recv_packet (30 bytes)
06 00 ff 07 00 00 00 00 00 00 00 00 00 10 81 1c
63 20 04 38 00 01 80 18 02 a2 02 00 00 65
ipmi message header (30 bytes)
06 00 ff 07 00 00 00 00 00 00 00 00 00 10 81 1c
63 20 04 38 00 01 80 18 02 a2 02 00 00 65
<< IPMI Response Session Header
<< Authtype : NONE
<< Sequence : 0x00000000
<< Session ID : 0x00000000
<< IPMI Response Message Header
<< Rq Addr : 81
<< NetFn : 07
<< Rq LUN : 0
<< Rs Addr : 20
<< Rq Seq : 01
<< Rs Lun : 0
<< Command : 38
<< Compl Code : 0x00
get_auth_capabilities (8 bytes)
01 80 18 02 a2 02 00 00
Channel 01 Authentication Capabilities:
Privilege Level : ADMINISTRATOR
Auth Types :
Per-msg auth : disabled
User level auth : disabled
Non-null users : disabled
Null users : disabled
Anonymous login : disabled
Authentication type NONE not supported
Error: Unable to establish LAN session
Failed to open LAN interface
Get User Access command failed (channel 14, user 1)
有谁能告诉我如何解决这个问题?
答案 0 :(得分:7)
请使用-I lanplus,例如:
ipmitool -I lanplus -H 192.168.0.254 -U root -P root user list
答案 1 :(得分:0)
我通过告诉IPMI IPMI应该明确使用哪些身份验证方法来解决问题:
ipmitool lan set 1 auth $username MD5,PASSWORD
仅当您无法从远程位置连接时,才可以在本地执行此命令