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.

Solution<br />

Use the following version of the configure command to enter configuration mode:<br />

aviva@router1> configure exclusive<br />

warning: uncommitted changes will be discarded on exit<br />

Entering configuration mode<br />

[edit]<br />

aviva@router1#<br />

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

Because more than one person can log in to the router at the same time, several people<br />

may be modifying the configuration simultaneously. You will know that another<br />

person is editing the configuration when you enter configuration mode:<br />

aviva@router1> configure<br />

Entering configuration mode<br />

Users currently editing the configuration:<br />

mike terminal p3 (pid 1088) on since 2005-02-30 19:47:58 PST, idle 00:00:44<br />

[edit]<br />

aviva@router1#<br />

Here you can see that mike is also logged in, is working in configuration mode, and<br />

has not typed anything for 44 seconds. However, if someone enters configuration<br />

mode after you do, the CLI does not display any message, so you will not be notified.<br />

Instead, you need to check:<br />

[edit]<br />

aviva@router1# status<br />

Users currently editing the configuration:<br />

aviva terminal p0 (pid 3358) on since 2005-06-09 11:22:18 PDT<br />

[edit]<br />

mike terminal p1 (pid 3768) on since 2005-06-09 11:48:31 PDT<br />

[edit]<br />

If you need to ensure that no one else can change the configuration while you are<br />

modifying it, use the configure exclusive command to enter configuration mode.<br />

With this option, no other users can change the configuration as long as you are in<br />

configuration mode. If you do not commit the changes you make, they are lost when<br />

you exit from configuration mode.<br />

If another user has locked the configuration, you can forcibly log him out:<br />

aviva@router1> request system logout user mike<br />

You get the username from the message displayed when you enter configuration<br />

mode or from the status command.<br />

18 | Chapter 1: Router Configuration and File Management<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!