欧卡2中文社区

 找回密码
 立即注册

QQ登录

只需一步,快速开始

需要三步,才能开始

只需两步,慢速开始

欧卡2入门方向盘选莱仕达V9莱仕达折叠便携游戏方向盘支架欢迎地图Mod入驻
查看: 6236|回复: 2
收起左侧

[Linux] ipmitool设置管理卡共享/独立模式

[复制链接]
oppo 发表于 2014-9-10 18:45 | 显示全部楼层 |阅读模式
原文:http://sourceforge.net/p/ipmitool/mailman/message/29011598/

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



 楼主| oppo 发表于 2014-9-10 18:45 | 显示全部楼层
Danny,

I finally got a chance to look into this and I found that there not any IPMI raw commands
available to change the LOM from shared to dedicated on an HP Proliant system.

-- Jim Mankovich | jmank@... --
 楼主| oppo 发表于 2014-9-11 15:18 | 显示全部楼层
本帖最后由 oppo 于 2014-9-11 15:20 编辑
[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 ~]#

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

联系我们|手机版|欧卡2中国 ( 湘ICP备11020288号-1 )

GMT+8, 2024-5-3 02:54 , Processed in 0.156986 second(s), 7 queries , Redis On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表