EEM on port error-disable due to UDLD

I would like to ask from the EEM community for some assistance in regards to crafting an EEM script for an ME-3800X.  We have one or two appliances whereby the only uplink (TenGigabitEthernet0/1 and/or TenGigabitEthernet0/2) goes into error-disable and caused by UDLD.  What I am looking for is a script to do the following: 
1.  If the ports TenGigabitEthernet0/1 and/or TenGigabitEthernet0/2 goes into error-disable caused by UDLD or link-flap then disable the port, wait for 5 seconds, enable the port; 
2.  Wait for 15 seconds and send an email.  
I only want this EEM to work on the TenGigabitEthernet interfaces and I do not want the EEM script to do this on the access ports.  
Error-disable recovery is a global option and there's no option to limit on a per-interface level.  
Thank you in advance. 

Thanks for responding, Joe. 
We were not able to take down the error messages but I believe they error messages could be:
%UDLD-4-UDLD_PORT_DISABLED: UDLD disabled interface Te0/2, unidirectional link detected
%PM-4-ERR_DISABLE: udld error detected on Te0/2, putting Te0/2 in err-disable state
Could an EEM script be created when an error message or an event of "unidirectional link detected" occurs, do the following: 
1.  In privilege mode, issue the command "udld reset".
2.  Wait for 30 seconds and then send an email. 
Thanks for your assistance and support, Joe.

