Re: nic + detecting the presence of a carrier

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

 



Stunning data ... but doesnt tell me if the nic is unpluged .. :-(

On 8/31/06, Tod Merley <todbot88@xxxxxxxxx > wrote:
On 8/31/06, Gregory Machin <gregory.machin@xxxxxxxxx > wrote:
> Is there not a value in /proc i can get ??
>
>
> On 8/31/06, Frank Elsner <Elsner@xxxxxxxxxxxxxxxx> wrote:
> > On Thu, 31 Aug 2006 12:04:12 +0200 Gregory Machin wrote:
> > > Hi.
> > > I need to write a script the can restart services based on where a cable
> is
> > > plugged into a nic or not ..
> > > How do I get the status of the carrier on the nic ...
> >
> > The output of "ethtool ethX" contains the line
> >
> >                Link detected: yes
> >
> > and the output of "mii-tool ethX" shows
> >
> >                    eth0: negotiated 100baseTx-FD, link ok
> >
> > which both should be usable for your purpose.
> >
> >
> >
> > --Frank Elsner
> >
> > --
> > fedora-list mailing list
> > fedora-list@xxxxxxxxxx
> > To unsubscribe:
> https://www.redhat.com/mailman/listinfo/fedora-list
> >
>
>
>
> --
> Gregory Machin
> gregory.machin@xxxxxxxxx
> www.linuxpro.co.za
> --
> fedora-list mailing list
> fedora-list@xxxxxxxxxx
> To unsubscribe:
> https://www.redhat.com/mailman/listinfo/fedora-list
>
>

Hi  Gregory Machin!

You might find this interesting (note: email wrap will probably mess
up the display, I needed to put my terminal to full screen to properly
see it):

tod@tod-desktop:~/Desktop$ 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:     832      13    0    0    0     0          0         0
832      13    0    0    0     0       0          0
  eth0:  862723    2467    0    0    0     0          0         0
614738    2224    0    0    0     0       0          0
  sit0:       0       0    0    0    0     0          0         0
  0       0    0    0    0     0       0          0
tod@tod-desktop:~/Desktop$

Good hunting!

Tod

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list



--
Gregory Machin
gregory.machin@xxxxxxxxx
www.linuxpro.co.za
-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux