(self)
return None
Retrieves the Mainboard serial number.

    Returns:
      string of serial number
Retrieves the Mainboard serial number.
Retrieves the Mainboard serial number .
def GetMBSerialNumber(self):
    """Retrieves the Mainboard serial number.

    Returns:
      string of serial number
    """
    sp_type = 'SPHardwareDataType'
    for data in self._GetSystemProfile(sp_type):
      if data.get('_dataType', None) == sp_type:
        for item in data['_items']:
          if 'serial_number' in item:
            logging.debug('serial_number: %s', item['serial_number'])
            return item['serial_number']
    return None
def GetMBSerialNumber ( self ) : sp_type = 'SPHardwareDataType' for data in self . _GetSystemProfile ( sp_type ) : if data . get ( '_dataType' , None ) == sp_type : for item in data [ '_items' ] : if 'serial_number' in item : logging . debug ( 'serial_number: %s' , item [ 'serial_number' ] ) return item [ 'serial_number' ] return None