How to pull NIC MAC addresses from a SuperMicro ILO using ipmitool

Some handy commands to grab NIC MAC addresses from SuperMicro ILOs. In our case each host had 2 onboard NICs and I used the following to pull the MAC of both:

ipmitool -I lanplus -H IP -U USER -P PASSWORD raw 0x30 0x21 | head -1 | cut -b 14-30 | sed 's/ /:/g'
ipmitool -I lanplus -H IP -U USER -P PASSWORD raw 0x30 0x9f | head -1 | cut -b 5-21 | sed 's/ /:/g'

Output will will be formatted as a typical mac address.

You may also like...