Switching

last person joined: yesterday 

Ask questions and share experiences about EX and QFX portfolios and all switching solutions across your data center, campus, and branch locations.
  • 1.  How to troubleshoop flapping ports?

    Posted 03-09-2016 08:45

    Below is the output of show log messages on one of my switch stacks. As you can see I have ports flapping quite often.

    Does this just mean the device (computer) that is attached to this port is being turned off or on? If not, then how do I troubleshoot flapping ports?

     

    I thought it might be a spanning tree issue but spanning tree has not change in a long time as shown by "show spanning-tree bridge"

     

    Mar 9 09:59:09 JH142A mib2d[1333]: SNMP_TRAP_LINK_DOWN: ifIndex 587, ifAdminStatus up(1), ifOperStatus down(2), ifName ge-0/0/46
    Mar 9 09:59:29 JH142A mib2d[1333]: SNMP_TRAP_LINK_DOWN: ifIndex 587, ifAdminStatus up(1), ifOperStatus down(2), ifName ge-0/0/46
    Mar 9 10:01:25 JH142A mib2d[1333]: SNMP_TRAP_LINK_DOWN: ifIndex 672, ifAdminStatus up(1), ifOperStatus down(2), ifName ge-2/0/19
    Mar 9 10:02:18 JH142A mib2d[1333]: SNMP_TRAP_LINK_DOWN: ifIndex 672, ifAdminStatus up(1), ifOperStatus down(2), ifName ge-2/0/19
    Mar 9 10:06:34 JH142A mib2d[1333]: SNMP_TRAP_LINK_DOWN: ifIndex 671, ifAdminStatus up(1), ifOperStatus down(2), ifName ge-2/0/18
    Mar 9 10:07:25 JH142A mib2d[1333]: SNMP_TRAP_LINK_DOWN: ifIndex 671, ifAdminStatus up(1), ifOperStatus down(2), ifName ge-2/0/18
    Mar 9 10:08:25 JH142A mib2d[1333]: SNMP_TRAP_LINK_DOWN: ifIndex 594, ifAdminStatus up(1), ifOperStatus down(2), ifName ge-0/0/44
    Mar 9 10:08:31 JH142A mib2d[1333]: SNMP_TRAP_LINK_DOWN: ifIndex 594, ifAdminStatus up(1), ifOperStatus down(2), ifName ge-0/0/44
    Mar 9 10:09:19 JH142A mib2d[1333]: SNMP_TRAP_LINK_DOWN: ifIndex 594, ifAdminStatus up(1), ifOperStatus down(2), ifName ge-0/0/44
    Mar 9 10:12:24 JH142A mib2d[1333]: SNMP_TRAP_LINK_DOWN: ifIndex 556, ifAdminStatus up(1), ifOperStatus down(2), ifName ge-0/0/26
    Mar 9 10:12:28 JH142A mib2d[1333]: SNMP_TRAP_LINK_DOWN: ifIndex 556, ifAdminStatus up(1), ifOperStatus down(2), ifName ge-0/0/26
    Mar 9 10:18:10 JH142A mib2d[1333]: SNMP_TRAP_LINK_DOWN: ifIndex 504, ifAdminStatus up(1), ifOperStatus down(2), ifName ge-0/0/0
    Mar 9 10:18:14 JH142A mib2d[1333]: SNMP_TRAP_LINK_DOWN: ifIndex 504, ifAdminStatus up(1), ifOperStatus down(2), ifName ge-0/0/0



  • 2.  RE: How to troubleshoop flapping ports?

    Posted 03-10-2016 02:57

    Yes, access ports for workstations will flap as computers turn on and off.  In most environments that I worked in we exclude sending this trap from user access ports for that reason and only monitor this on interconnects.



  • 3.  RE: How to troubleshoop flapping ports?

    Posted 03-10-2016 11:45

    We did some testing in my office, turning desktop PCs on and off and sure enough we see the same thing.

     

    How do I exclude sending this trap from user access ports?



  • 4.  RE: How to troubleshoop flapping ports?

    Posted 03-11-2016 05:23

    Figured this out myself, here is the article

    http://www.juniper.net/documentation/en_US/junos15.1/topics/task/configuration/interfaces-enabling-or-disabling-snmp-notifications-on-physical-interfaces.html

     

    The question becomes, is it worth it to disable traps on all 48 edge ports on an EX switch or just live with a lot of SNMP_TRAP_LINK_DOWN message in the message log. The SNMP_TRAP_LINK_DOWN is generated everytime a destkop PC is powered off or on



  • 5.  RE: How to troubleshoop flapping ports?

    Posted 03-11-2016 17:48

    You can create a group that applies the no-trap to every interface.

     

    set groups MYGROUP interfaces <*-*> no-traps

    set apply-groups MYGROUP

     

    Then override this with traps on the desired interfaces only

     

    set interfaces ge-0/0/0 apply-groups-except MYGROUP

    set interfaces ge-0/0/0 traps

     

    documentation

    https://www.juniper.net/documentation/en_US/junos15.1x49/topics/task/configuration/junos-software-configuration-groups-inheritance-disabling.html