code: def execute_command(self, command):
          
          logger.debug('Executing commands:\n %s' % command)
  
          err_msg = 'Something happened when executing some commands on device'
  
          chan = self.ssh.get_transport().open_session()
          chan.settimeout(5)
  
          chan.exec_command(command)
  
          error_chan = chan.makefile_stderr()
          output_chan = chan.makefile()
  
          error = ''
          output = ''
          for e in error_chan.read():
              error = error + self._read_wrapper(e)
          for o in output_chan.read():
              output = output + self._read_wrapper(o)
  
          if len(error) > 0:
              msg = '%s %s:\n%s\n%s' % (err_msg, self.ssh.get_host_keys().keys()[0], command, error)
              logger.error(msg)
              raise exceptions.CommandExecutionException(msg)
  
          regex = re.compile('Command fail')
          if len(regex.findall(output)) > 0:
              msg = '%s %s:\n%s\n%s' % (err_msg, self.ssh.get_host_keys().keys()[0], command, output)
              logger.error(msg)
              raise exceptions.CommandExecutionException(msg)
  
          output = output.splitlines()
  
          # We look for the prompt and remove it
          i = 0
          for line in output:
              current_line = line.split('#')
  
              if len(current_line) > 1:
                  output[i] = current_line[1]
              else:
                  output[i] = current_line[0]
              i += 1
  
          return output[:-1]
docs: This method will execute the commands on the device without as if you were just connected to it (it will not
          enter into any vdom). This method is not recommended unless you are 100% sure of what you are doing.
  
  
          Args:
              * **command** (str) -- Command to execute.
  
          Returns:
              A list of strings containing the output.
  
          Raises:
              exceptions.CommandExecutionException -- If it detects any problem with the command.