Aruba & ProVision-based

How to check how long a port has been down.

 
SOLVED
Go to solution
HP-Browniee
Respected Contributor

How to check how long a port has been down.

Hello

Does anybody knows if it is possible to see on aruba switches for how long a port has been down?

On the comware switches we can see this by doing a display interface command, but on the aruba's i can't find a way to get this output.

Is it possible?

Thanks

3 REPLIES 3
Emil_G
HPE Pro
Solution

Re: How to check how long a port has been down.

Hello

Maybe you can use the OID ifLastChange.

ifLastChange OBJECT-TYPE
    SYNTAX      TimeTicks
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION
            "The value of sysUpTime at the time the interface entered
            its current operational state.  If the current state was
            entered prior to the last re-initialization of the local
            network management subsystem, then this object contains a
            zero value."
    ::= { ifEntry 9 }

 

You can query this information from the CLI of the switch. You also need to query sysUptime because it is showing what was the switch uptime when the last change occured.

Switch# getMIB ifLastChange.1
ifLastChange.1 = 100 days

Switch# walkmib sysUptime
sysUpTime.0 = 106 days

Here for example we see that the uptime of the switch was 100 days when the last change of interface 1 occured. The current system uptime is 106 days and we can conclude that the last change was 6 days ago.

I did a double check using the system log and indeed this port went offline on 20 of May.

switch# show log -r 1/A1
Keys: W=Warning I=Information
M=Major D=Debug E=Error
---- Reverse event Log listing: Events Since Boot ----
I 05/20/21 00:50:57 00077 ports: ST1-CMDR: port 1/A1 is now off-line
I 05/20/21 00:33:30 00076 ports: ST1-CMDR: port 1/A1 is now on-line
I 05/20/21 00:33:28 00077 ports: ST1-CMDR: port 1/A1 is now off-line
I 05/20/21 00:33:26 00076 ports: ST1-CMDR: port 1/A1 is now on-line
I 05/20/21 00:33:23 00077 ports: ST1-CMDR: port 1/A1 is now off-line

You can query IfDescr to see the mapping between the real port name and the SNMP interface index.

Switch# getMIB ifDescr.1
ifDescr.1 = 1/A1
Switch#

 

I am an HPE employee

Accept or Kudo


HP-Browniee
Respected Contributor

Re: How to check how long a port has been down.

Hello

Thank you for your answer!

I guess this we will have to do for now. It would be nice if it would just be command though.

 

Emil_G
HPE Pro

Re: How to check how long a port has been down.

Hello, 

Yes, I also couldnt find a CLI command that's why I suggested this.

You can use Aruba Innovation Zone to suggest a CLI command with this information as a new idea.

https://innovate.arubanetworks.com

I think that there are already similar ideas there for example https://innovate.arubanetworks.com/ideas/SWITCH-I-79.  The other option is to contact your Aruba sales representative and ask him for support in geting this feature in a future release especially if it is of a crtical importance for your organization. 

 

I am an HPE employee

Accept or Kudo