pyfarm.agent.sysinfo.network module¶
Network¶
Returns information about the network including ip address, dns, data sent/received, and some error information.
const IP_PRIVATE: | |
---|---|
set of private class A, B, and C network ranges See also |
|
const IP_NONNETWORK: | |
set of non-network address ranges including all of the above constants except the IP_PRIVATE |
- pyfarm.agent.sysinfo.network.mac_addresses(long_addresses=False, as_integers=False)[source]¶
Returns a tuple of all mac addresses on the system.
Parameters:
- pyfarm.agent.sysinfo.network.hostname(trust_name_from_ips=True)[source]¶
Returns the hostname which the agent should send to the master.
Parameters: trust_resolved_name (bool) – If True and all addresses provided by addresses() resolve to a single hostname then just return that name as it’s the most likely hostname to be accessible by the rest of the network.