Routing

last person joined: 3 days ago 

Ask questions and share experiences about ACX Series, CTP Series, MX Series, PTX Series, SSR Series, JRR Series, and all things routing, including portfolios and protocols.
  • 1.  Getting rollback number in MX960

    Posted 03-23-2017 11:46

    Hi This is a process of rollback below in MX960

     

    show system commit ------------> get the number

     

    configure

    rollback (the number)

    commit

     

    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? 

     

    Thank you

     



  • 2.  RE: Getting rollback number in MX960

     
    Posted 03-23-2017 12:58

    Hi,

     

    The maximun rollback point in junos is 49. Junos saves only last 50 commited configs and there is no rollback point beyond 49:

    https://www.juniper.net/documentation/en_US/junos/topics/reference/command-summary/rollback.html

     

    Cheers,

    Ashvin



  • 3.  RE: Getting rollback number in MX960

    Posted 03-23-2017 13:06

    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



  • 4.  RE: Getting rollback number in MX960
    Best Answer

    Posted 03-23-2017 17:55

    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.



  • 5.  RE: Getting rollback number in MX960

     
    Posted 03-23-2017 19:44

    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

    /var/tmp/:
    1
    2
    3
    4
    5
    6
    7
    8
    9
    LOCK_FILE
    config.txt

    lab>

     

    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 commit
    0 2017-03-24 01:39:33 UTC by labroot via cli
    1 2017-03-24 01:37:34 UTC by labroot via cli
    2 2017-03-24 01:33:12 UTC by labroot via cli
    3 2017-03-23 18:48:13 UTC by labroot via cli
    4 2017-03-23 18:45:42 UTC by labroot via cli
    5 2017-03-23 18:44:25 UTC by labroot via cli

     



  • 6.  RE: Getting rollback number in MX960

    Posted 03-24-2017 07:19

    AshvinO and python' soluthin are also good, but only one answer can be accepted as solution at the website. Anyway thank you all