OpenSimMirror/share/python/grid_info.py

13 lines
299 B
Python
Raw Permalink Normal View History

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