xcat2 / xcat-core

Code repo for xCAT core packages
Eclipse Public License 1.0
372 stars 173 forks source link

Partial MTM set in dodiscovery for some Supermicro machines #7397

Closed kcgthb closed 9 months ago

kcgthb commented 1 year ago

Recent BIOS updates on some Supermicro machines now return FRU pages with empty fields

For instance, a AS -2124GQ-NART server with BIOS ver. 2.5 returns:

 # ipmitool fru print 0
 Chassis Type          : Other
 Chassis Part Number   : CSE-228GTS-R2K21P
 Chassis Serial        : [redacted]
 Board Mfg Date        : Fri 01 Oct 2021 02:53:00 AM PDT PDT
 Board Mfg             : Supermicro
 Board Product         : H12DSG-Q-CPU6
 Board Serial          : [redacted]
 Board Part Number     : H12DSG-Q-CPU6
 Product Manufacturer  : Supermicro
 Product Part Number   : AS -2124GQ-NART
 Product Serial        : [redacted]

But with BIOS ver. 2.5b. it now returns the following:

# ipmitool fru print 0
 Chassis Type          : Other
 Chassis Part Number   : CSE-228GTS-R2K21P
 Chassis Serial        : [redacted]
 Board Mfg Date        : Sun Apr 23 04:33:00 2023 PDT
 Board Mfg             : Supermicro
 Board Product         : H12DSG-Q-CPU6
 Board Serial          : [redacted]
 Board Part Number     : H12DSG-Q-CPU6
 Product Manufacturer  : Supermicro
 Product Name          :
 Product Part Number   : AS -2124GQ-NART
 Product Version       :
 Product Serial        : [redacted]
 Product Asset Tag     :

The empty fields are not really empty, they contain a space:

# ipmitool fru print 0 | grep "Product [M|N]" | sed 's/$/|/g'
 Product Manufacturer  : Supermicro|
 Product Name          :  |

So with that format, the dodiscovery script returns " " as the product name, which results in an incomplete MTM field:

Object name: sh03-18n15
    mtm=Supermicro:
Obihoernchen commented 9 months ago

PR merged. Thank you!