08-30-2018 04:53 AM
Hi - hoping this will be simple enough. We are moving from Nortel to Cisco, we have a field on each port on the Nortel's called "Last change" which basically tells us when the port was last used.
Can someone please provide me with the correct command to list each and every port name and the corresponding equivalent "Last change" date/time please?
I have played around with some commands but can't quite get to the above.
Many thanks, much appreciated.
Solved! Go to Solution.
08-30-2018 06:31 AM
Hello,
you could use the pipe (|) command, e.g.:
R1#sh int | i Gigabit|Last
would render:
GigabitEthernet0/0 is up, line protocol is up
Last input 00:02:12, output 00:00:00, output hang never
Last clearing of "show interface" counters never
GigabitEthernet0/1 is up, line protocol is up
Last input 00:00:00, output 00:00:00, output hang never
Last clearing of "show interface" counters never
GigabitEthernet0/2 is administratively down, line protocol is down
Last input never, output never, output hang never
Last clearing of "show interface" counters never
GigabitEthernet0/3 is administratively down, line protocol is down
Last input never, output never, output hang never
Last clearing of "show interface" counters never
Last input never, output never, output hang never
Last clearing of "show interface" counters never
Last input never, output never, output hang never
Last clearing of "show interface" counters never
08-30-2018 06:31 AM
Hello,
you could use the pipe (|) command, e.g.:
R1#sh int | i Gigabit|Last
would render:
GigabitEthernet0/0 is up, line protocol is up
Last input 00:02:12, output 00:00:00, output hang never
Last clearing of "show interface" counters never
GigabitEthernet0/1 is up, line protocol is up
Last input 00:00:00, output 00:00:00, output hang never
Last clearing of "show interface" counters never
GigabitEthernet0/2 is administratively down, line protocol is down
Last input never, output never, output hang never
Last clearing of "show interface" counters never
GigabitEthernet0/3 is administratively down, line protocol is down
Last input never, output never, output hang never
Last clearing of "show interface" counters never
Last input never, output never, output hang never
Last clearing of "show interface" counters never
Last input never, output never, output hang never
Last clearing of "show interface" counters never
08-30-2018 08:08 AM
08-30-2018 08:48 AM
Hello,
I think the 'Last' counters are not synchronized with the clock but rather reflect the last reboot, which is 00:00...
08-30-2018 04:41 PM - edited 08-31-2018 07:21 AM
Hello
FYI - my understanding is these counters do not tell you when the interface was actived -they only tell you when the last packet packet was received-transmitted on that interface and only then if they were processed switched by the cpu - so in reality it could be actually quite a while before any counter value is ever recorded /reset after the interface has been actived.
08-31-2018 01:13 AM
08-31-2018 03:34 AM
Hello
Not a problem asking on here that what these forums are all about -
Correct these are interface counters and what you are seeing is statistics relating to traffic that has hit the interface which was processed by the router/switch.
Now if you shut any interface down these counters should increase until activity is resumed on that particular interface and the counter is reset.
11-12-2019 02:41 AM
11-12-2019 04:46 AM
Hello,
depending on your platform, I think it is a bug on the lower end switches:
Last Input never on switch with traffic incoming on interface
CSCtu32041
Description
Symptom:
The last input field in show interface output says never, even when there is traffic ingressing the port
Last Input
Number of hours, minutes, and seconds since the last packet was successfully received by an interface. This counter is updated only when packets are process switched, not when packets are fast switched
11-12-2019 06:09 AM
11-12-2019 06:38 AM
Hello,
that output could indeed point to the bug. Nothing fast switched would show up, only process switched packets would change the Last input counter...
Which means if you disable cef (or dcef) with the global command 'no ip cef' that input counter would start...
11-12-2019 06:59 AM
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide