On Wed, 13 Jul 2005 11:09:57 +0300, Edvard Majakari <[EMAIL PROTECTED]> wrote:
>
> Suppose one wants to fetch the following data from given network interface,
> say, eth0:
>
Ethinf('eth0').addr()
> '192.168.1.42/24'
...
Ethstat('eth0').rx_bytes()
> 14325235341223
...
> One could implement
Suppose one wants to fetch the following data from given network interface,
say, eth0:
>>> Ethinf('eth0').addr()
'192.168.1.42/24'
>>> Ethinf('eth0').route('default')
'192.168.1.1'
>>> Ethinf('eth0').duplex()
'full'
>>> Ethinf('eth0').speed()
100
Some statistics:
>>> Ethstat('eth0').rx_bytes()