Source

ediarpc / examples / edia-domainlist.py

Full commit
1
2
3
4
5
6
7
8
9
from ediarpc import rpc_client
from pprint import pprint
cli = rpc_client.ServerProxy('142.4.218.16', 5959, 'moocows'.encode('ascii'), True, iterations=15)

print "Calling domain_list() RPC on bhs0"
list = cli.domain_list()

for domain, stats in list.items():
    print domain