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

lee.e.rian at census.gov lee.e.rian at census.gov
Mon Sep 11 15:18:14 EDT 2006


Hi Amol,

"Amol Sapkal" <amolsapkal at gmail.com> wrote on 09/11/2006 02:41:27 PM:

> Hi Lee,
>
>
> On 9/12/06, lee.e.rian at census.gov <lee.e.rian at census.gov> wrote:
> > Can you really get the 'last time used' for ports on a switch via SNMP?
As
> > far as I know, the best you can do is something like
>
> I feel yes. If CiscoWorks can give you that data, then SNMP will sure do.
It

Does CW actually track that?  I got the impression CiscoWorks was just
keeping track of when it saw <this> MAC address on <that> port.


> >  sh int | inc prot|Last input
> >
> > and look for "Last input never" or maybe
> >
> >  sh int | inc prot|packets input
> >
> > and look for ports with zero packets input (and hope nobody has cleared
the
> > counters lately :-)
>
> Actually, I am looking at a Cat-OS model.

ok - "sh port mac"

> Moreover, the above wouldn't
> be an accurate representation. It wouldn't give you when the port was
> last used. Basically, something on the lines of 'last state change'.

Yes, that would be best but I don't know how to get that info from the cli.
Somebody else will have to help you out there.

Lee


>
> -Amol
>
>
>
> > Regards,
> > Lee
> >
> >
> >
> > "Amol Sapkal" <amolsapkal at gmail.com> wrote on 09/11/2006 02:02:58 PM:
> >
> > > Hi,
> > >
> > > I was trying to free up ports on a cat 4500 switch and ended up
> > > breaking my head for finding the correct command to know the 'last
> > > used time' of a port.
> > >
> > > I am able to see this information on CiscoWorks (though the
> > > information is highly skewed), but unable to find any command for the
> > > same.
> > >
> > >
> > > Any pointers? If there is no such command, I think an SNMP poll for
> > > such datas would be the only option.
> > >
> > >
> > >
> > > --
> > > Warm regards,
> > >
> > > Amol Sapkal
> > >
> > > -------------------------------------------------------------------
> > > "When I'm not in my right mind, my left mind
> > > gets pretty crowded"
> > > -------------------------------------------------------------------
> > > _______________________________________________
> > > cisco-nsp mailing list  cisco-nsp at puck.nether.net
> > > https://puck.nether.net/mailman/listinfo/cisco-nsp
> > > archive at http://puck.nether.net/pipermail/cisco-nsp/
> >
> >
>
>
> --
> Warm regards,
>
> Amol Sapkal
>
> -------------------------------------------------------------------
> "When I'm not in my right mind, my left mind
> gets pretty crowded"
> -------------------------------------------------------------------
> _______________________________________________
> cisco-nsp mailing list  cisco-nsp at puck.nether.net
> https://puck.nether.net/mailman/listinfo/cisco-nsp
> archive at http://puck.nether.net/pipermail/cisco-nsp/



More information about the cisco-nsp mailing list