Hi This is a process of rollback below in MX960
show system commit ------------> get the number
rollback (the number)
But sometimes, The number we want to rollback is too far away to see in the command output. and it only can show the number up to 49. if the number is more than 50 in command "show system commit". If so, how can we get the number?
The maximun rollback point in junos is 49. Junos saves only last 50 commited configs and there is no rollback point beyond 49:
Thanks for your reply. You are right.
Command "show configuration | save xxxxx" can save the configuration. Can you tell how to upload the file xxxxx into router? or send a link. Thanks
By default these files are saved in the users home directory. You can load them from the configuration mode.
In your case:
#load override xxxxx
the ? mark will give you a list of files in your home directory.
Hi Folks,The files are saved based on the directory hierarchy the user was there while running the save command; need not be the home directory always. I would prefer to run the command “file list” from cli to confirm the current directory path before or after saving the config.
lab> file list
Also if you have not noted the file location while saving and want to search the same later; Its much simple with Junos [I would say “The Giant/powerful FreeBSD-based operating system Platform” ]
Login to shell
lab> start shell% cd /% find . -iname "file-name"find: ./var/tmp/<file-name>%
To add, I always love to use the "show system rollback compare" command; which gives the delta between two commits. By DEFAULT "show configuration | compare rollback X" WILL SOME THE DELTA BETWEEN current running config and X commit.
lab> show system rollback compare 1 2[edit routing-options static route 0.0.0.0/0]- next-hop 10.219.38.1;+ discard;
lab> show system commit0 2017-03-24 01:39:33 UTC by labroot via cli1 2017-03-24 01:37:34 UTC by labroot via cli2 2017-03-24 01:33:12 UTC by labroot via cli3 2017-03-23 18:48:13 UTC by labroot via cli4 2017-03-23 18:45:42 UTC by labroot via cli5 2017-03-23 18:44:25 UTC by labroot via cli
AshvinO and python' soluthin are also good, but only one answer can be accepted as solution at the website. Anyway thank you all