Category Archives: iDRAC

Configuring DRAC with ipmitool

  • Load modules

[codesyntax lang="bash"]

modprobe ipmi_devintf
modprobe ipmi_si

[/codesyntax]

  • List of helpful ipmitool commands

Check BMC Firmware Revision
[codesyntax lang="bash"]

ipmitool -I open bmc info | grep -A3 "Firmware Revision"

[/codesyntax]

Check SEL log
[codesyntax lang="bash"]

ipmitool sel

[/codesyntax]

List SEL log
[codesyntax lang="bash"]

ipmitool sel list

[/codesyntax]

Check which node you are in [For Dell Cloud edge]
[codesyntax lang="bash"]

ipmitool raw 0x34 0x11

[/codesyntax]

Reset BMC/DRAC to default
[codesyntax lang="bash"]

ipmitool mc reset cold

[/codesyntax]
Note: this will also fix No more sessions are available for this type of connection! error while trying to connect to DRAC

  • Configure DRAC from ipmitool

Set BMC/DRAC static IP
[codesyntax lang="bash"]

ipmitool lan set 1 ipsrc static

[/codesyntax]

Set BMC/DRAC IP Address
[codesyntax lang="bash"]

ipmitool lan set 1 ipaddr

[/codesyntax]

Set BMC/DRAC Subnet Mask
[codesyntax lang="bash"]

ipmitool lan set 1 netmask

[/codesyntax]

Set BMC/DRAC Default Gateway
[codesyntax lang="bash"]

ipmitool lan set 1 defgw ipaddr

[/codesyntax]

Set BMC/DRAC dhcp IP
[codesyntax lang="bash"]

ipmitool lan set 1 ipsrc dhcp

[/codesyntax]

Display BMC/DRAC network settings
[codesyntax lang="bash"]

ipmitool lan print 1

[/codesyntax]

Change the NIC settings to dedicated
[codesyntax lang="bash"]

ipmitool raw 0x30 0x24 2

[/codesyntax]

Change the NIC settings to shared
[codesyntax lang="bash"]

ipmitool raw 0x30 0x24 0

[/codesyntax]

Check the NIC settings
[codesyntax lang="bash"]

ipmitool raw 0x30 0x25

[/codesyntax]

Restart the BMC/DRAC
[codesyntax lang="bash"]

ipmitool mc reset warm

[/codesyntax]

Example:
[codesyntax lang="bash"]

ipmitool lan set 1 ipsrc static
ipmitool lan set 1 ipaddr 10.10.17.37
ipmitool lan set 1 netmask 255.255.240.0
ipmitool lan set 1 defgw ipaddr 10.10.16.1
ipmitool lan set 1 ipsrc dhcp
watch -n1 ipmitool lan print 1

[/codesyntax]