IPMI常用命令

安装ipmitool 软件:

apt-get install -y ipmitool
或者: yum install -y ipmitool

IPMItool 常用命令:

BMC配置命令
ipmitool lan print 1 #打印当前ipmi 地址配置信息。
ipmitool lan set 1 ipsrc static  # 设置 id 1 为静态IP地址。
ipmitool lan set 1 ipaddr 10.42.223.71  # 设置 IPMI 地址。
ipmitool lan set 1 netmask 255.255.255.0 # 设置 IPMI 子网掩码。
ipmitool lan set 1 defgw ipaddr 10.42.223.254 # 设置 IPMI 网关。

配置 IPMI 用户登录账户密码。

Ipmitool user list 1  # 显示 IPMI 用户列表。
ipmitool user set name 2 root #创建用户,一般服务器有默认的超级用户(root,admin,ADMIN),
可以直接修改超级用户的密码,不用重新创建。

ipmitool user set password 2 calvin #创建密码
ipmitool channel setaccess 1 2 callin=on ipi=on link=on privilege=4 #开权限 
ipmitool user list 1 # 查看chanenel1的用户信息
Ipmitool user set password 1 abc-123 # 修改用户 id1 的密码 为 abc-123 


 

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值