ESXi主机安装IPMI工具

    ESXi主机安装好后发现BMC地址、iDRAC地址没配...想想还得跑机房,一声无耐的叹气!于是偷懒想通过ssh终端来配置服务器的管理口地址,需要安装一个ipmi工具,于是...

ipmitool vib for ESXi It will work on ESXi 6.x and 7.x hosts only.

下载地址:

https://vswitchzero.files.wordpress.com/2019/08/ipmitool-esxi-vib-1.8.11-2.zip

1、安装

esxcli software acceptance set --level=CommunitySupported

esxcli software vib install -v /tmp/ipmitool-1.8.11-2.x86_64.vib

2、使用

/opt/ipmitool/ipmitool

3、常见用法

查询BMC地址:

esxcli hardware ipmi bmc get

To get the current IPMI IP Details
#/ipmitool lan print 1
[root@esxi]# /opt/ipmitool/ipmitool lan set 1 ipsrc static
[root@esxi]# /opt/ipmitool/ipmitool lan set 1 ipaddr x.x.x.x
Setting LAN IP Address to x.x.x.x
[root@esxi]# /ipmitool lan set 1 netmask x.x.x.x
Setting LAN Subnet Mask to x.x.x.x
[root@esxi]# /ipmitool lan set 1 defgw ipaddr x.x.x.x
Setting LAN Default Gateway IP to x.x.x.x
[root@esxi]# /ipmitool lan set 1 defgw macaddr xx:xx:xx:xx:xx:xx
Setting LAN Default Gateway MAC to xx:xx:xx:xx:xx:xx
[root@esxi]# /ipmitool lan set 1 arp respond on
Enabling BMC-generated ARP responses
[root@esxi]# /ipmitool lan set 1 snmp public
Setting LAN SNMP Community String to public
root@esxi]# /ipmitool user list (Note down the user ID in mycase it is 2)
[root@esxi]# /ipmitool user set password 2
[root@esxi]# /ipmitool lan set 1 access on

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值