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.

Apr 29 22:55:16 router xntpd[4977]: kernel time discipline status change 2041<br />

Apr 29 22:56:47 router re1 mgd[3841]: UI_DBASE_LOGOUT_EVENT: User 'aviva' exiting<br />

configuration mode<br />

See Also<br />

Recipe 1.30<br />

5.9 Turning Off Logging<br />

Problem<br />

You no longer want to record system log messages in a file.<br />

Solution<br />

To stop recording system log messages, mark the configuration statements so that<br />

they do not take effect:<br />

[edit system syslog]<br />

aviva@router1# deactivate system syslog file messages<br />

aviva@router1# commit<br />

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

The best way to stop recording system log messages to a particular logging file is to<br />

deactivate that portion of the configuration. Doing this leaves the configuration<br />

statements in the configuration but marks them as inactive:<br />

[edit system syslog]<br />

aviva@router1# show<br />

inactive: file messages {<br />

any notice;<br />

archive world-readable;<br />

explicit-priority;<br />

}<br />

If you type the show command one level lower in the configuration hierarchy, you see<br />

an even longer reminder that this portion of the configuration has been deactivated:<br />

[edit system syslog file messages]<br />

aviva@router1# show<br />

##<br />

## inactive: file messages<br />

##<br />

Another way to turn off logging is to delete the configuration statements from the<br />

configuration:<br />

[edit system syslog]<br />

aviva@router1# delete system syslog file messages<br />

aviva@router1# commit<br />

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

Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.<br />

Turning Off Logging | 177

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

Saved successfully!

Ooh no, something went wrong!