当前位置:网站首页>DELL远程控制卡 使用ipmitools设置ipmi
DELL远程控制卡 使用ipmitools设置ipmi
2022-07-28 05:08:00 【正在输入中…………】
使用DELL的远程控制卡可以方便的管理服务器
在CentOS中可以使用ipmitools管理 IPMI( Intelligent Platform Management Interface).
要使用选程控制卡,一般需将一根网线插入控制卡中并设置ip,在BIOS的Integrated Dell Remote Access Controller (iDRAC)中设置 Dedicated (专用),遇到设置是shared(共享),发现控制卡的网卡灯不亮,分配了静态ip也没法用,这时就需要改成Dedicated 。
用ipmitool设置dedicated
ipmitool delloem lan set dedicated
DELL的R410,R610,按Ctrl+E进入设置界面
DELL的C6100,R620,按F2进入设置界面
1、在centos安装OpenIPMI:
yum install OpenIPMI OpenIPMI-tools
2、设置开机启动
chkconfig ipmi on
3、启动ipmi服务
service ipmi start
例子:
4、设置固定ip
ipmitool -I open lan set 1 ipsrc static
ipmitool -I open lan set 1 ipaddr 10.10.1.x
ipmitool -I open lan set 1 netmask 255.255.255.0
ipmitool -I open lan set 1 defgw ipaddr 10.10.1.1
ipmitool -I open lan set 1 access on
设置自动获取ip,如果一时获取不到,需要切断机器的电源,等待5分钟之后,先插上网线再接上电源
ipmitool -I open lan set 1 ipsrc dhcp
5、查看控制卡信息
ipmitool lan print 1
6、查看管理地址
ipmitool lan print 1 | grep 'IP Address'
为加强安全,修改默认的SNMP通讯串
ipmitool -I open lan set 1 snmp COMUNIATION
7、用户设置
查看有哪些用户可以web登陆
ipmitool -I open user list 1
得到:
ID Name Callin Link Auth IPMI Msg Channel Priv Limit
1 true false true ADMINISTRATOR
2 admin true false false NO ACCESS
列出来的序号为2的为root用户,为administration权限,(默认密码是root或calvin),
现在更改其密码
ipmitool -I open user set password 2
输入两次密码即可。
同理,序号为1的为一个user普通用户null,更改其密码
ipmitool -I open lan set 1 password
对用户的限制
用户的启用:ipmitool user enable
对用户进行权限控制:ipmitool user priv
上面的都是在操作系统内对本机的远程管理卡进行设置和查看,对远端操作可以使用以下命令:
ipmitool -H 192.168.8.137 -U root -P root sensor |grep -i temp
查看event log
ipmitool -v -H 10.10.1.38 -U root -P root sel list
清空 event log
ipmitool sel clear
也可以控制远端ipmi的电源
ipmitool -I lan -H 10.1.199.212 -U root -P root chassis power off/reset/on/status
控制远端ipmi的引导方式
ipmitool -I lan -H 10.1.199.212 -U root -P root chassis bootdev pxe/disk/cdrom
关于设置的生效问题:
到目前测试的情况来看,将机器关机断电后,3分钟再加电开机,这样生效最靠谱。
但实时生效是我们的目标,但效果不是很好
网上说ipmitool mc reset cold是重启BMC,但我试了一下,是重置,网上的东西一定要质疑。
参考:
补充:
对于Dell多刀的C系列服务器,使用最上面的方法用ipmitool修改网卡模式dedicated为shared会提示
Error in setting nic selection (Invalid command)
C系列,如C6100,要用dell自已出的工具 bmc tool来设置网卡的共享模式
下载地址 http://poweredgec.com/,提供tgz和rpm安装包。我这里下载tgz包,解压之后执行
[[email protected] ~]# ./bmc nic_mode get
dedicated
[[email protected] ~]# ./bmc nic_mode set shared
[[email protected] ~]# ./bmc nic_mode get
shared
返回第n个节点。
bmc node_number
边栏推荐
- Leetcode 18. sum of four numbers
- Interpretation of afnetworking4.0 request principle
- Redux basic syntax
- I interviewed a 38 year old programmer and refused to work overtime
- Win10 machine learning environment construction pycharm, anaconda, pytorch
- Comprehensively analyze the differences between steam and maker Education
- When initializing with pyqt5, super() and_ init _ () problems faced by the coordinated use of functions, as well as the corresponding learning and solutions
- 如何在 FastReport VCL 中通过 Outlook 发送和接收报告?
- POJ 3417 network (lca+ differential on tree)
- Transformer -- Analysis and application of attention model
猜你喜欢

From the basic concept of micro services to core components - explain and analyze through an example

Testcafe provides automatic waiting mechanism and live operation mode

What is the reason why the easycvr national standard protocol access equipment is online but the channel is not online?

Why is MD5 irreversible, but it may also be decrypted by MD5 free decryption website

数据安全逐步落地,必须紧盯泄露源头

What tools do software testers need to know?

【ARXIV2205】Inception Transformer

Automated test tool playwright (quick start)

【计算机三级信息安全】信息安全保障概述

Redux basic syntax
随机推荐
Introduction to testcafe
Simulink automatically generates STM32 code details
数据安全逐步落地,必须紧盯泄露源头
C language classic 100 question exercise (1~21)
Youxuan database participated in the compilation of the Research Report on database development (2022) of the China Academy of communications and communications
Program life | how to switch to software testing? (software testing learning roadmap attached)
Professor dongjunyu made a report on the academic activities of "Tongxin sticks to the study of war and epidemic"
面试了一位38岁程序员,听说要加班就拒绝了
What is the core value of testing?
Internal implementation principle of yymodel
What should testers know about login security?
Transformer -- Analysis and application of attention model
【ARXIV2203】CMX: Cross-Modal Fusion for RGB-X Semantic Segmentation with Transformers
Leetcode 15. sum of three numbers
这种动态规划你见过吗——状态机动态规划之股票问题(中)
Specific differences between typedef and define
HDU 2874 connections between cities
Handling of web page image loading errors
Interpretation of afnetworking4.0 request principle
Pipe /createpipe