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


Router Configuration and File Management

Basic Router Security and Access Control

IPSec

SNMP

Logging

NTP

Router Interfaces

IP Routing

Routing Policy and Firewall Filters

RIP

IS-IS

OSPF

BGP

MPLS

VPNs

IP Multicast



JUNOS Cookbook
Junos Cookbook (Cookbooks (OReilly))
ISBN: 0596100140
EAN: 2147483647
Year: 2007
Pages: 290
Authors: Aviva Garrett

Similar book on Amazon

Flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net