Re: how do i check internet connectivity?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 3 Mar 2003, Cesar Adamos wrote:

> >Why not use ping, unless this is an academic exercise?
>
> Nod, is easy enough to use ping, but I will need a target IP
> for it. I was thinking of getting events from the LAN card
> or something of the like. I was able to do this in windows
> based on a WMI sample i found in net, just dont know where
> to start in linux.


You could start with a few of the files in /proc/net. 

$ cat /proc/net/dev
Inter-|   Receive                                                |  Transmit 
face  |bytes    packets errs drop fifo frame compressed multicast|bytes    packets errs drop fifo colls carrier compressed
    lo: 2981347    1892    0    0    0     0          0         0  2981347    1892    0    0    0     0       0          0 
  eth0:112563502  367401    0    0    0     0          0         0 70524905  278334    0    0    0     0       0          0
$ 


I know this is just a byte/packet count, but it might be what you are 
looking for.


-- 
 Arend 





-- 
Psyche-list mailing list
Psyche-list@redhat.com
https://listman.redhat.com/mailman/listinfo/psyche-list

[Index of Archives]     [Fedora General Discussion]     [Red Hat General Discussion]     [Centos]     [Kernel]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat 9]     [Gimp]     [Yosemite News]

  Powered by Linux