免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 4177 | 回复: 1
打印 上一主题 下一主题

[系统管理] ipmitool应用 [复制链接]

论坛徽章:
1
申猴
日期:2013-10-18 10:42:24
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2012-08-24 16:15 |只看该作者 |倒序浏览
先分享下我的ipmitool笔记
1、用ipmitool来输出IBM服务器管理卡的IP等信息
[root@cdn ~]# ipmitool lan print 1
Set in Progress         : Set Complete
Auth Type Support       : NONE MD2 MD5 PASSWORD
Auth Type Enable        : Callback :
                        : User     : MD2 MD5 PASSWORD
                        : Operator : MD2 MD5 PASSWORD
                        : Admin    : MD2 MD5 PASSWORD
                        : OEM      :
IP Address Source       : Static Address
IP Address              : x.x.x.x
Subnet Mask             : 255.255.255.128
MAC Address             : e4:1f:13:a7:c6:f9
SNMP Community String   : public
IP Header               : TTL=0x40 Flags=0x40 Precedence=0x00 TOS=0x10
BMC ARP Control         : ARP Responses Enabled, Gratuitous ARP Disabled
Gratituous ARP Intrvl   : 2.0 seconds
Default Gateway IP      : x.x.x.x
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
Cipher Suite Priv Max   : uaaaaXXXXXXXXXX
                        :     X=Cipher Suite Unused
                        :     c=CALLBACK
                        :     u=USER
                        :     o=OPERATOR
                        :     a=ADMIN
                        :     O=OEM
用ipmitool设定和修改管理卡的ip,mask和gateway
ipmitool lan set 1 ipaddr 10.1.254.224
ipmitool lan set 1 netmask 255.255.255.128
ipmitool lan set 1 defgw ipaddr 10.1.254.1
ipmitool sdr | grep 'Ambient Temp' //查看机箱温度



2、无ipmi   yum 安装 报错解决
[root@selboo ~]# ipmitool sensor list
Could not open device at /dev/ipmi0 or /dev/ipmi/0 or /dev/ipmidev/0: No
such file or directory
Get Device ID command failed
Unable to open SDR for reading

需要添加如下:

[root@selboo ~]# modprobe ipmi_watchdog
[root@selboo ~]# modprobe ipmi_poweroff
[root@selboo ~]# modprobe ipmi_devintf
[root@selboo ~]# modprobe ipmi_si
[root@selboo ~]# modprobe ipmi_msghandler



3、ipmi重启管理卡
使用ipmi命令重启远程控制卡

重启本地管理卡ipmitool -U [user] -P [password] mc reset cold

重启远程管理卡ipmitool -U [user] -P [password] -H [目标管理卡] mc reset cold



以上是公司用到的,我查询了点资料加上自己琢磨的ipmitool全部结果。
###########################################
开始提问!
1、yum安装完成后modprobe 加载模块重启后又需要重新添加,有没有让它开机自动加载的(不是写到rc.local里的那种)。
2、ipmitool既然可以重启管理卡,应该可以做其它操作,比如改管理IP,改管理密码,改管理IP,改对应管理卡ssh登录端口。

论坛徽章:
0
2 [报告]
发表于 2012-08-24 16:30 |只看该作者
奥~~~ 不错~  
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP