code: def execute_request(server_url, creds, namespace, classname):
      
  
      print('Requesting url=%s, ns=%s, class=%s' % \
          (server_url, namespace, classname))
  
      try:
          # Create a connection
          CONN = WBEMConnection(server_url, creds,
                                default_namespace=namespace,
                                no_verification=True)
  
          #Issue the request to EnumerateInstances on the defined class
          INSTANCES = CONN.EnumerateInstances(classname)
  
          #Display of characteristics of the result object
          print('instances type=%s len=%s' % (type(INSTANCES),
                                              len(INSTANCES)))
          #display the mof output
          for inst in INSTANCES:
              print('path=%s\n' % inst.path)
              print(inst.tomof())
  
      # handle any exception
      except Error as err:
          # If CIMError, display CIMError attributes
          if isinstance(err, CIMError):
              print('Operation Failed: CIMError: code=%s, Description=%s' % \
                    (err.status_code_name, err.status_description))
          else:
              print ("Operation failed: %s" % err)
          sys.exit(1)
docs: Open a connection with the server_url and creds, and
          enumerate instances defined by the functions namespace and
          classname arguments.
          Displays either the error return or the mof for instances
          returned.