28.06.2014 Views

Discussion

Discussion

Discussion

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

To track down what changed in the configuration and when, you can review the<br />

comments:<br />

aviva@router1> show system commit<br />

0 2005-03-31 20:26:16 UTC by aviva via cli<br />

turned on telnet<br />

1 2005-03-31 11:12:28 UTC by aviva via cli<br />

set host gildor facility-override local4<br />

See Also<br />

Recipe 1.17<br />

1.11 Determining What Changes You Have Made<br />

to the Configuration<br />

Problem<br />

You want to check what changes you have already made when editing a configuration.<br />

Solution<br />

To find out what changes were made during the current configuration session, use<br />

the following command:<br />

[edit]<br />

aviva@RouterG# show | compare<br />

[edit interfaces]<br />

-fe-1/0/1 {<br />

-unit 0 {<br />

-family inet {<br />

-address 10.0.1.2/24;<br />

- }<br />

- }<br />

- }<br />

To compare the current configuration to the previous one, use the following command:<br />

[edit]<br />

aviva@RouterG# show | compare rollback 1<br />

[edit protocols ospf]<br />

- export send-direct;<br />

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

When you are working in a small portion or hierarchy of the configuration, you can<br />

issue the show command from time to time to see the configuration statements that<br />

were added or deleted so you can confirm the configuration. However, when making<br />

changes throughout the configuration hierarchy, you generally just want a summary<br />

of all the changes so you don’t have to dig through the entire router<br />

configuration. The easiest way to see all the changes is to move to the top of the<br />

Determining What Changes You Have Made to the Configuration | 27<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!