28.06.2014 Views

Discussion

Discussion

Discussion

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Solution<br />

The rollback configuration mode command loads a previous router configuration as<br />

the candidate configuration:<br />

[edit]<br />

aviva@router1# rollback 1<br />

load complete<br />

[edit]<br />

aviva@router1# show<br />

[edit]<br />

aviva@router1# commit<br />

commit complete<br />

<strong>Discussion</strong><br />

You can reload any of the previously committed versions of the configuration file.<br />

You identify the version by the number, which is the number in the filename. In this<br />

example, we reload the last saved configuration file, /config/juniper.conf.1.gz. The<br />

rollback command only loads the configuration, making it the candidate configuration,<br />

but does not activate it. The commit command activates the retrieved configuration.<br />

While using the show command here is optional, it’s good practice to verify that<br />

the configuration you loaded is what you expect.<br />

To figure out which previous configuration you want to retrieve, you can use a few<br />

commands that we have already discussed, including show system commit and file<br />

list detail /config. You can use the file list detail /var/db/config command to<br />

find out when the older configuration files were activated and by whom. You can<br />

also see this information when you issue the rollback command by using the router’s<br />

built-in help:<br />

[edit]<br />

aviva@router1# rollback ?<br />

Possible completions:<br />

<br />

Execute this command<br />

0 2005-02-25 12:31:52 PST by aviva via cli<br />

1 2005-02-25 10:45:12 PST by aviva via cli commit at<br />

2 2005-02-25 03:10:21 PST by root via cli<br />

...<br />

48 2005-02-19 03:01:04 PST by root via cli<br />

49 2005-02-18 18:24:21 PST by aviva via cli<br />

| Pipe through a command<br />

See Also<br />

Recipes 1.10, 1.14, and 1.18<br />

Loading a Previous Router Configuration | 41<br />

This is the Title of the Book, eMatter Edition<br />

Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!