LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 01-02-2007, 04:54 PM   #1
dariosilvestre
LQ Newbie
 
Registered: Nov 2004
Location: Aldaia (Valencia, Spain)
Distribution: GuadaLinex (Debian)
Posts: 3

Rep: Reputation: 0
How to know when was an ethernet wire fisically unplugged from a server?


Hello, I'm experienced in Linux for only 2 years, and I would like to know if it's possible to know the date and time when an ethernet wire was unplugged from a server. This server is running Apache2, Tomcat 4.1.31, MySQL 4 and ProFTPd. The kernel version is 2.6.12-10.

Somebody removed the ethernet connection from a server in my office and I would like to know at what date and time he did it.

Can somebody help me?

Thank you.
 
Old 01-02-2007, 05:05 PM   #2
raskin
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900

Rep: Reputation: 69
dmesg | grep 'down'
If you have timestamps in dmesg - you'll have time in seconds since system boot. Maybe logs of servers, who stopped getting connections at the same time will make something clear.
 
Old 01-02-2007, 06:06 PM   #3
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
this typically gets logged to the /var/log/messages file...

for example, i just quickly unplugged a cable from one of my NICs and in /var/log/messages i can see this:
Code:
Jan  2 19:05:19 localhost kernel: [30618.307845] eth0: Media Link Off
Jan  2 19:05:29 localhost kernel: [30628.297771] eth0: Media Link On 100mbps full-duplex
as you can see, the time and date are clearly printed...

Last edited by win32sux; 01-02-2007 at 06:07 PM.
 
Old 01-03-2007, 04:52 PM   #4
dariosilvestre
LQ Newbie
 
Registered: Nov 2004
Location: Aldaia (Valencia, Spain)
Distribution: GuadaLinex (Debian)
Posts: 3

Original Poster
Rep: Reputation: 0
Thank you

Thank you very much for your help.

I found the logged record in the file /var/log/messages and in the file /var/log/kern.log as a "NIC link is Down" error message.

Thanks a lot.
 
  


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
DISCUSSION: Becoming Unplugged jeremy LinuxAnswers Discussion 3 02-14-2007 05:54 AM
Power !?! (need more time unplugged) vanwas Linux - Laptop and Netbook 1 01-11-2005 01:03 AM
Keyboard locked when mouse is unplugged Doomhammer Linux - Software 0 10-06-2004 12:51 PM
laptop crashes when unplugged avatardeviva Linux - Laptop and Netbook 13 02-12-2004 12:41 PM
Torvalds unplugged - an interview with Linus jeremy Linux - General 0 11-19-2000 11:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:54 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
Open Source Consulting | Domain Registration