code: def _run_ipmitool(cmd):
          
  
          log().debug('Running ipmitool "%s"', cmd)
  
          child = Popen(cmd, shell=True, stdout=PIPE)
          output = child.communicate()[0]
  
          log().debug('return with rc=%d, output was:\n%s',
                      child.returncode,
                      output)
  
          return output, child.returncode
docs: Legacy call of ipmitool (will be removed in future).