- 论坛徽章:
- 1
|
先分享下我的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登录端口。
|
|