Turning Off Logging

Problem

You no longer want to record system log messages in a file.

Solution

To stop recording system log messages, mark the configuration statements so that they do not take effect:

	[edit system syslog]
	aviva@router1# deactivate system syslog file messages
	aviva@router1# commit

 

Discussion

The best way to stop recording system log messages to a particular logging file is to deactivate that portion of the configuration. Doing this leaves the configuration statements in the configuration but marks them as inactive:

	[edit system syslog]
	aviva@router1# show
	inactive: file messages {
	 any notice;
	 archive world-readable;
	 explicit-priority;
	}

If you type the show command one level lower in the configuration hierarchy, you see an even longer reminder that this portion of the configuration has been deactivated:

	[edit system syslog file messages]
	aviva@router1# show
	##
	## inactive: file messages
	##

Another way to turn off logging is to delete the configuration statements from the configuration:

	[edit system syslog]
	aviva@router1# delete system syslog file messages
	aviva@router1# commit

The advantage of deactivating rather than deleting is that you can still see the configuration statements. If the problem you were investigating recurs later, you can remove the inactive: tag to start collecting those system log messages again:

	[edit system syslog]
	aviva@router1# activate system syslog file messages
	aviva@router1# commit



Router Configuration and File Management

Basic Router Security and Access Control

IPSec

SNMP

Logging

NTP

Router Interfaces

IP Routing

Routing Policy and Firewall Filters

RIP

IS-IS

OSPF

BGP

MPLS

VPNs

IP Multicast



JUNOS Cookbook
Junos Cookbook (Cookbooks (OReilly))
ISBN: 0596100140
EAN: 2147483647
Year: 2007
Pages: 290
Authors: Aviva Garrett

Similar book on Amazon

Flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net