Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(1)  |  Call(1)  |  Derive(0)  |  Import(0)

        def initMachine(machine, port):

	try:
		agent = agentclient(host=machine,port=port)
		agent.connect()
		wlss,servers,domains = agent.searchAll()
		search.saveMachine(machine,port)
		
		for wls in wlss :
			search.saveWLS(machine,*wls)
		for server in servers :
			search.saveServer(machine,*server)
		for domain in domains :
			search.saveDomain(machine,*domain)

		return "%s initialise successfully." % machine
	except:
		traceback.print_exc()
		return "%s initialise failed." % machine
        


src/w/l/wlnm-1.0.1/wlnm/wlnsd.py   wlnm(Download)
def initMachine(machine, port):
	return server.initMachine(machine, port)
 
def showMachines():
	return server.showMachines()