[K12OSN] OT: random

Jim McQuillan jam at mcquil.com
Thu Dec 6 17:36:13 UTC 2007


Peter,

Instead of using ifconfig, take a look at "mii-tool eth0" or "ethtool eth0".

Both of those will report whether there is a link or not.

Jim McQuillan
jam at Ltsp.org




Peter Hartmann wrote:
> I've written a bash script to do some data acquisition from a relay.
> Since I'm just measuring on/off, I'm not messing with serial of
> parallel ports and extra equipment.  I'm planning on using an extra
> nic card with a loopback ethernet cable.   I tested this on my laptop
> running FC6.  When the loopback circuit is complete ifconfig shows
> "RUNNING". When the circuit is broken RUNNING is not shown.   However,
> the platform is FC3.  FC3, as well as FC5 don't react this way when
> there's not network connection.  What is this function called?  Media
> check?  Is there another way of getting that information on these
> older OSes?
> 
> 
> Thanks!
> 
> Peter
> 
> _______________________________________________
> K12OSN mailing list
> K12OSN at redhat.com
> https://www.redhat.com/mailman/listinfo/k12osn
> For more info see <http://www.k12os.org>




More information about the K12OSN mailing list