The usage of Junos Commit command

We already know from the previous lessons that the command “commit” allow us to save the configure on the router, specifically to save the candidate configuration to the active configuration.

However, there are many options that we can use with the “commit” command, and in this lesson I am going to explore all of them.

Those can be seen here:

root@R1# commit ?

Possible completions:

<[Enter]>           Execute this command

and-quit              Quit configuration mode if commit succeeds

at                        Time at which to activate configuration changes

check                  Check correctness of syntax; do not apply changes

comment            Message to write to commit log

confirmed           Automatically rollback if not confirmed

|                           Pipe through a command

You can see, we can write many completion commands after the commit, and that’s what I am going to explore in this lesson.

Let’s start by creating a new user and before I create a class for this I will make a commit and see what I will get:

root@R1# edit system login user John

[edit system login user John]

root@R1# set authentication plain-text-password

New password:

Retype new password:

 

[edit system login user John]

root@R1# commit

[edit system login]

‘user John’

Missing mandatory statement: ‘class’

error: commit failed: daemon file propagation failed

 

[edit system login user John]

root@R1#

Apologies, the Full Lesson Access is Only for Members....

\

Get Access to all Lessons from different Vendors

\

Affordable Price to Enhance your IT Skills!

\

Always Accessing all Lessons including the New Added Ones

100% Satisfaction Guaranteed!

You can cancel your membership at anytime.
No Questions Asked Whatsover!

Course Content

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

About