ACLI method to see LastChange of port status

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • barne99
    Aspiring Member
    • Apr 2015
    • 2

    ACLI method to see LastChange of port status

    Hello,

    Our organization is working on a project to remove a VLAN from the majority of our network. We are medium/large size (20 buildings, 50 switches, 7k interfaces) so I'd love to automate the process as much as possible.

    I've been looking at ways to identify what ports should have their VLAN changed. The relevant data can be exported from 2 areas in EDM, but it may be much quicker to extract it and parse from ACLI than right clicking, exporting, copying, pasting etc. 50*2 times in EDM. I can get the same data fields I require via both methods except for one.

    Is there a way to determine the LastChange (as the field is labelled in EDM) of a port via ACLI? It'd be great if I could get output in table format. I've been unsuccessful in tracking down a method myself via the command references and google searches.

    Thanks in advance for any advice that can be given.
  • gbeaudoin
    Hot Shot
    • May 2012
    • 15

    #2
    Using snmp you could get that information.

    I'm using the Net-SNMP software, it's opensource and it's working very well.
    snmpwalk -v2c -c <community> <device> .1.3.6.1.2.1.2.2.1
    For example, the previous command return the following for my interface 18:
    IF-MIB::ifDescr.18 = STRING: Nortel Ethernet Routing Switch 5530-24TFD Module - Unit 1 Port 18
    IF-MIB::ifOperStatus.18 = INTEGER: down(2)
    IF-MIB::ifLastChange.18 = Timeticks: (3894790900) 450 days, 18:51:49.00
    That let me know that port 1/18 of my device have been down for 450 days, so it might be a good hint that this particuliar port if free to use.

    Be aware that snmp interface identifiers don't always match port names. For example my snmp interface id 129 is my port 2/1.

    Comment

    Loading