• Home »
  • »
  • How To Show The uptime On A Cisco Catalyst 2950

How To Show The uptime On A Cisco Catalyst 2950

While working on the computer shop network I had to modify the configuration on our switch which is a Cisco Catalyst 2950. After making a bunch of changes I was testing things to make sure all was working as expected however after taking a break and logging back into the 2950 it appeared that all of the changes made had been reverted. I was assuming the Catalyst 2950 had lost power briefly which means all of the changes were lost since they had not been saved to the startup config yet. To verify my assumption I needed to look at the amount of time the switch had been up however “uptime” is not a valid iOS command. Below is information on the command used to verify uptime on a Cisco Catalyst 2950.

Verify Uptime On A Cisco Catalyst 2950 Switch:

One of the bits of information provided by the “show hardware” command is uptime. The version of iOS that was running on the switch at the time was Cisco iOS Version 12.1(19)EA1a.


  1. 2900XL#sh hard
  2. Cisco Internetwork Operating System Software
  3. IOS (tm) C2950 Software (C2950-I6Q4L2-M), Version 12.1(19)EA1a, RELEASE SOFTWARE (fc1)
  4. Copyright (c) 1986-2003 by cisco Systems, Inc.
  5. Compiled Tue 09-Dec-03 00:12 by yenanh
  6. Image text-base: 0x80010000, data-base: 0x8058A000
  8. ROM: Bootstrap program is C2950 boot loader
  10. 2900XL uptime is 4 hours, 5 minutes
  11. System returned to ROM by power-on
  12. System image file is "flash:/c2950-i6q4l2-mz.121-19.EA1a.bin"
  14. cisco WS-C2950T-24 (RC32300) processor (revision C0) with 20809K bytes of memory.
  15. Processor board ID FHK0612Y090
  16. Last reset from system-reset
  17. Running Enhanced Image
  18. 24 FastEthernet/IEEE 802.3 interface(s)
  19. 2 Gigabit Ethernet/IEEE 802.3 interface(s)
  21. 32K bytes of flash-simulated non-volatile configuration memory.
  22. Base ethernet MAC Address: 00:09:43:EE:EE:EE
  23. Motherboard assembly number: 73-6114-06
  24. Power supply part number: 34-0965-01
  25. Motherboard serial number: FOC00000ENP
  26. Power supply serial number: DAB000000Y1
  27. Model revision number: C0
  28. Motherboard revision number: A0
  29. Model number: WS-C2950T-24
  30. System serial number: FHK0000Y090
  31. Configuration register is 0xF
  33. 2900XL#

As seen in the above example the sh hard (show hardware) command will display a bunch of information beyond the uptime we were looking for including Cisco iOS version, date the iOS was compiled, ROM information, flash and/or system image information, various serial numbers (motherboard, power supply, system), MAC address, and more. Since you probably only need the uptime information look nine or ten lines down for one of the output lines that starts with the hostname configured on the Catalyst switch and followed by uptime and the amount of time the switch has been running.

Cisco WS-C2950T-24 Catalyst 2950 24 Port Switch (Personal Computers)

List Price: $949.99 USD
New From: $270.00 USD In Stock
Used from: $28.67 USD In Stock

Cisco SR2024 24-port 10/100/1000 Gigabit Switch (Personal Computers)

List Price: $357.99
New From: $499.95 USD In Stock
Used from: $79.00 USD In Stock