09-26-2014 11:42 AM - last edited on 03-25-2019 04:30 PM by ciscomoderator
I have a port that I believe is going up and down on a 2960X-port switch. Is there a command that will show information as to how long that port has been in an "up" state?
09-26-2014 01:51 PM
I am not sure if there is a command that show that, however if you have monitoring system it will show when and how many times has an interface gone up and down.
HTH
09-26-2014 06:58 PM
Look at your logs (if link state logging is enabled) for signs of the interface going down/up.
Look at the "sh interface <BLAH>" and "sh controll e <BLAH>" any any line errors.
Run a port TDR to test the integrity of the copper cable.
09-27-2014 02:01 AM
Hi,
Just issue the 'show interface fx' command and look under 'Last input/Last output.'
09-29-2014 08:16 AM
Switch#show dtp interface
DTP information for FastEthernet1/0/1:
TOS/TAS/TNS: ACCESS/AUTO/ACCESS
TOT/TAT/TNT: UNKNOWN/NEGOTIATE/UNKNOWN
Neighbor address 1: 000000000000
Neighbor address 2: 000000000000
Hello timer expiration (sec/state): never/STOPPED
Access timer expiration (sec/state): never/STOPPED
Negotiation timer expiration (sec/state): never/STOPPED
Multidrop timer expiration (sec/state): never/STOPPED
FSM state: S1:OFF
# times multi & trunk 0
Enabled: no
In STP: no
Statistics
----------
0 packets received (0 good)
0 packets dropped
0 nonegotiate, 0 bad version, 0 domain mismatches,
0 bad TLVs, 0 bad TAS, 0 bad TAT, 0 bad TOT, 0 other
0 packets output (0 good)
0 native, 0 software encap isl, 0 isl hardware native
0 output errors
0 trunk timeouts
1 link ups, last link up on Mon Mar 01 1993, 00:01:37
1 link downs, last link down on Mon Mar 01 1993, 00:03:13
09-29-2014 08:42 AM
That's great, thank you!
09-29-2014 09:01 AM
The "sh dtp interface" command shows the same date for all interfaces.(Year 1993)
1 link ups, last link up on Mon Mar 01 1993, 00:01:37
1 link downs, last link down on Mon Mar 01 1993, 00:03:13
09-29-2014 04:50 PM
hi reza,
is the year/date not updated due to no NTP or local clock configured?
09-29-2014 04:56 PM
Hi John,
No, it always shows this same date and time for all the interfaces (1993) even though the switch is configure with the correct date and time. I don't think this command actually woks.
HTH
09-29-2014 10:16 PM
i see. i feel this command is only for trunks using DTP and not for access ports.
09-30-2014 02:54 PM
Hi,
The same output show up for trunk ports as well as access ports.
Reza
12-02-2014 03:38 PM
Thanks for this! I believe the 1993 timestamp is from when the switch first booted, before it set its clock.
On one of my 3750's ports that have never gone down show a 1993 timestamp, ports that have gone up/down have a recent (correct) date
1 link ups, last link up on Sun Feb 28 1993, 16:01:20
4 link ups, last link up on Tue Dec 02 2014, 14:51:11
10-06-2014 12:02 PM
Adam,
Try the following commands. This will give you the last up information. Someone else in the community shared this with me quite awhile back. It has helped us a lot.
For a single interface.
Cisco-Switch#show int g1/0/7
Last input never, output 1y25w, output hang never
For all interfaces.
Cisco-Switch#show int | in Last | proto
11-17-2022 12:01 PM
I think this command will give u the uptime of that interface
sh int gx/x/x | i minute
03-12-2024 04:49 AM
I think there is not a 'ready to use' command to that on a 2960 model.
AS well as there is
SHOW INT Gx/0/x LINK
on IOS XE Ver 17
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