ipmitool修改Dell服务器管理卡模式

摘自SourceForge

Hello All,
I was wondering if anyone managed to change the LOM from shared to
dedicated using IPMITOOL on a HP system.
I am able to proceed at a Dell system using the raw commands:
To check if the current DRAC is "Shared with failover" or dedicated.
ipmitool raw 0x30 0x25
A result of 00 means shared and 02 means dedicated.
To change to shared:
ipmitool raw 0x30 0x24 0
To change to dedicated:
ipmitool raw 0x30 0x24 2
--
Best regards,
Danny Nieuwenhuis

因模式错误导致管理卡不通的一个实例

[root@localhost ~]# service ipmi start
Starting ipmi drivers:                                     [  OK  ]
[root@localhost ~]# ipmitool lan print
Set in Progress         : Set Complete
Auth Type Support       : NONE MD2 MD5 PASSWORD 
Auth Type Enable        : Callback : MD2 MD5 
                        : User     : MD2 MD5 
                        : Operator : MD2 MD5 
                        : Admin    : MD2 MD5 
                        : OEM      : 
IP Address Source       : Static Address
IP Address              : 10.128.231.166
Subnet Mask             : 255.255.255.0
MAC Address             : 78:2b:cb:71:d8:e2
SNMP Community String   : public
IP Header               : TTL=0x40 Flags=0x40 Precedence=0x00 TOS=0x10
Default Gateway IP      : 10.128.231.1
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,4,5,6,7,8,9,10,11,12,13,14
Cipher Suite Priv Max   : aaaaaaaaaaaaaaa
                        :     X=Cipher Suite Unused
                        :     c=CALLBACK
                        :     u=USER
                        :     o=OPERATOR
                        :     a=ADMIN
                        :     O=OEM
[root@localhost ~]# ping 10.128.231.166
PING 10.128.231.166 (10.128.231.166) 56(84) bytes of data.

--- 10.128.231.166 ping statistics ---
5 packets transmitted, 0 received, 100% packet loss, time 4009ms

[root@localhost ~]# ping 10.128.231.1
PING 10.128.231.1 (10.128.231.1) 56(84) bytes of data.
64 bytes from 10.128.231.1: icmp_seq=1 ttl=255 time=1.57 ms

--- 10.128.231.1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 1.573/1.573/1.573/0.000 ms
[root@localhost ~]# ipmitool raw 0x30 0x25
 00
[root@localhost ~]# ipmitool raw 0x30 0x24 2

[root@localhost ~]# ipmitool raw 0x30 0x25
 02
[root@localhost ~]# ipmitool lan print
Set in Progress         : Set Complete
Auth Type Support       : NONE MD2 MD5 PASSWORD 
Auth Type Enable        : Callback : MD2 MD5 
                        : User     : MD2 MD5 
                        : Operator : MD2 MD5 
                        : Admin    : MD2 MD5 
                        : OEM      : 
IP Address Source       : Static Address
IP Address              : 10.128.231.166
Subnet Mask             : 255.255.255.0
MAC Address             : 78:2b:cb:71:d8:e2
SNMP Community String   : public
IP Header               : TTL=0x40 Flags=0x40 Precedence=0x00 TOS=0x10
Default Gateway IP      : 10.128.231.1
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,4,5,6,7,8,9,10,11,12,13,14
Cipher Suite Priv Max   : aaaaaaaaaaaaaaa
                        :     X=Cipher Suite Unused
                        :     c=CALLBACK
                        :     u=USER
                        :     o=OPERATOR
                        :     a=ADMIN
                        :     O=OEM
[root@localhost ~]# ping 10.128.231.166
PING 10.128.231.166 (10.128.231.166) 56(84) bytes of data.

--- 10.128.231.166 ping statistics ---
17 packets transmitted, 0 received, 100% packet loss, time 16000ms

[root@localhost ~]# ipmitool bmc reset warm
Sent warm reset command to MC
[root@localhost ~]# ping 10.128.231.166
PING 10.128.231.166 (10.128.231.166) 56(84) bytes of data.
64 bytes from 10.128.231.166: icmp_seq=2 ttl=63 time=0.548 ms
64 bytes from 10.128.231.166: icmp_seq=3 ttl=63 time=0.496 ms
64 bytes from 10.128.231.166: icmp_seq=4 ttl=63 time=0.451 ms

--- 10.128.231.166 ping statistics ---
4 packets transmitted, 3 received, 25% packet loss, time 2999ms
rtt min/avg/max/mdev = 0.451/0.498/0.548/0.043 ms
[root@localhost ~]#

 

One thought on “ipmitool修改Dell服务器管理卡模式

  1. 我输入之后报错,这条命令如何定义channel,我的channel是1
    [root@localhost ~]# ipmitool raw 0x30 0x25
    Unable to send RAW command (channel=0x0 netfn=0x30 lun=0x0 cmd=0x25 rsp=0xc1): Invalid command

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注