code: def server_console_output(request, instance_id, tail_length=None):
      
      nc = _nova.novaclient(request)
      return nc.servers.get_console_output(instance_id, length=tail_length)
docs: Gets console output of an instance.