def METHOD_NAME(self,fru_id,reg_name):
    output = None
    try:
        self.IPMI_FRU_DATA[3] = str(fru_id)
        status, ipmi_fru_list = getstatusoutput_noshell(self.IPMI_FRU_DATA)
        if status == 0:
            for item in ipmi_fru_list.split("\n"):
                if reg_name in item:
                    output = item.strip()
                    if output is None:
                        logging.error('\nFailed to fetch: ' +  reg_name + ' sensor ')
                    output = output.split(':')[1].strip(' ')
                    if output == 'F2B' or output == 'B2F':
                        return output
    except Exception:
        logging.error('Failed to execute:' + ipmi_fru_list)