Ethernet Link Status Detection

Hi,
I am trying to write a program to detect the ethernet link status of an hme/eri ethernet driver.
It is possible to do so using the "ndd -get /dev/hme link_status" command. However, I need
a very efficient inplementation which can accomplish this in a couple of ms.
The ndd man page describes that it uses some ioctl calls to the driver. However, I was not able
to find any specifics of how to make the ioctl call. The /usr/inlcude/sys/hme.h page provides some
#define that may be being used but I still haven't been able to figure out how to make the ioctl
call.
Previously, I was planning to use the kstat API which has an ifspeed parameter, but my tests
show that this is not updated if the ethernet link goes down.
Any help by providing details of the ioctl call or pointing out some alternative approach will be very much appreciated.
Thanks
Pari

mlebryant wrote:
Network Settings for Ethernet says Not Connected.
Status: Cable Unplugged
Either the cable for Ethernet is not plugged in or the device at the other end is not responding.
Well, was/is it?  You make no mention of checking.
Please detail ALL you have done so far in the way of troubleshooting?  Need this info to avoid the been there done that scenarios.
Did you run Diagnostics?  Results?

Similar Messages

  • Can you determine link status with USB Ethernet adapter?

    I'm wanting to replace an old G4 PowerBook with a 11" MacBookAir. I install networks, and I often need to determine link status of an Ethernet connection. With the built-in Ethernet port on most Macs, you can check the Network Status to see if there is link on an Ethernet connection (either the green or yellow status signs).
    If I am using the Apple USB Ethernet adapter, do I get similar feedback from the Network preference panel? If not, perhaps a terminal command that would do the same?

    Yes - the Network Panel under System Preferences works the same as with a regular Mac, showing USB Ethernet status (connected, disconnected, etc) and with the updated connected IP address, etc.

  • Ethernet Port Status 'No Link' ?

    I get this status on the ethernet port(on the summary stauts page an AP350)' No Link'
    1. I can connect to the device via ethernet.
    ( since its root Ap and not reapeater mode)
    2. I have tried replacing diff ver. of code.
    3. The help menu does not lists 'No Link' as a possible state. It only has Down, Up, Error.
    Does any one know whats going on ?
    I have constant messages Started drivers for port fe0 and Stopped drivers for port fe0.
    The port on the switch is alright. The clients connects to the AP and surf internet.
    Ping show connection intermitent.
    Is the AP gone bad ?

    Have you tried altering the speed/duplex setting on the AP? It could be having a spot of bother trying to auto-negotiate with whatever it is plugged into...
    Try nailing it down to 10BaseT/Half Duplex or something, see if that helps at all. (From the 'home' page, click the 'ethernet' link, and then 'set properties' - there should be a dropdown box there where you can select alternative settings) And if you can, configure the port on the device at the other end to the same settings (might be difficult if you are plugged into a hub and not a switch).
    Hope That Helps
    Kev

  • Windows host cannot establish Ethernet link to Arch Router

    This is a weird problem.
    I have a Windows host about 20 meters away from my Arch Router, the Ethernet cable goes into the wall, with wall sockets, so it's a total of 3 cables (1 in wall, 1 @ router, 1 @ host). I've tested the Ethernet cables with a LAN tester, they are all fine. When I connect the host to a Linksys router using the same cables, an IP address is obtained and the link is up and running.
    But when I connect the host to my Arch Router (an Arch computer with some network cards), no ethernet link at all is detected. No lights on the ethernet card of the host, and ethtool on the router reports the link being down. I have connected my laptop to this ethernet card of the router and it works just fine, I get an IP and I can surf the web etc.
    I really have no clue why this other host cannot establish a link. Does anyone have a clue what the problem might be?

    pyther is right. Check for Auto-MDIX support on your network cards.
    What network cards are you using?
    Rule of thumb:
    Auto-MDIX is a requirement in the Gigabit Ethernet specification, so proper Gigabit capable cards will work 99% of the time whatever cable you use.
    Fast Ethernet (100mbit) and below does not have Auto-MDIX in it's specification, so those 9 out of 10 of those cards will not perform it! When connecting these directly to another network card, use a cross-cable.
    Also make sure the network cards are in working order. I assume the ArchRouter PC's network runs fine when you connect that to your Linksys router?

  • Alerts for metro ethernet link

    Hi,
    Kindly let me know " How to enable alerts for metro ethernet link"
    Thanks..

    Hello Gureshi,
    they are probably referring to OAM, CFM and other mechanisms to detect link or service failure in metro ethernet scenarios
    see
    http://www.cisco.com/en/US/docs/switches/metro/me3400e/software/release/12.2_52_se/configuration/guide/swoam.html
    Hope to help
    Giuseppe

  • Getting the link status of network interface

    i want to query the ethernet interface to see if it's link status is enabled or disabled (like can be seen in the network utility)
    how do i check it with objc/cocoa?

    i'm sorry, but do you mean you don't think i would be able to create a hook with the SystemConfiguration framework, or at all?
    i want to create something like the network utility, which displays the changes the moment they accur.

  • ASR9001: Command to check Cluster Link status

    Hi there,
    Does anyone know of a command to check the cluster link status as well as SFP information (i.e. PID, serial, etc.)?
    Also, the documentation on Cisco seems to use EOBC port and cluster link port interchangeably.  Are these referring to the same thing?
    Thank you,
    George

    Hi George,
    SFP info such as serial can be found under 'show inventory'
    NAME: "module mau ControlEthernet0/RSP1/CPU0/S0/12", DESCR: "1000BASE-LX/LH SFP (DOM), SMF 10Km, MMF 550m"
    PID: SFP-GE-L           , VID: V01, SN: XXXXXXXXXXXXX
    Checking the nV edge EOBC (control) links can be done with the following commands:
    'show nv edge control swtich-ports-status brief loc '
    'show nv edge control control-link-protocols loc '
    'show nv edge control control-link-sfp [0|1|all] loc '
    The first command simply lists if the port at that second is up. Typically this would be the following ports (different ports on various chassis)
            12             SFP+_00_10GE:  up
            13             SFP+_01_10GE:  up
    The second commands provides a bit more detail.
    Key things to look at / what we should see:
    Port enable administrative configuration setting: Enabled
    Port enable operational state: Enabled
    Current bidirectional state: Bidirectional
    Current operational state: Advertisement - Single neighbor detected
    CLM Table version is x (if this number is high / increasing then a link is flapping)
    The final command some additional information. The following are some of the more important things to check
    port                                     : 0x00000000 (0) <-0 or 1
    SFP Plugged in                           : 0x00000001 (1) <-1 is true
    SFP Rx LOS                               : 0x00000000 (0)<- We want 0
    SFP Tx Fault                             : 0x00000000 (0) <-We want 0
    SFP Tx Enabled                           : 0x00000001 (1)<-We want 1
    HTH,
    Sam

  • Ethernet link between PC and FP 1600

    I'm working in a sailing simulator using fieldpoint modules(fp 1600, fp-ao-422, fp-ao-200, fp-ao-100) with labview 6.0. I use Fieldpoint Explorer 3.0. Sometimes, the ethernet link between the PC and FP 1600 is cut without reasons. Why?

    Alex,
    Are there any other symptoms of your communications problem? Any flashing codes of the status light or something like that?
    The cut-off of communications is not normal (obviously). Is there anything unusual about the network setup or cabling?

  • Link status messages in syslog

    We have configured all of our switches to send their syslogs to our What's Up! Gold syslog server. Unfortunately, the logs are getting swamped by tons of link-status up/down messages almost all of which are from a bunch of Alertus beacons that cycle their interface every 18 seconds.
    No logging event link-status will work globally on my 4500 switches but the command is strangely only interface level on smaller form factors such as 3560, 3750 and 3850 24 and 48 port switches. I want to use prime to create a template but with different port configurations in most every location I'm looking at a full day connecting to each switch individually instead of 5 minutes using a Prime template.
    Is there any newer versions of IOS for the smaller switches that makes this command global?

    You can use the range command:
    interface range gigabitEthernet 0/1 - 16
    HTH

  • Customer Equipment for Metro Ethernet Link

    Hi All
    It has been some time since I utilised Cisco network kit to provide private circuit point to point connectivity and I wonder if someone could give me a little guidence.
    The customer is shortly to implement a new 100Mb Metro Ethernet link to connect two of their branches. They initially intend to use the link for data only traffic but eventually will want to route VOIP traffic across the link so bandwidth management and QoS will be essential components. It is unlikely that further links will be added to this link so built in expansion of the chosen routers may not be required.
    Budget will be an issue on this so I would appreciate any advice or recomendations.
    Thanks
    J.

    Hello James,
    I think it would be better to get in touch with your Cisco Account Team as this question cannot be answered on a forum post.
    Thanks,
    Karim

  • Prime Infrastructure 2.0 Link Status Alarms

    Hi,
    we are used SNMP traps sent from our core switches to our PI 1.3 server to notify us about link down events. In this scenario we got emails only for link down events on our core switches.
    Now, we are using PI 2.0. It seems PI 2.0 checks link status of all devices on its own. We got an email for a link down event on any of our switches. To avoid that I configured PI 2.0 to treat Link down events as Informational instead of Critical (Administration > System Settings > Severity Configuration, Link down). Now, we don't get email notification for link down events at all.
    Is there a way to configure PI 2.0 to inform us on link down events on our core switches, but not on a link down event on any of our other devices?
    Timo

    Disable the trap from the configuration on the switches you don't want to get messages from.  So depending on what kind of switch it would be something like:
    conf t
    no snmp-server enable traps linkdown linkup
    Your string may different, there are several options that can be included in this line.  You may have to remove the whole line and readd it with only the options you want.
    If this posts answers your question or is helpful, please consider rating it and/or marking as answered.

  • [CS3][JS] Difference between link.needed false and link.status LINK_EMBEDDED

    Can anyone describe the difference between link.needed being false and link.status being LINK_EMBEDDED? If link.needed is false, doesn't that imply that the link is embedded? What is the distinction with LINK_EMBEDDED? If there is none, which do you recommend?

    You can also have links for text files, if you set your preferences<br />accordingly. They'll be neither needed nor embedded.<br /><br />-- <br />Shane Stanley <[email protected]>

  • Solstice X.25 9.2 Link status: LAPB Link 0 is in state ADM

    Hy all,
    I have a problem when I am trying to start the x.25 network.
    I have a temporary license, so I have to install a new valid license file each month. It has always worked fine until now. This last time, when I pulled down the Network Menu (of the x25tool) and clicked on Start X.25, I checked that the link status (using linkstate application) was in the following state (instead of the NORMAL state):
    Mon Oct 24 09:52:28 2005: LAPB Link 0 is in state ADM
    Do you know what should be the problem? How can I resolve it?
    Thank you very much

    Problem solved.
    License info in /etc/SUNWconn/x25/x25_9.1.lic,x had different port number from combined license file. After port number was changed, to match the port in the combined license file, Sunlink now finds a valid x.25 license!

  • Configuring NAC MANAGER HA - link failure detection

    Hello,
    I'm configuring HA in NAC Manager and want to enable "eth0 link failure detection based failover". Is this possible in version 4.1.2.1 ?
    Where can i configure this in NAC Manager?
    See my configurations for the Primary HA on pic attached.
    kind regards,
    Daniel Stefani

    Hi Daniel,
    It doesn't look like that's an option in the 4.1.2 line.  You can configure this in 4.1.3 line, however - see the configuration guide here: http://www.cisco.com/en/US/docs/security/nac/appliance/configuration_guide/413/cam/m_ha.html#wp1040221
    HTH,
    Lauren

  • Monitoring ethernet links

    Hello All,
    Is there any other method to monitor ethernet links apart from IP sla and monitoring tunnel.
    Regards,
    Sathvik

    I take it you want to verify confirmed end-end reachability of both sides of an Ethernet connection from the router itself. The usual approach is to use an external tools that looks at each end's characteristics and makes a conclusion based on that.
    If you want something closer to the absolute truth then IP SLA and tunnel monitoring are good ones. Depending on the platform you may be able to use something like mediatrace as well. You can also leverage embedded event manager (EEM) to give you some insight.

Maybe you are looking for