LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices



Reply
 
Search this Thread
Old 10-13-2007, 02:42 AM   #1
ravi.xolve
Member
 
Registered: Jul 2006
Posts: 89

Rep: Reputation: 15
Question 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.
I would also prefer if I am able to log the information when the cable was plugged/unplugged .
 
Old 10-13-2007, 10:55 AM   #2
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 328Reputation: 328Reputation: 328Reputation: 328
NetworkManager is installed by default on some desktop oriented distributions (like Fedora). It does what you want, and much more.
 
Old 10-13-2007, 11:45 PM   #3
ravi.xolve
Member
 
Registered: Jul 2006
Posts: 89

Original Poster
Rep: Reputation: 15
Any solutionw which is console based?
 
Old 10-13-2007, 11:55 PM   #4
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 328Reputation: 328Reputation: 328Reputation: 328
Sure:

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Detect network cable being plugged in Vgui Slackware 7 01-03-2009 07:22 AM
if( ethernet-cable-is-plugged-in ) { ... mrtwice Linux - Networking 13 10-08-2006 03:57 PM
What happens when a network cable is plugged in ? balajipriya Linux - Networking 1 08-12-2004 10:10 AM
dhcpcd, no network cable plugged in meyert Slackware 3 04-28-2004 09:34 PM
Automatically Connect when cable is plugged in?? NovaBurst Fedora 2 02-18-2004 10:15 AM


All times are GMT -5. The time now is 01:41 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration