Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
Junos CLI Reference
Table of Contents Expand all
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

show system commit

date_range 19-Nov-23

Syntax

content_copy zoom_out_map
show system commit
<revision | server | synchronize-server pending-jobs | include-configuration-revision>

Description

Display the system commit history and pending commit operations.

Options

none

Display the last 50 commit operations on the static configuration database, starting with the most recent.

revision

(Optional) Display the revision number of the active configuration of the Routing Engine(s).

server

(Optional) Display the commit server status.

Note:

By default, the status of the commit server is “Not running”. The commit server starts running only when a commit job is added to the batch.

synchronize-server pending-jobs

(Optional) Display the pending commit synchronize operations for all instances of the ephemeral configuration database on an MX Series Virtual Chassis or a device with dual Routing Engines. This option can only be executed on the primary Routing Engine of the Virtual Chassis primary router or the dual Routing Engine system.

include-configuration-revision

(Optional) Display configuration revision information including the revision identifier string for each commit record.

Required Privilege Level

view

Output Fields

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

Table 1: show system commit Output Fields

Field Name

Field Description

Level of Output

<number>

Displays the last 50 commit operations listed, most recent to first. The identifier <number> designates a configuration created for recovery using the request system configuration rescue save command.

none

<time-stamp>

Date and time of the commit operation.

none

<root>/<username>

User who executed the commit operation.

none

<method>

Method used to execute the commit operation:

  • CLI—CLI interactive user performed the commit operation.

  • Junos XML protocol—Junos XML protocol client performed the commit operation.

  • synchronize—The commit synchronize command was performed on the other Routing Engine.

  • snmp—An SNMP set request caused the commit operation.

  • button—A button on the router or switch was pressed to commit a rescue configuration for recovery.

  • autoinstall—A configuration obtained through autoinstallation was committed.

  • other—When there is no login name associated with the session, the values for user and client default to root and other. For example, during a reboot after package installation, mgd commits the configuration as a system commit, and there is no login associated with the commit.

none

<rollback pending>

Identifies whether commit confirmed is issued. It is removed once commit or commit check is issued or commit confirmed is rolled back after rollback timeout.

none

Sample Output

show system commit

content_copy zoom_out_map
user@host> show system commit 
0   2003-07-28 19:14:04 PDT by root via other
1   2003-07-25 22:01:36 PDT by user via cli
2   2003-07-25 22:01:32 PDT by user via cli
3   2003-07-25 21:30:13 PDT by root via button
4   2003-07-25 13:46:48 PDT by user via cli
5   2003-07-25 05:33:21 PDT by root via autoinstall
...
rescue  2002-05-10 15:32:03 PDT by root via other

show system commit (At a Particular Time)

content_copy zoom_out_map
user@host> show system commit 
commit requested by root via cli at Tue May  7 15:59:00 2002 

show system commit (At the Next Reboot)

content_copy zoom_out_map
user@host> show system commit 
commit requested by root via cli at reboot

show system commit (Rollback Pending)

content_copy zoom_out_map
user@host> show system commit 
0   2022-05-06 06:33:42 PDT by root via cli commit confirmed, rollback in 10mins

show system commit (QFX Series)

content_copy zoom_out_map
user@switch> show system commit 
0   2011-11-25 19:17:49 PST by root via cli

show system commit synchronize-server pending-jobs

content_copy zoom_out_map
user@host> show system commit synchronize-server pending-jobs 
Job Id                 Commit Synchronize Model       Database                        Version
36                     Asynchronous Commit            ephemeral                       130
37                     Asynchronous Commit            ephemeral                       131
38                     Asynchronous Commit            ephemeral                       132
39                     Asynchronous Commit            ephemeral                       133
40                     Asynchronous Commit            ephemeral                       134
41                     Asynchronous Commit            ephemeral                       135
42                     Asynchronous Commit            ephemeral                       2

show system commit include-configuration-revision

content_copy zoom_out_map
user@host> show system commit include-configuration-revision 
0   2020-08-02 00:42:58 IST by user via cli re0-1596309177-4
1   2020-08-02 00:42:53 IST by user via cli re0-1596309173-3
2   2020-08-02 00:42:50 IST by user via cli re0-1596309170-2
3   2020-08-02 00:42:40 IST by user via other re0-1596309160-1

Release Information

Command introduced before Junos OS Release 7.4.

Option server introduced in Junos OS Release 12.1 for the PTX Series router.

Option revision introduced in Junos OS Release 14.1.

Option synchronize-server introduced in Junos OS Release 17.2R1 and Junos OS Evolved Release 22.1R1.

Option include-configuration-revision introduced in Junos OS Release 20.4R1 and Junos OS Evolved Release 20.4R1.

footer-navigation