IPMITool常用命令

参考:https://blog.csdn.net/zygblock/article/details/53270267

1、远程电源控制类

ipmitool  -I lanplus -H 10.32.228.111 –U username –P Passwordchassis power off

ipmitool  -I lanplus -H 10.32.228.111 –U username –P Passwordchassis power on

ipmitool  -I lanplus -H 10.32.228.111 –U username –P Passwordchassis power reset

ipmitool  -I lanplus -H 10.32.228.111 –U username –P Passwordchassis power cycle

注意power cycle 和power reset的区别在于前者从掉电到上电有1秒钟的间隔,而后者是很快上电)

2、读取系统状态类

ipmitool sensor list   #显示系统所有传感器列表

ipmitool fru list   #显示系统所有现场可替代器件的列表

ipmitool sdr list   #显示系统所有SDRRepository设备列表 

ipmitool  pef filter list     #显示系统平台时间过滤的列表

3、系统日志类

ipmitool sel elist   #显示所有系统事件日志

ipmitool sel clear   #删除所有系统时间日志

ipmitool sel delete ID     #删除第ID条SEL

ipmitool sel time get      #显示当前BMC的时间

ipmitool sel time set  "mm/dd/yyyy hh:mm:ss"  #设置当前BMC的时间

4、启动设置类

ipmitool chassis bootdev bios  #重启后停在BIOS 菜单

ipmitool chassis bootdev pxe #重启后从PXE启动

5、系统相关的命令

ipmitool mc info                              #显示BMC版本信息

ipmitool mc reset cold                       #BMC 冷启动

6、网络接口相关命令

ipmitool lan print 1                        # 显示channel1的网络配置信息

ipmitool lan set  1ipaddr 10.32.2.2          # 设置channel1的IP地址

ipmitool lan  set 1 netmask 255.255.0.0       #设置channel1的netmask

ipmitool lan set 4 defgw ipaddr255.255.0.254    #设置channel4的网关

ipmitool lan set  2 defgw macaddr  <macaddr> #设置channel2的网关mac address

ipmitool lan set 2 ipsrc dhcp                  # 设置channel2的ip 源在DHCP

ipmitool lan set 3 ipsrc static               # 设置channel2的ip是静态获得的

7、通道相关命令

ipmitool channel info #显示系统默认channel

ipmitool channel  authcap channel-number privilege  #修改通道的优先级别

ipmitool channel  getaccess channel-number user-id #读取用户在通道上的权限

ipmitool channel setacccess channel-number  user-id callin=on ipmi=on link=onprivilege=5   #设置用户在通道上的权限

8、 看门狗相关命令

ipmitool  mc watchdog get #读取当前看门狗的设置

ipmitool watchdog  off     #关掉看门狗

ipmitool watchdog reset   #在最近设置的计数器的基础上重启看门狗

9、用户管理相关命令

ipmitool user list chan-id   #显示某通道上的所有用户

ipmitool set password <user id>[<password>] #修改某用户的密码

ipmitool disable      <user id>  #禁止掉某用户

ipmitool enable       <user id>  #使能某用户

ipmitool priv         <user id> <privilegelevel> [<channel number>] #修改某用户在某通道上的权限

ipmitool test         <user id> <16|20>[<password]> #测试用户
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

iNBC

你的鼓励将是我创作的最大动力!

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值