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.

login {<br />

class superuser-local {<br />

permissions all;<br />

}<br />

user aviva {<br />

class superuser;<br />

}<br />

user mike {<br />

class superuser;<br />

}<br />

}<br />

You can see from this output that the user mike is now in the [edit system] section of<br />

the candidate configuration. Again, remember to use the commit command to activate<br />

these changes.<br />

If the file containing the configuration for the new users is on a server, you can load<br />

and merge it directly into the configuration:<br />

[edit]<br />

aviva@router1# show system login<br />

class superuser-local {<br />

permissions all;<br />

}<br />

user aviva {<br />

class superuser;<br />

}<br />

aviva@router1# load merge relative server1:/tmp/router-config-new-user<br />

aviva@server1's password:<br />

router-config-new-users 100% 54 0.1KB/s 00:00<br />

load complete<br />

[edit]<br />

aviva@router1# show system login<br />

class superuser-local {<br />

permissions all;<br />

}<br />

user aviva {<br />

class superuser;<br />

}<br />

user mike {<br />

class superuser;<br />

}<br />

The relative option in the load merge command performs the operation without<br />

needing the full hierarchy level. To use this option, the hierarchy level in the file<br />

must be clear and unambiguous.<br />

If the file containing the configuration of the new users is on another router, you can<br />

use the same command to copy it to your router. Specify the router name instead of<br />

the server name.<br />

Configuring the Router by Copying a File from a Server | 31<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!