LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (http://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Ethernet cable (un)plugged status (http://www.linuxquestions.org/questions/linux-networking-3/ethernet-cable-un-plugged-status-591444/)

ravi.xolve 10-13-2007 01:42 AM

Ethernet cable (un)plugged status
 
I found that my friend using windows could easily know if the network cable is plugged in the ethernet port or not by simple notificaions from the taskbar. However, I use GNU/Linux and I need to physically check if the cable is in place.

How should I know the network cable status from the monitor itself.:scratch:
I would also prefer if I am able to log the information when the cable was plugged/unplugged :rolleyes:.

macemoneta 10-13-2007 09:55 AM

NetworkManager is installed by default on some desktop oriented distributions (like Fedora). It does what you want, and much more.

ravi.xolve 10-13-2007 10:45 PM

Any solutionw which is console based?

macemoneta 10-13-2007 10:55 PM

Sure:

Code:

/sbin/ethtool eth0 | /bin/grep Link
        Link detected: yes



All times are GMT -5. The time now is 03:57 AM.