Finding Out How Long the Router Has Been Up
Problem
You want to know how long the router has been up and running.
Solution
Use the following command to find out how long the router has been up:
aviva@router1> show system uptime Current time: 2005-03-15 19:05:08 UTC System booted: 2005-03-15 11:09:57 UTC (07:55:11 ago) Protocols started: 2005-03-15 11:11:31 UTC (07:53:37 ago) Last configured: 2005-03-15 19:05:04 UTC (00:00:04 ago) by aviva 7:05PM up 7:55, 1 user, load averages: 0.07, 0.02, 0.01
Discussion
The show system uptime command is similar to the Unix uptime utility. The first line of output shows the current time on the router. The second line shows when the router was last booted and how long it has been up (here, 7 hours, 55 minutes, 11 seconds). The last line also shows how long the router has been up. The third line shows when the protocol software started, and the last line tells when the configuration was last changed and by whom.
See Also
Recipe 6.1