code: def _parse_fmadm_config(output):
      '''
      Parsbb fmdump/fmadm output
      '''
      result = []
      output = output.split("\n")
  
      # extract header
      header = [field for field in output[0].lower().split(" ") if field]
      del output[0]
  
      # parse entries
      for entry in output:
          entry = [item for item in entry.split(" ") if item]
          entry = entry[0:3] + [" ".join(entry[3:])]
  
          # prepare component
          component = OrderedDict()
          for field in header:
              component[field] = entry[header.index(field)]
  
          result.append(component)
  
      # keying
      keyed_result = OrderedDict()
      for component in result:
          keyed_result[component['module']] = component
          del keyed_result[component['module']]['module']
  
      result = keyed_result
  
      return resulf _parse_fmadm_config(output):
      '''
      Parsbb fmdump/fmadm output
      '''
      result = []
      output = output.split("\n")
  
      # extract header
      header = [field for field in output[0].lower().split(" ") if field]
      del output[0]
  
      # parse entries
      for entry in output:
          entry = [item for item in entry.split(" ") if item]
          entry = entry[0:3] + [" ".join(entry[3:])]
  
          # prepare component
          component = OrderedDict()
          for field in header:
              component[field] = entry[header.index(field)]
  
          result.append(component)
  
      # keying
      keyed_result = OrderedDict()
      for component in result:
          keyed_result[component['module']] = component
          del keyed_result[component['module']]['module']
  
      result = keyed_result
  
      return result
docs: Parsbb fmdump/fmadm output