Switching

last person joined: 2 days ago 

Ask questions and share experiences about EX and QFX portfolios and all switching solutions across your data center, campus, and branch locations.
  • 1.  Determine when port was last active

    Posted 03-12-2014 10:53

    Good day,

     

    We have a lot of ports in our switch stack that are not active, and we cannot find the network drop associated (due to renovations etc)

     

    Switches are Ex4200's

     

    Is there a way to see when the port was last active? We would like to reclaim the ports if they are not being used.

     

    Thanks

    Scott



  • 2.  RE: Determine when port was last active

    Posted 03-12-2014 11:13

    zz@zz# run show log messages |grep "ifOperStatus down"

     

    Mar 1 00:19:44 zz mib2d[98958]: SNMP_TRAP_LINK_DOWN: ifIndex 571, ifAdminStatus up(1), ifOperStatus down(2), ifName ge-0/0/25
    Mar 1 00:19:55 zz mib2d[98958]: SNMP_TRAP_LINK_DOWN: ifIndex 548, ifAdminStatus down(2), ifOperStatus down(2), ifName ge-0/0/25.0

     

     

    zz@zz# run show interfaces ge-0/0/25 extensive
    Physical interface: ge-0/0/25, Enabled, Physical link is Down
    Interface index: 163, SNMP ifIndex: 571, Generation: 166
    Link-level type: Ethernet, MTU: 1514, Speed: Auto, Duplex: Auto, BPDU Error: None, MAC-REWRITE Error: None, Loopback: Disabled, Source filtering: Disabled,
    Flow control: Enabled, Auto-negotiation: Enabled, Remote fault: Online
    Device flags : Present Running Down
    Interface flags: Hardware-Down SNMP-Traps Internal: 0x0
    Link flags : None
    CoS queues : 8 supported, 8 maximum usable queues
    Hold-times : Up 0 ms, Down 0 ms
    Current address: 00:23:9c:0b:cd:00, Hardware address: 00:23:9c:0b:cd:1c
    Last flapped : 2014-03-01 00:19:44 EET (1w4d 19:49 ago)



  • 3.  RE: Determine when port was last active

    Posted 03-12-2014 11:52

    Can this be done for all all ports at once and dumped to a text file? I have 30+ ports i need to check across 6 switches



  • 4.  RE: Determine when port was last active

     
    Posted 03-12-2014 11:58
    show interfaces extensive | match "Physical|flapped" | save /var/tmp/out.txt