grid_info.py 299 B

123456789101112
  1. #!/usr/bin/python
  2. # -*- encoding: utf-8 -*-
  3. import xmlrpclib
  4. # XML-RPC URL (http_listener_port)
  5. gridServerURL = 'http://127.0.0.1:9000'
  6. # instantiate server object
  7. gridServer = xmlrpclib.Server(gridServerURL)
  8. # invoke admin_alert: requires password and message
  9. print gridServer.get_grid_info({})