Similar Messages

  • WS-C6509-V-E VSS Pair: Random ports going into err-disabled due to udld error

    We recently (a few months ago) put two 6509s into VSS mode and had many teething problems. One of the problems we had was random ports on switch 2 of the pair came up in err-disabled mode after a reboot. We somehow fixed them by combinations of shut/no shut, reseating or changing SFPs, etc.
    Two days ago we saw half of the ports on one card were in err-disabled mode due to udld errors. We cannot find a way to bring them back up (tried udld resets, etc) and think it's really strange that it's a block of ports on the same card. Also it's strange since last time we had this problem it was on different cards (switch 2 as well though).
    See below Te2/3/5-12 are in err-disabled mode. All other ports are fine. We highly doubt a physical problem with fibre and SFPs. Initially suspected the line card, but happened on different cards last time.
    Is there some bug anyone is aware of? Software or physical issue?
    Thanks in advance,
    Paolo.
    Hardware: WS-C6509-V-E
    Version 15.1(2)SY3
    XD#sh mod
    Mod Ports Card Type                              Model              Serial No.
      1   20  DCEF2T 4 port 40GE / 16 port 10GE      WS-X6904-40G       SAL1737CMC3
      2   20  DCEF2T 4 port 40GE / 16 port 10GE      WS-X6904-40G       SAL1737CMCH
      3   20  DCEF2T 4 port 40GE / 16 port 10GE      WS-X6904-40G       SAL1737CMCQ
      4   20  DCEF2T 4 port 40GE / 16 port 10GE      WS-X6904-40G       SAL1739D8NA
      5    5  Supervisor Engine 2T 10GE w/ CTS (Acti VS-SUP2T-10G       SAL1737CU10
      6    5  Supervisor Engine 2T 10GE w/ CTS (CSSO VS-SUP2T-10G       SAL1737CU0L
      7   20  DCEF2T 4 port 40GE / 16 port 10GE      WS-X6904-40G       SAL1739D8PF
      8   20  DCEF2T 4 port 40GE / 16 port 10GE      WS-X6904-40G       SAL1739D8R2
      9   48  CEF720 48 port 1000mb SFP              WS-X6848-SFP       SAL1746GBR7
    XD#sh int status | i Te2/3
    Te2/3/5       Mmbr HS-10G-XA-1   err-disabled 999          full    10G 10Gbase-LR
    Te2/3/6       Mmbr HS-400B2-XA-1 err-disabled 999          full    10G 10Gbase-LR
    Te2/3/7       Mmbr HS-AD1-XA-1   err-disabled 999          full    10G 10Gbase-LR
    Te2/3/8       Mmbr HS-AD211-XA-1 err-disabled 999          full    10G 10Gbase-LR
    Te2/3/9       Mmbr HS-AR101B-XA- err-disabled 999          full    10G 10Gbase-SR
    Te2/3/10      Mmbr HS-AS1-XA-1   err-disabled 999          full    10G 10Gbase-LR
    Te2/3/11      Mmbr HS-AS4-XA-1   err-disabled 999          full    10G 10Gbase-LR
    Te2/3/12      Mmbr HS-AV-XA-1    err-disabled 999          full    10G 10Gbase-LR
    Te2/3/13      Mmbr HS-BA107-XA-1 connected    trunk        full    10G 10Gbase-LR
    Te2/3/14      Mmbr HS-BA4-XA-1   connected    trunk        full    10G 10Gbase-LR
    Te2/3/15      Mmbr HS-BA4-XA-2   connected    trunk        full    10G 10Gbase-LR
    Te2/3/16      Mmbr HS-BA7-XA-1   connected    trunk        full    10G 10Gbase-LR
    Te2/3/17      Mmbr HS-BA9-XA-1   connected    trunk        full    10G 10Gbase-LR
    Te2/3/18      Mmbr HS-BA12-XA-1  connected    trunk        full    10G 10Gbase-LR
    Te2/3/19      Mmbr HS-BAHUB-XA-1 disabled     999          full    10G No Connector
    Te2/3/20      Mmbr HS-BOOKSHOP-X connected    trunk        full    10G 10Gbase-LR

    What do these err-disabled ports connect to?

  • Nexus 5500 - Fabricpath Core Port - Error disabled. Reason:DCX-No ACK in 100 PDUs

    Has anyone seen Fabricpath Core Interfaces between two Nexus 5596UP switches error-disabled because of missing DCBX Acks after 50mins?
    I do not see interface errors and the peer is another 5500.
    Both switches are running 5.1(3)N2(1) with this port config:
    int e1/3
    switchport mode fabricpath
    ! Cisco 5m Twinax cables
    Log messages
    2012 May 25 17:40:59 nexus1 %L3VM-5-FP_TPG_INTF_DOWN: Interface Ethernet1/3 down in fabricpath topology 0 - Interface down
    2012 May 25 17:40:59 nexus1 %ETHPORT-5-IF_DOWN_NONE: Interface Ethernet1/3 is down (None)
    2012 May 25 17:40:59 nexus1 %ISIS_FABRICPATH-5-ADJCHANGE:  isis_fabricpath-default [3365]  P2P adj L1 nexus5 over Ethernet1/3 - DOWN (Delete All) on MT-0
    2012 May 25 17:40:59 nexus1 %CDP-5-NEIGHBOR_REMOVED: CDP Neighbor nexus5(FOX1550GDH1) on port Ethernet1/3 has been removed
    2012 May 25 17:40:59 nexus1 %LLDP-5-SERVER_REMOVED: Server with Chassis ID 547f.ee63.fa88 Port ID Eth1/1 on local port Eth1/3 has been removed
    2012 May 25 17:40:59 nexus1 %ETHPORT-2-IF_DOWN_ERROR_DISABLED: Interface Ethernet1/3 is down (Error disabled. Reason:DCX-No ACK in 100 PDUs)
    Robert

    Can you send the output of
    show lldp interface ethernet 1/3
    show lldp dcbx interface ethernet 1/3
    a workaround may be to disable lldp on both sides on these physical interfaces

  • Error disable due to loopback

    Hi,
    We have a campus network. A student's hostel room port that is connected to a 2960 switch get error-disabled time and again and it shows the reason being "loopback".
    From switch patch panel to user's LAN port in room , we have tested the connectivity through cable tester and it is found to be proper.
    He has changed his LAN cable also, what can be the exact reasons causing this problem

    Thanks for the output to the command "sh version".  
    Look at the uptime of the switch.  Because of this the output to the "loopback_error_2960" is totally useless.  Why?  If there was any line errors which can determine if there was a cabling issue, a NIC card issue or something more sinister, then there's only 4-days worth of data.  Not much to run with.  
    The IOS is very, very old.  
    Currently, the only thing I can think of is remove the configuration of setting the speed to the port to 10 Mbps.  (I don't see the benefit of punishing students by slowing down their network speed.)  Once the port is running auto speed/auto duplex, wait for approximately 30 minutes and run a TDR on the port.   Even better if you can move the cable to the GigabitEthernet port and run the TDR there so you'll get a better picture of all the pairs.
    Another thing, post the output to the command "sh post".

  • FI's uplink ports Error Disabled on ENM loop

    Hi,
    I have two UCS6120XP FIs connected to a Cat2948G-GE-TX switch via port 1/3 on each FI. One port on the Cat2948G-GE-TX acts as the uplink port and is connected to the LAN. All ports of the Cat2948G-GE-TX are in VLAN 1 to allow all connected devices to reach the Gateway via the LAN uplink port.
    Now after a while both ports 1/3 on the FIs get error disabled on ENM loop.
    'show cdp neighbor' on the Cat2k shows FIs hanging off of 2/45 & 2/46. The management ports of both FIs are connected to ports 2/1 and 2/2 of the
    Cat2948G-GE-TX as well, as are some other devices.
    I'd like to keep both FI uplink ports enabled for failover scenarios - how can I achieve that w/o the ports getting error-disabled?
    Thanks,
    Matthias

    Hi,
    The reload was to test the loss of a FI prior to going into the production environment. A disassociate/reassociate of a SP made no difference.
    I plan to upgrade to V2.2(1D) and re-test again tomorrow.

  • New Trunking port Error Disabled on Nexus 5000

    I configured my Nexus 5000 ports as so
    Int Eth1000/1/48
    switchport mode trunk
    switchport trunk  allowed vlan 8
    speed 1000
    channel-group 7 mode active
    int Po7
    switchport mode trunk
    switchport trunk  allowed vlan 8
    vpc7
    speed 1000
    I configured my 3650 as so:
    int Gig0/23
    switchport trunk encapsulation dot1q
    switchport trunk  allowed vlan 8
    switchport mode trunk
    speed 1000
    channel-group 1 mode active
    Port channel 1
    switchport trunk encapsulation dot1q
    switchport trunk  allowed vlan 8
    switchport mode trunk
    speed 1000
    Both of these ports are connected Int Eth1000/1/48 and int Gig0/23. Int Eth1000/1/48 shut down and when I checked the logs on the N5K it said for the port   ErrorDisabled REASON BPDUguard. I did not configure bpdufilter or bpduguard on either side. What is causing it?
    I found 3 other ports the have bpdufilter on them  would that be it?
    Since the 3560 is an older switch how can I also ensure it get demoted to not be root bridge or secondary root bridge?

    Hi,
    1- You tried to bundle GE and E interfaces with LACP on both switch but you did not mention the other bundle members, however, it looks the etherchannel did not comes up and interfaces work separately.
    As a result, STP has prevented bridging loop and put one of them in errdisable state. I think you must check your etherchannel configuration.
    2- you can use "spanning-tree vlan <> priority 61400" on 3560 switch to make sure it won't be a root bridge.
    HTH
    Houtan

  • Nexus 4k error disable

    Anyone ever seen this before? Trying to understand why the port error disabled.
    2011 Jan 18 11:53:09 MTWDAVDC1BLDB9001 %ETHPORT-2-IF_DOWN_ERROR_DISABLED: Interface Ethernet1/1 is down (Error disabled. Reason:requested by sap: MTS_SAP_DCX, req down_type: 2, req down_reason: 222 )
    MTWDAVDC1BLDB9002# sh int eth1/1
    Ethernet1/1 is down (DcxMultipleMSAPs)
      Hardware: 1000/10000 Ethernet, address: 0027.0d23.4d8d (bia 0027.0d23.4d8d)
      MTU 1500 bytes, BW 1000000 Kbit, DLY 10 usec,
         reliability 255/255, txload 1/255, rxload 1/255
      Encapsulation ARPA
      Port mode is trunk
      full-duplex, 10 Gb/s, media type is 10g
      Input flow-control is off, output flow-control is off
      Rate mode is dedicated
      Switchport monitor is off
      Last link flapped 1d03h
      Last clearing of "show interface" counters never
      1 minute input rate 0 bits/sec, 0 packets/sec
      1 minute output rate 0 bits/sec, 0 packets/sec
      Rx
        153349455 input packets 143221479 unicast packets 3730739 multicast packets
        6397237 broadcast packets 0 jumbo packets 0 storm suppression packets
        66448449173 bytes
      Tx
        328643307 output packets 90031378 multicast packets
        113132871 broadcast packets 12877361 jumbo packets
        62121338327 bytes
        0 input error 0 short frame 0 watchdog
        0 no buffer 0 runt 0 CRC 0 ecc
        0 overrun  0 underrun 0 ignored 0 bad etype drop
        0 bad proto drop 0 if down drop 0 input with dribble
        1416 input discard
        0 output error 0 collision 0 deferred
        0 late collision 0 lost carrier 0 no carrier
        0 babble
        0 Rx pause 0 Tx pause
      8 interface resets

    I looked into the error and would suggest opening a TAC case so our engineering team can look into this error.  You can open a case using the supportforum as well to turn the thread into a case.
    Sorry to not be able to help more, but looks like our internal team needs to look into this further.
    Chad

  • UDLD Detection & Error Disable On Cat 6513

    Hi
    We have a problem with an etherchannel trunk between 2 Cat 6513's. The etherchannel is 8Gb split across 2 Copper 10/100/1000Mb 16 port cards in each chassis. The trunk uses ports 13 - 16 on slot 5 in one chassis to 13 - 16 on slot 5 in the other chassis and 13 - 16 on slot 6 in one chassis to 13 - 16 in slot 6 on the other chassis.
    We appear to have had a UDLD Detection which error disabled all 4 of the links from slot 6 to slot 6 at the same time. IE ports 13 - 16 on slot 6 of both chassis went into error disabled state.
    Could this be a ASIC hardware problem on one of the cards? If so, how do we establish which end of the trunk the problem exists? All other connections on these slot 6 cards are working fine.

    UDLD is a protocol that discovers if communication over a link is one-way only, and therefore partially broken. A damaged fiber cable or other cabling/port issue could cause this one-way only communication. Spanning tree loops can occur with this problem. UDLD allows the port to detect a unidirectional link, and can be configured to put a port in errDisable state when it detects this condition.

  • Vfc error disabled because of Ethernet port down?

    We are building a new datacenter and is starting to set up the SAN.
    This small DC consist of 2 Nexus 5596UP, a Compellent SAN and 2 Dell M1000e cassis with blade servers.
    naive FC part in Nexus has been easy to set up but we have problems with the FCOE setup.
    Since the blades are not installed yet none of the Ethernet ports are up. As soon as we bind an ethernet port to a vfc the vfc goes to error disable with this message:
    %PORT-2-IF_DOWN_ERROR_DISABLED: %$VSAN 1900%$ Interface vfc101 is down (Error disabled)
    Config snippets:
    vlan 1900
      fcoe vsan 1900
      name VSAN-A-FCOE
    vlan 1901
      name VSAN-B-FCOE
    vsan database
      vsan 1900 name "VSAN-A"
      vsan 1901 name "VSAN-B"
    interface vfc101
      bind interface Ethernet1/1
      no shutdown
    vsan database
      vsan 1900 interface vfc101
      vsan 1900 interface fc2/13
      vsan 1900 interface fc2/14
      vsan 1900 interface fc2/15
      vsan 1900 interface fc2/16
    interface Ethernet1/1
      switchport mode trunk
      spanning-tree port type edge trunk
    vlan 1900
      fcoe vsan 1900
      name VSAN-A-FCOE
    vlan 1901
      name VSAN-B-FCOE
    vsan database
      vsan 1900 name "VSAN-A"
      vsan 1901 name "VSAN-B"
    vsan database
      vsan 1900 interface vfc101
      vsan 1900 interface fc2/13
      vsan 1900 interface fc2/14
      vsan 1900 interface fc2/15
      vsan 1900 interface fc2/16
    interface vfc101
      bind interface Ethernet1/1
      no shutdown
    interface Ethernet1/1
      switchport mode trunk
      spanning-tree port type edge trunk
    Do the vfc go error disable because the ethernet interface being down? I was under the impression it should just go "down"

    What you are seeing is normal.. Here are outputs from my lab switch where I shut Eth1/20 which is tied to vFC 20
    24.10.5020A.1(config)# int ethernet 1/20
    24.10.5020A.1(config-if)# shut
    2011 Oct 21 10:16:01 24 %ETHPORT-5-IF_DOWN_CFG_CHANGE: Interface Ethernet1/20 is down(Config change)
    2011 Oct 21 10:16:01 24 %FLOGI-5-MSG_PORT_LOGGED_OUT: %$VSAN 100%$ [VSAN 100, Interface vfc20: mode[TF]] Nx Port 21:00:00:c0:dd:12:0e:35 logged OUT.
    2011 Oct 21 10:16:01 24 %PORT-5-IF_PORT_QUIESCE_FAILED: Interface vfc20 port quiesce failed due to failure reason: Epp Not Supported by Peer (0x19d)
    2011 Oct 21 10:16:01 24 %PORT-5-IF_DOWN_NONE: %$VSAN 100%$ Interface vfc20 is down (None)  
    2011 Oct 21 10:16:01 24 %PORT-2-IF_DOWN_ERROR_DISABLED: %$VSAN 100%$ Interface vfc20 is down (Error disabled)  
    2011 Oct 21 10:16:02 24 %ETHPORT-5-IF_DOWN_ADMIN_DOWN: Interface Ethernet1/20 is down (Administratively down)
    24.10.5020A.1(config-if)#

  • I keep getting error 3004 when i try restoring and updateing my iphone 4 to iOS 7 i did everything 1. flushed dns 2. edited hosts 3. updated itunes and downloaded new one 4. switched usb ports 5. disabled antivirus 6. enabled ports 80 and 443 7. disabled

    I keep getting error 3004 when i try restoring and updateing my iphone 4 to iOS 7 i did everything 1. flushed dns 2. edited hosts 3. updated itunes and downloaded new one 4. switched usb ports 5. disabled antivirus 6. enabled ports 80 and 443 7. disabled firewall 8. even tryed putting mobile in DFU mode to restore it not of this worked so please help me

    please replyyy i'm stuck on this like whole week

  • GPU: currently disabled due to an error (unsuported hardware/driver version)

    I still have problems after the last update (ACR 9).
    There is a note - GPU: currently disabled due to an error (unsupported hardware/driver version).
    I use AMD FirePro V4800 that is in the list of Adobe  - Photoshop CC and CC 2014 GPU FAQ , as followed
    Important: This document is updated as newly released cards are tested. However, Adobe cannot test all cards in a timely manner. If a video card is not listed here, but was released after May 2013, you can assume that the card will work with Photoshop CC and CC 2014.
    Adobe tested laptop and desktop versions of the following cards. Be sure to download the latest driver for your specific model (Laptop and desktop versions have slightly different names.)
    nVidia GeForce: 400, 500, 600, 700 series
    nVidia Quadro: 2000, 4000 (Windows and Mac OS), CX, 5000, 6000, K600, K2000, K4000, K5000 (Windows and Mac OS)
    nVidia GRID K1, K2
    AMD/ATI Radeon: 5000, 6000, 7000, R7, R9 series, 7950 Mac OS
    AMD/ATI FirePro: 3800, 4800, 5800, 7800, 8800, 9800, 3900, 4900, 5900, 7900, W8100, W9100, D300, D500, D700
    AMD/ATI FireGL: W5000, W7000, W8000
    Intel HD Graphics P3000, Intel HD Graphics P4000, Intel(R) HD Graphics P4600/P4700, Intel HD Graphics 5000
    I installed the latest driver from AMD site - Workstation
    So,  my system has the latest driver now
    The release notes of the driver say that now my video-card supports
    DirectX ® - 11
    OpenGL - 4.3
    OpenCL™ - 1.2
    What could be wrong? And what should I do?
    PS Photoshop also works strange: some of plug-ins  (for example, by Nik Software) show a white window in the place where the picture should be.
    Should I buy Nvidia Quadro K4200? But is was not in my plans at the moment when I did the last upgrade of Camera Raw.

    Hello,
    First, please consult the Camera Raw GPU FAQ for specific troubleshooting tips.
    https://helpx.adobe.com/photoshop/kb/acr-gpu-faq.html#Suggested%20System%20Requirements%20 &%20Graphics%20Cards
    You may need to completely uninstall/reinstall the drivers for your AMD card. Please consult the manufacturer's support site for the uninstall/reinstall procedures.
    Hope that helps,
    - Chris

  • Campus Manager report - Ports in error Disabled state

    Hi,
    I have LMS 3.2 and I wonder how Campus Manager collects information from the switch to generate a report of discrepancies, namely a report of "Ports in Error Disabled state"??
    I find that I have ports in errDisabled state but Campus Manger doesn´t show this information in "Ports in Error Dissabled state" report. What could be the problem?
    Thanks.

    Hi,
    Campus Manager do snmpwalk on the ciscoErrDisableMIB to get the status of the error disabled ports.
    Thanks,
    Gaganjeet Singh

  • : %COMMON_FIB-4-DISABLING: IPv4 CEF is being disabled due to a fatal error: %COMMON_FIB-4-DISABLING: IPv4 CEF is being disabled due to a fatal error

    Am running ASR1001 router as LNS and suddnly i see the following error on the monitor
    : %COMMON_FIB-4-DISABLING: IPv4 CEF is being disabled due to a fatal error
    any idea????

    Hi kashalo84,
    It normally happens due to low memory and that can be caused due to full internet routing table. Please provide output of 
    - show memory stats
    - show ip route summary
    - show ip bgp summary
    Regards,
    Akash

  • Error disabled ports

    I have a 3550 switch that gets a error-disabled copper ports. There is no errors ont the port. What else would cause it to be disabled?

    Although there is no error on the port , there should be an error message in the log that should tell you the reason why the port got error disabled like port security violation , loopback detection , etherchannel misconfig etc.
    You can enable errordisable recovery for all different causes by setting a timer. What happens is once this timer expires , the port is brough out of error dsiabled state.
    Here are some of the useful commands.
    D-C3550-2A(config)#errdisable ?
    detect Error disable detection
    recovery Error disable recovery
    D-C3550-2A(config)#errdisable recovery ?
    cause Enable error disable recovery for application
    interval Error disable recovery timer value
    Hope this helps.
    Salman Z.

  • HT1212 How I restore iPod touch disabled due to pass code error .know i know the pass code

    how i restore the disabled i pod due to passcode error

    Not knowing what you mean by passcode error:
    Disabled
    Place the iOS device in Recovery Mode and then connect to your computer and restore via iTunes. The iPod will be erased.
    iOS: Wrong passcode results in red disabled screen                         
    If recovery mode does not work try DFU mode.                        
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings        
    For how to restore:
    iTunes: Restoring iOS software
    To restore from backup see:
    iOS: Back up and restore your iOS device with iCloud or iTunes       
    If you restore from iCloud backup the apps will be automatically downloaded. If you restore from iTunes backup the apps and music have to be in the iTunes library since synced media like apps and music are not included in the backup of the iOS device that iTunes makes.
    You can redownload most iTunes purchases by:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store        
    If problem what happens or does not happen and when in the instructions? When you successfully get the iPod in recovery mode and connect to computer iTunes should say it found an iPod in recovery mode.

Maybe you are looking for