main_nic_extractor

Author: Athanasios Gkaraliakos email: a.gkaraliakos@gmail.com email: athanasios.gkaraliakos@cern.ch

The script is written on python >=2.6

Script to identify which is the main network interface used by the current box.

bin.main_nic_extractor.main()[source]

This script tries to identify which is the main network interface used by the current box using the machine host name. It resolves the host name via DNS and returns the interface ( nic ) that uses this IPv4/IPv6 address

Returns:Returns only the name of the interface ( e.g. eth0 )
bin.main_nic_extractor.main_nic_extractor()[source]

This script tries to identify which is the main network interface used by the current box using the machine host name. It resolves the host name via DNS and returns the interface ( nic ) that uses this IPv4/IPv6 address

Returns:Returns only the name of the interface ( e.g. eth0 )