On Thu, Sep 25, 2008 at 11:29 AM, Alan Cox <alan@xxxxxxxxxxxxxxxxxxx> wrote: > On Thu, 25 Sep 2008 11:15:56 +0100 > "Dan Track" <dan.track@xxxxxxxxx> wrote: > >> Hi >> >> Is there a way to identify whether a network card has a rj45 cable >> plugged into it from linux? > > ethtool > /sbin/ethtool eth0 > Settings for eth0: > Supported ports: [ TP ] > Supported link modes: 10baseT/Half 10baseT/Full > 100baseT/Half 100baseT/Full > 1000baseT/Half 1000baseT/Full > Supports auto-negotiation: Yes > Advertised link modes: 10baseT/Half 10baseT/Full > 100baseT/Half 100baseT/Full > 1000baseT/Half 1000baseT/Full > Advertised auto-negotiation: Yes > Speed: 1000Mb/s > Duplex: Full > Port: Twisted Pair > PHYAD: 0 > Transceiver: internal > Auto-negotiation: on > Supports Wake-on: pg > Wake-on: d > Current message level: 0x000000ff (255) > Link detected: yes > Thanks Alan, that was spot on. I assume the "link detected" means that a cable is connected in. Dan -- fedora-list mailing list fedora-list@xxxxxxxxxx To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines