IPMI (SuperMicro)
Update your firmware
ftp://ftp.supermicro.com/utility/IPMI%20FW%20flash%20tools/SMT/
./lUpdate.sh -f SMT_X9_130.bin -i kcs -r n
IPMICFG
ftp://ftp.supermicro.com/utility/IPMICFG/
Fonction
|
Commande
|
---|---|
Show IP | ipmicfg -m |
Show subnet mask | ipmicfg -k |
Show Gateway | ipmicfg -g |
Check FW | ipmicfg -vgr |
Show VLAN | ipmicfg -vlan |
Set VLAN on | ipmicfg -vlan on #VLAN |
Set VLAN off | ipmicfg -vlan off |
Check IPMI chipset | ipmicfg -selftest |
Set IP Static | ipmicfg -m 10.x.x.x |
Set Subnet | ipmicfg -k 255.255.255.0 |
Set gateway | ipmicfg -g 10.x.x.1 |
Set DHCP off | ipmicfg -dhcp off |
Set DHCP on | ipmicfg -dhcp on |
Check fan mode | ipmicfg -fan |
List users | ipmicfg -user list |
Add user | ipmicfg -user add [user ID] [user name] [password] [privilege] |
Del user | ipmicfg -user del [user id] |
Change user passwd | ipmicfg -user setpwd [user ID] [password] |
Change user pri | ipmicfg -user level [user ID] [privilege] |
Change LAN mode
Check the current mode:
# X9 ATEN
./IPMICFG-Linux.x86_64 -raw 0x30 0x70 0x0c 0 0
# X9 AMI
./IPMICFG-Linux.x86_64 -raw 0x30 0x70 0x0c 0
The output will be one of these:
0x00 = Dedicated
0x01 = Onboard / Shared
0x02 = Failover
To set the mode to
Dedicated
# X9 ATEN
./IPMICFG-Linux.x86_64 -raw 0x30 0x70 0xc0x0c 1 0
# X9 AMI
./IPMICFG-Linux.x86_64 -raw 0x30 0x70 0x0c 1 0
# X9 ATEN
./IPMICFG-Linux.x86_64 -raw 0x30 0x70 0xc0x0c 1 1
# X9 AMI
./IPMICFG-Linux.x86_64 -raw 0x30 0x70 0x0c 1 1
Failover
# X9 ATEN
./IPMICFG-Linux.x86_64 -raw 0x30 0x70 0xc0x0c 1 02
0# X9 AMI
./IPMICFG-Linux.x86_64 -raw 0x30 0x70 0x0c 1 2
IPMIView
ftp://ftp.supermicro.com/utility/IPMIView/
Install java JRE and open 'IPMIView20.jar' with the java bin
IPMITOOL
Set next boot to PXE for next boot
<g class="gr_ gr_114 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling" id="114" data-gr-id="114">ipmitool</g> -I <g class="gr_ gr_111 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling ins-del multiReplace" id="111" data-gr-id="111"><g class="gr_ gr_111 gr-alert gr_spell gr_inline_cards gr_disable_anim_appear ContextualSpelling ins-del multiReplace" id="111" data-gr-id="111"><g class="gr_ gr_111 gr-alert gr_spell gr_inline_cards gr_disable_anim_appear ContextualSpelling ins-del multiReplace" id="111" data-gr-id="111">lanplus</g></g></g> -H <ipmi_ip> -U ADMIN -P ADMIN chassis <g class="gr_ gr_112 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling ins-del multiReplace" id="112" data-gr-id="112">bootdev</g> <g class="gr_ gr_113 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling ins-del multiReplace" id="113" data-gr-id="113">pxe</g>
Set next boot to DISK for next boot
<g class="gr_ gr_104 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling" id="104" data-gr-id="104">ipmitool</g> -I <g class="gr_ gr_102 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling ins-del multiReplace" id="102" data-gr-id="102"><g class="gr_ gr_102 gr-alert gr_spell gr_inline_cards gr_disable_anim_appear ContextualSpelling ins-del multiReplace" id="102" data-gr-id="102"><g class="gr_ gr_102 gr-alert gr_spell gr_inline_cards gr_disable_anim_appear ContextualSpelling ins-del multiReplace" id="102" data-gr-id="102">lanplus</g></g></g> -H <ipmi_ip> -U ADMIN -P ADMIN chassis <g class="gr_ gr_103 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling ins-del multiReplace" id="103" data-gr-id="103"><g class="gr_ gr_103 gr-alert gr_spell gr_inline_cards gr_disable_anim_appear ContextualSpelling ins-del multiReplace" id="103" data-gr-id="103"><g class="gr_ gr_103 gr-alert gr_spell gr_inline_cards gr_disable_anim_appear ContextualSpelling ins-del multiReplace" id="103" data-gr-id="103">bootdev</g></g></g> disk
Reboot host from IPMI
<g class="gr_ gr_96 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling" id="96" data-gr-id="96">ipmitool</g> -I <g class="gr_ gr_95 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling ins-del multiReplace" id="95" data-gr-id="95"><g class="gr_ gr_95 gr-alert gr_spell gr_inline_cards gr_disable_anim_appear ContextualSpelling ins-del multiReplace" id="95" data-gr-id="95"><g class="gr_ gr_95 gr-alert gr_spell gr_inline_cards gr_disable_anim_appear ContextualSpelling ins-del multiReplace" id="95" data-gr-id="95">lanplus</g></g></g> -H <ipmi_ip> -U ADMIN -P ADMIN chassis power cycle
Soft shutdown
<g class="gr_ gr_101 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling" id="101" data-gr-id="101"><g class="gr_ gr_101 gr-alert gr_spell gr_inline_cards gr_disable_anim_appear ContextualSpelling" id="101" data-gr-id="101"><g class="gr_ gr_101 gr-alert gr_spell gr_inline_cards gr_disable_anim_appear ContextualSpelling" id="101" data-gr-id="101">ipmitool</g></g></g> -H <ipmi_ip> -v -I <g class="gr_ gr_99 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling ins-del multiReplace" id="99" data-gr-id="99">lanplus</g> -<g class="gr_ gr_100 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling ins-del multiReplace" id="100" data-gr-id="100"><g class="gr_ gr_100 gr-alert gr_spell gr_inline_cards gr_disable_anim_appear ContextualSpelling ins-del multiReplace" id="100" data-gr-id="100"><g class="gr_ gr_100 gr-alert gr_spell gr_inline_cards gr_disable_anim_appear ContextualSpelling ins-del multiReplace" id="100" data-gr-id="100">UADMIN</g></g></g> -P ADMIN chassis power soft
Find Mac on eth0
ipmitool -I lanplus -U ADMIN -P ADMIN -H <ipmi_ip> raw 0x30 0x21 | tail -c 18
Find FW version
<g class="gr_ gr_94 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling" id="94" data-gr-id="94">ipmitool</g> -I <g class="gr_ gr_93 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling ins-del multiReplace" id="93" data-gr-id="93"><g class="gr_ gr_93 gr-alert gr_spell gr_inline_cards gr_disable_anim_appear ContextualSpelling ins-del multiReplace" id="93" data-gr-id="93"><g class="gr_ gr_93 gr-alert gr_spell gr_inline_cards gr_disable_anim_appear ContextualSpelling ins-del multiReplace" id="93" data-gr-id="93">lanplus</g></g></g> -H <ipmi_ip> -U ADMIN -P ADMIN mc info | grep 'Firmware Revision'
Factory reset BMC
ipmitool -I lanplus -H <ipmi_ip> -U ADMIN -P ADMIN raw 0x3c 0x40
Disable Auto Control
ipmitool raw 0x30 0x45 0x1 0x01
Set Fan Speed to not ear cancer
ipmitool raw 0x30 0x70 0x66 0x01 0x00 0x15
Factory reset
<g class="gr_ gr_98 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling" id="98" data-gr-id="98">ipmitool</g> -I <g class="gr_ gr_97 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling ins-del multiReplace" id="97" data-gr-id="97"><g class="gr_ gr_97 gr-alert gr_spell gr_inline_cards gr_disable_anim_appear ContextualSpelling ins-del multiReplace" id="97" data-gr-id="97"><g class="gr_ gr_97 gr-alert gr_spell gr_inline_cards gr_disable_anim_appear ContextualSpelling ins-del multiReplace" id="97" data-gr-id="97">lanplus</g></g></g> -H 1.1.1.1 -U ADMIN -P ADMIN raw 0x3c 0x40
Restart
<g class="gr_ gr_107 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling" id="107" data-gr-id="107">ipmitool</g> -I <g class="gr_ gr_105 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling ins-del multiReplace" id="105" data-gr-id="105"><g class="gr_ gr_105 gr-alert gr_spell gr_inline_cards gr_disable_anim_appear ContextualSpelling ins-del multiReplace" id="105" data-gr-id="105"><g class="gr_ gr_105 gr-alert gr_spell gr_inline_cards gr_disable_anim_appear ContextualSpelling ins-del multiReplace" id="105" data-gr-id="105">lanplus</g></g></g> -H 1.1.1.1 -U ADMIN -P ADMIN <g class="gr_ gr_106 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling ins-del multiReplace" id="106" data-gr-id="106">bmc</g> reset cold
SMCIPMITool
./jre/bin/java -jar SMCIPMITool.jar {{ ipmi_ip }} ADMIN ADMIN shell