To run a python script in all the machines from one server

Martin P. Hellwig mhellwig at xs4all.nl
Tue Mar 28 04:54:03 EST 2006


muttu2244 at yahoo.com wrote:
> Hi Everyone
> 
> I want to run a python script in all the machines that are connected
> through local network and collect the information about that machine
> such as HDD size, RAM capacity(with number of slots)  ,processer speed
> etc.
> 
> But i want to run a script from just the server, so that it should
> start scripts in all other machines, and get their local machines
> information and dump the same information in some FTP.
> 
> Could you please let me know how can i do this??
> 
> Thanks 
> Yogi
> 
You could create a xmlrpc server on all clients, that listens for such a 
request, then your server (which is an xmlrpc client) calls all the 
clients on the appropriate exposed function, then the client proceeds on 
gathering the required information and puts it using ftplib on the ftp 
share. It is also possible to return all info via the xmlrpc call and 
let the server do the ftp part, all depends on your requirements.

If your on a NT only network a better route would be to use WMI.

-- 
mph



More information about the Python-list mailing list