Support Support Downloads Knowledge Base Juniper Support Portal Community

Knowledge Base

Search our Knowledge Base sites to find answers to your questions.

Ask All Knowledge Base Sites All Knowledge Base Sites JunosE Defect (KA)Knowledge BaseSecurity AdvisoriesTechnical BulletinsTechnotes Sign in to display secure content and recently viewed articles

How to change the way core files are saved in Junos



Article ID: KB22860 KB Last Updated: 14 Feb 2017Version: 3.0
This article provides information on how to change the way core files are saved in Junos.
 When a router process generates a core file, the file is saved in /var/tmp/. You can change this default behavior by editing the configuration.
To disable the saving of core files and associated context information, include the no-saved-core-context statement at the [edit system] hierarchy level:

[edit system]

To save only the core files, include the saved-core-files statement at the [edit system] hierarchy level and specify the number of files to save:

[edit system]
saved-core-files number;
number is the number of core files to save and can be a value from 1 through 10.

To save the core files along with the contextual information, include the saved-core-context statement at the [edit system] hierarchy level:

[edit system]

The contexual information includes system log files and a copy of the current configuration.
The router saves each core file and its associated context in a compressed tar file named /var/tmp/process-name.core.core-number.tgz.
Comment on this article > Affected Products Browse the Knowledge Base for more articles related to these product categories. Select a category to begin.

Getting Up and Running with Junos

Getting Up and Running with Junos Security Alerts and Vulnerabilities Product Alerts and Software Release Notices Problem Report (PR) Search Tool EOL Notices and Bulletins JTAC User Guide Customer Care User Guide Pathfinder SRX High Availability Configurator SRX VPN Configurator Training Courses and Videos End User Licence Agreement Global Search