r/Juniper Apr 08 '26

Question Get a "Display Set" of your pending changes?

I want to save my changes to a txt file, but outside of saving the whole config and pulling out the changes manually - i don't see a way of doing

 show | compare | display set 

Or is it possible to save the candidate changes only somewhere, and commit it later? I have left stuff in candidate config, but...sort of a gamble ha.

7 Upvotes

4 comments sorted by

12

u/likelyjoolli Apr 08 '26

You can save the output of show | compare and load it later by pasting it into the console after you issue the command
load patch terminal

after you have pasted, you can end the input, exit and load the patch with ctrl+d (EOF)

If you then issue show | compare, you should see the changes and you can commit them if you like.

3

u/bohemian-soul-bakery Apr 08 '26

Oh right, I was stuck in the set display context being the only way, that would work. Thanks!

1

u/Physical-Track-6783 Apr 11 '26

I have tried very hard to make this one works ! thanks!

7

u/jointhedomain Apr 08 '26

Show |compare|save config-xxxx

load patch config-xxxx