4 # FIXME: should import the client lib, not XMLRPC lib, when we are done
17 import func
.overlord
.client
as func_client
18 print func_client
.Client("*").hardware
.pci_info()
19 #print func_client.Client("*").test.add(1,2)
20 #print func_client.Client("*").hardware.info()
21 #print func_client.Client("*").run("hardware","info",[])
22 #print func_client.Client(socket.gethostname(),noglobs=True).test.add("1","2")
25 # get a connecton (to be replaced by client lib logic)
26 s
= xmlrpclib
.ServerProxy("http://127.0.0.1:51234")
28 # here's the basic test...
29 print s
.test
.add(1, 2)
35 print s
.process
.info()
36 # print s.process.pkill("thunderbird")
38 # here's the service module testing
40 print s
.service
.restart("httpd")
43 print s
.hardware
.info()
45 # this is so I can remember how the virt module works
48 # example of using koan to install a virtual machine
49 #s.virt_install("mdehaan.rdu.redhat.com","profileX")
52 vms
= s
.virt
.list_vms()
53 # example of stopping all stopped virtual machines
54 print "list of virtual instances = %s" % vms
56 status
= s
.virt
.status(vm
)
58 if status
== "shutdown":