Home News Forum Articles
  Welcome back Join CF
You are here You are here: Home | Forum | Logging/Detecting connection of Ethernet cable

You are currently viewing our boards as a guest which gives you limited access to view most of the discussions, articles and other free features. By joining our Virgin Media community you will have full access to all discussions, be able to view and post threads, communicate privately with other members (PM), respond to polls, upload your own images/photos, and access many other special features. Registration is fast, simple and absolutely free so please join our community today.


Welcome to Cable Forum
Go Back   Cable Forum > Computers & IT > Networking
Register FAQ Community Calendar

Logging/Detecting connection of Ethernet cable
Reply
 
Thread Tools
Old 30-08-2007, 19:46   #1
Raistlin
Inactive
 
Join Date: Feb 2004
Location: There's no place like 127.0.0.1
Services: Depends on the person and the price they're offering
Posts: 12,384
Raistlin is seeing silvered starsRaistlin is seeing silvered starsRaistlin is seeing silvered stars
Raistlin is seeing silvered starsRaistlin is seeing silvered starsRaistlin is seeing silvered starsRaistlin is seeing silvered starsRaistlin is seeing silvered starsRaistlin is seeing silvered starsRaistlin is seeing silvered starsRaistlin is seeing silvered starsRaistlin is seeing silvered starsRaistlin is seeing silvered starsRaistlin is seeing silvered starsRaistlin is seeing silvered stars
Logging/Detecting connection of Ethernet cable

Hey Guys,

Is it possible to log the connection of an Ethernet cable in my laptop's Ethernet adaptor?

Basically, I want to detect if a cable has been plugged in.

Thanks.
Raistlin is offline   Reply With Quote
Advertisement
Old 30-08-2007, 20:50   #2
GeoffW
Inactive
 
GeoffW's Avatar
 
Join Date: Nov 2003
Location: Reading
Posts: 256
GeoffW has a spectacular aura about themGeoffW has a spectacular aura about themGeoffW has a spectacular aura about themGeoffW has a spectacular aura about them
Re: Logging/Detecting connection of Ethernet cable

A bit of overkill, but SNMP traps will do this for you, or you could poll ifOperStatus (MIB2)
GeoffW is offline   Reply With Quote
Old 30-08-2007, 21:05   #3
Raistlin
Inactive
 
Join Date: Feb 2004
Location: There's no place like 127.0.0.1
Services: Depends on the person and the price they're offering
Posts: 12,384
Raistlin is seeing silvered starsRaistlin is seeing silvered starsRaistlin is seeing silvered stars
Raistlin is seeing silvered starsRaistlin is seeing silvered starsRaistlin is seeing silvered starsRaistlin is seeing silvered starsRaistlin is seeing silvered starsRaistlin is seeing silvered starsRaistlin is seeing silvered starsRaistlin is seeing silvered starsRaistlin is seeing silvered starsRaistlin is seeing silvered starsRaistlin is seeing silvered starsRaistlin is seeing silvered stars
Re: Logging/Detecting connection of Ethernet cable

Ok, not sure how to implement either of those - like you say, they certainly sound like overkill.

What I'm trying to establish is actually whether or not the Ethernet loopback plugs I've built are functioning correctly (basicaly a standard Cat5 plug with pins 1 and 3 connected internally, and plugs 2 and 6 connected internaly).

This should (in theory) be sufficient to convince the adaptor that it's connected to a network.
Raistlin is offline   Reply With Quote
Old 31-08-2007, 19:41   #4
GeoffW
Inactive
 
GeoffW's Avatar
 
Join Date: Nov 2003
Location: Reading
Posts: 256
GeoffW has a spectacular aura about themGeoffW has a spectacular aura about themGeoffW has a spectacular aura about themGeoffW has a spectacular aura about them
Re: Logging/Detecting connection of Ethernet cable

OK, I thought you wanted some sort of longer term monitoring on the interface.

The green led on the NIC will tell you if there is carrier, or you could do an ifconfig or netstat -i to get the interface status, or look in the network configuration gui.
GeoffW is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

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 On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 04:10.


Server: osmium.zmnt.uk
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.