diff options
Diffstat (limited to '')
-rw-r--r-- | share/python/grid_info.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/share/python/grid_info.py b/share/python/grid_info.py new file mode 100644 index 0000000..8a89328 --- /dev/null +++ b/share/python/grid_info.py | |||
@@ -0,0 +1,12 @@ | |||
1 | #!/usr/bin/python | ||
2 | # -*- encoding: utf-8 -*- | ||
3 | import xmlrpclib | ||
4 | |||
5 | # XML-RPC URL (http_listener_port) | ||
6 | gridServerURL = 'http://127.0.0.1:9000' | ||
7 | |||
8 | # instantiate server object | ||
9 | gridServer = xmlrpclib.Server(gridServerURL) | ||
10 | |||
11 | # invoke admin_alert: requires password and message | ||
12 | print gridServer.get_grid_info({}) | ||