Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

show system uptime

Syntax

Syntax (EX Series Switches)

Syntax (QFX Series)

Syntax (TX Matrix Router)

Syntax (TX Matrix Plus Router)

Syntax (MX Series Router)

Syntax (Junos OS Evolved)

Description

Display the current time and information about how long the router or switch, router or switch software, and routing protocols have been running.

Note:

Time values computed from differences in timestamps can vary due to the insertion or deletion of leap-seconds between them.

The show system uptime command is a little different in how it displays output in Junos OS Evolved. The show system uptime command by itself shows system-wide uptime information. Use the show system uptime node node-name command to see node-specific uptime information, where node-name can be re0 | re1 | fpc0 | all.

Options

none

Show time since the system rebooted and processes started.

all-chassis

(TX Matrix routers and TX Matrix Plus routers only) (Optional) Show time since the system rebooted and processes started on all the routers in the chassis.

all-lcc

(TX Matrix routers and TX Matrix Plus routers only) (Optional) On a TX Matrix router, show time since the system rebooted and processes started for all T640 routers (or line-card chassis) connected to the TX Matrix router. On a TX Matrix Plus router, show time since the system rebooted and processes started for all connected T1600 or T4000 LCCs.

all-members

(EX4200 switches and MX Series routers only) (Optional) Show time since the system rebooted and processes started on all members of the Virtual Chassis configuration.

director-group name

(QFabric systems only) (Optional) Show time since the system rebooted and processes started on the Director group.

infrastructure name

(QFabric systems only) (Optional) Show time since the system rebooted and processes started on the fabric control Routing Engine and fabric manager Routing Engine.

interconnect-device name

(QFabric systems only) (Optional) Show time since the system rebooted and processes started on the Interconnect device.

invoke-on

(MX Series routers only) (Optional) Display the time since the system rebooted and processes started on the primary Routing Engine, backup Routing Engine, or both, on a router with two Routing Engines.

lcc number

(TX Matrix routers and TX Matrix Plus routers only) (Optional) On a TX Matrix router, show time since the system rebooted and processes started for a specific T640 router that is connected to the TX Matrix router. On a TX Matrix Plus router, show time since the system rebooted and processes started for a specific router that is connected to the TX Matrix Plus router.

Replace number with the following values depending on the LCC configuration:

  • 0 through 3, when T640 routers are connected to a TX Matrix router in a routing matrix.

  • 0 through 3, when T1600 routers are connected to a TX Matrix Plus router in a routing matrix.

  • 0 through 7, when T1600 routers are connected to a TX Matrix Plus router with 3D SIBs in a routing matrix.

  • 0, 2, 4, or 6, when T4000 routers are connected to a TX Matrix Plus router with 3D SIBs in a routing matrix.

local

(EX4200 switches and MX Series routers only) (Optional) Show time since the system rebooted and processes started on the local Virtual Chassis member.

member member-id

(EX4200 switches and MX Series routers only) (Optional) Show time since the system rebooted and processes started on the specified member of the Virtual Chassis configuration. For EX4200 switches, replace member-id with a value from 0 through 9. For an MX Series Virtual Chassis, replace member-id with a value of 0 or 1.

node node-name

(Junos OS Evolved only) (Optional) Display uptime information for the specified node. When node option is not used, display uptime information for entire system. From the system’s point of view, the system booted time is the time when the system was assembled and is available in /var/run/system_boot_time.

node-group name

(QFabric systems only) (Optional) Show time since the system rebooted and processes started on the Node group.

scc

(TX Matrix routers only) (Optional) Show time since the system rebooted and processes started for the TX Matrix router (or switch-card chassis).

sfc number

(TX Matrix Plus routers only) (Optional) Show time since the system rebooted and processes started for the TX Matrix Plus router. Replace number with 0.

Additional Information

By default, when you issue the show system uptime command on the primary Routing Engine of a TX Matrix router or a TX Matrix Plus router, the command is broadcast to all the primary Routing Engines of the LCCs connected to it in the routing matrix. Likewise, if you issue the same command on the backup Routing Engine of a TX Matrix or a TX Matrix Plus router, the command is broadcast to all backup Routing Engines of the LCCs that are connected to it in the routing matrix.

Required Privilege Level

view

Output Fields

Table 1 describes the output fields for the show system uptime command. Output fields are listed in the approximate order in which they appear.

Table 1: show system uptime Output Fields

Field Name

Field Description

System booted

(Only for Junos OS Evolved when node option is not used) Time system was last booted. From the system’s point of view, the system booted time is the time when the system was assembled and is available in /var/run/system_boot_time.

System-wide users

(Only for Junos OS Evolved when node option is not used) Number of system-wide users.

Current time

Current system time in UTC.

Time Source

Reference time source that the system is locked to.

System booted

Date and time when the Routing Engine on the router or switch was last booted and how long it has been running.

Protocols started

Date and time when the routing protocols were last started and how long they have been running.

Last configured

Date and time when a configuration was last committed. Also shows the name of the user who issued the last commit command.

time and up

Current time, in the local time zone, and how long the router or switch has been operational.

users

Number of users logged in to the router or switch.

load averages

Load averages for the last 1 minute, 5 minutes, and 15 minutes.

Sample Output

show system uptime

show system uptime node (for Junos OS Evolved)

show system uptime (QFX Series)

show system uptime (Junos OS Evolved)

Starting in Junos OS Evolved 19.1R1 release, the show system uptime output displays only the System booted and System-wide users information. The output does not display the details such as Current time, System booted, Protocols started, and Last configured parameters. To see node-specific uptime information, use the node option.

show system uptime node re0 (Junos OS Evolved)

Release Information

Command introduced before Junos OS Release 7.4.

sfc option introduced for the TX Matrix Plus router in JUNOS Release 9.6.

node option introduced in Junos OS Evolved Release 18.3R1.