[IPython-User] Get IP's of connected engines?

MinRK benjaminrk@gmail....
Tue Feb 28 11:01:20 CST 2012

The same way you would get IPs of the current machine in Python, just
called remotely:

def get_ips():
    """return all IPs associated with each engine"""
    import socket
    return socket.gethostbyname_ex(socket.gethostname())

# use AsyncResult.get_dict to conveniently get a dict by engine-id
mapping = client[:].apply_async(get_ips).get_dict()


On Tue, Feb 28, 2012 at 03:53, Darren Govoni <darren@ontrenet.com> wrote:

> Hi,
>  I forget if this was asked before and I couldn't find it. But is there
> a way to get the IP addresses of connected engines from a Client() or
> similar interface?
> thanks.
> _______________________________________________
> IPython-User mailing list
> IPython-User@scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-user
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/ipython-user/attachments/20120228/419a4c0d/attachment.html 

More information about the IPython-User mailing list