Skip to content
Hippie Hacker edited this page May 4, 2015 · 1 revision

SMC IPMI Tool from SuperMicro

ftp://ftp.supermicro.com/utility/SMCIPMItool/Linux/

http://www.supermicro.com/products/nfo/files/SSM/SSM_brochure.pdf http://www.smicro.cz/userfiles/downloads/SMCIPMITool_User_Guide.pdf

SFT-OOB-LIC Per node license for OOB BIOS management mechanism
SFT-SCM-LIC Per node license for Command Management Utility
SFT-SPM-LIC Per node license for Power Management Utility
 ./SMCIPMITool 192.168.3.31 ADMIN ADMIN find 192.168.3.31 192.168.3.38 255.255.255.0
host add s1 191.168.1.31 ADMIN ADMIN
host add s2 192.168.1.32 ADMIN ADMIN
host add s3 193.168.1.33 ADMIN ADMIN
host add s4 194.168.1.34 ADMIN ADMIN
host add s5 195.168.1.35 ADMIN ADMIN
host add s6 196.168.1.36 ADMIN ADMIN
host add s7 197.168.1.37 ADMIN ADMIN
host add s8 198.168.1.38 ADMIN ADMIN
host group add cloud
host group addhost cloud s2
host group addhost cloud s3
host group addhost cloud s4
host group addhost cloud s5
host group addhost cloud s6
host group addhost cloud s7
host group addhost cloud s8
There is an interactive shell:

./SMCIPMITool 192.168.3.31 ADMIN ADMIN shell

And the shell has all the other commands and that includes 'exec ./filename.ipmi'

If you create a script that includes a dev2iso, I think it starts a
daemon that there can only be one per SMCIPMITool process.

I've tried running multiple dev2iso's to multiple VMs but it fails silently
with the Hardware not detecting the devices.

I also noticed that the process needs to be long running.
'./SMCIPMITool 192.168.3.31 ADMIN ADMIN exec /path/to/filename.ipmi'
exits and closes down the ISO export process.

So for now we have to create the file:

cat > /tmp/bootiso.ipmi < EOF
vmwa dev2stop
vmwa dev2iso /home/hh/chef/bento/iso/en_windows_server_2012_r2_vl_x64_dvd_3319595.iso
ipmi power reset
ipmi power up
EOF

Then start up './SMCIPMITool 192.168.3.31 ADMIN ADMIN shell', and run
'exec /path/to/filename.ipmi' leaving the shell open until we finish with the disk.
# As root

vmwa dev1list
2: [sdb: SCSI Disk]
3: [sda1: SCSI Disk]
4: [sda5: SCSI Disk]
5: [sda4: SCSI Disk]
6: [sda3: SCSI Disk]
7: [sda2: SCSI Disk]


>ipmi power cycle ?
Available commands:
status                   power status
up                       power up system
down                     power down system
softshutdown             power softshotdown
reset                    power reset
bootoption <Index>       Force a boot device in next boot only
cycle [interval]         power cycle
diag                     pulse diagnostic interrupt


For bootoption index :
1: PXE            2:  Hard-drive
3: CD/DVD         4:  Bios
5: USB KEY        6:  USB HDD
7: USB Floppy     8:  USB CD/DVD
9: UEFI USB KEY   10: UEFI CD/DVD
Ex: set power cycle interval as 10 seconds and execute power