[c-nsp] Cat switches - 'last used time' port detail

Kevin Graham mahargk at gmail.com
Mon Sep 11 20:25:46 EDT 2006


On 9/11/06, Alban Dani <albcisco at gmail.com> wrote:

> ifName -  will give you the name
> .1.3.6.1.4.1.9.2.2.1.1.28 - will give you description
> interfaces.ifTable.ifEntry.ifOperStatus - will give interface status
> interfaces.ifTable.ifEntry.ifLastChange - will give last time the status
> changes

            "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."

time() - timeticks_to_epochseconds(SNMPv2-MIB::sysUpTime.0) +
IF-MIB::ifLastChange

> You can find also a formula for converting timeticks into hrs:min:sec

Yes, trivially.


More information about the cisco-nsp mailing list