aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/share/python
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--share/python/grid_info.py12
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 -*-
3import xmlrpclib
4
5# XML-RPC URL (http_listener_port)
6gridServerURL = 'http://127.0.0.1:9000'
7
8# instantiate server object
9gridServer = xmlrpclib.Server(gridServerURL)
10
11# invoke admin_alert: requires password and message
12print gridServer.get_grid_info({})