How to re-configure /configure IPMI using ipmitool in ESXi
March 19, 2020 at 1:11 pm 2 comments
This post covers the steps needed to assign / change IP address for IPMI without logging in to IPMI Portal or restarting the server. The tool we are going to use is ipmitool builtin to ESXi.
To get the current IPMI IP Details
#/ipmitool lan print 1
[root@esxi]# /ipmitool lan set 1 ipsrc static
[root@esxi]# /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
Change the IPMI Password
[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
Update1:
To recreate the SSL certificate(Incase if the IPMI Page self-signed certificate is expired
./ipmitool raw 0x30 0x68 0x0
Source:https://portal.nutanix.com/#page/kbs/details?targetId=kA0600000008db6CAA
Entry filed under: Nutanix.
2 Comments Add your own
Leave a reply to Wai Wong Cancel reply
Trackback this post | Subscribe to the comments via RSS Feed

1.
Wai Wong | January 15, 2024 at 1:58 pm
That’s very useful as my nutanix esxi host lose all the ipmi configuration during the Nutanix LCM BCM refresh so i have to config them all manually via the CVM and esxi host. Thank you so much for your post and help
2.
Muralee | January 16, 2024 at 8:11 am
Hi Wai
I am glad to know that it was useful and thank you for acknowledging.
Regards
Muralee