Stunning data ... but doesnt tell me if the nic is unpluged .. :-(<br><br><div><span class="gmail_quote">On 8/31/06, <b class="gmail_sendername">Tod Merley</b> <<a href="mailto:todbot88@gmail.com">todbot88@gmail.com</a>
> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">On 8/31/06, Gregory Machin <<a href="mailto:gregory.machin@gmail.com">gregory.machin@gmail.com
</a>> wrote:<br>> Is there not a value in /proc i can get ??<br>><br>><br>> On 8/31/06, Frank Elsner <<a href="mailto:Elsner@zrz.tu-berlin.de">Elsner@zrz.tu-berlin.de</a>> wrote:<br>> > On Thu, 31 Aug 2006 12:04:12 +0200 Gregory Machin wrote:
<br>> > > Hi.<br>> > > I need to write a script the can restart services based on where a cable<br>> is<br>> > > plugged into a nic or not ..<br>> > > How do I get the status of the carrier on the nic ...
<br>> ><br>> > The output of "ethtool ethX" contains the line<br>> ><br>> > Link detected: yes<br>> ><br>> > and the output of "mii-tool ethX" shows<br>
> ><br>> > eth0: negotiated 100baseTx-FD, link ok<br>> ><br>> > which both should be usable for your purpose.<br>> ><br>> ><br>> ><br>> > --Frank Elsner<br>
> ><br>> > --<br>> > fedora-list mailing list<br>> > <a href="mailto:fedora-list@redhat.com">fedora-list@redhat.com</a><br>> > To unsubscribe:<br>> <a href="https://www.redhat.com/mailman/listinfo/fedora-list">
https://www.redhat.com/mailman/listinfo/fedora-list</a><br>> ><br>><br>><br>><br>> --<br>> Gregory Machin<br>> <a href="mailto:gregory.machin@gmail.com">gregory.machin@gmail.com</a><br>> <a href="http://www.linuxpro.co.za">
www.linuxpro.co.za</a><br>> --<br>> fedora-list mailing list<br>> <a href="mailto:fedora-list@redhat.com">fedora-list@redhat.com</a><br>> To unsubscribe:<br>> <a href="https://www.redhat.com/mailman/listinfo/fedora-list">
https://www.redhat.com/mailman/listinfo/fedora-list</a><br>><br>><br><br>Hi Gregory Machin!<br><br>You might find this interesting (note: email wrap will probably mess<br>up the display, I needed to put my terminal to full screen to properly
<br>see it):<br><br>tod@tod-desktop:~/Desktop$ cat /proc/net/dev<br>Inter-| Receive | Transmit<br> face |bytes packets errs drop fifo frame compressed<br>multicast|bytes packets errs drop fifo colls carrier compressed
<br> lo: 832 13 0 0 0 0 0 0<br>832 13 0 0 0 0 0 0<br> eth0: 862723 2467 0 0 0 0 0 0<br>614738 2224 0 0 0 0 0 0
<br> sit0: 0 0 0 0 0 0 0 0<br> 0 0 0 0 0 0 0 0<br>tod@tod-desktop:~/Desktop$<br><br>Good hunting!<br><br>Tod<br><br>--<br>fedora-list mailing list
<br><a href="mailto:fedora-list@redhat.com">fedora-list@redhat.com</a><br>To unsubscribe: <a href="https://www.redhat.com/mailman/listinfo/fedora-list">https://www.redhat.com/mailman/listinfo/fedora-list</a><br></blockquote>
</div><br><br clear="all"><br>-- <br>Gregory Machin<br><a href="mailto:gregory.machin@gmail.com">gregory.machin@gmail.com</a><br><a href="http://www.linuxpro.co.za">www.linuxpro.co.za</a>