Technical Documentation

Saving Core Files from JUNOS Software Processes

By default, when an internal JUNOS process generates a core file, the file and associated context information are saved for debugging purposes in a compressed tar file named /var/tmp/process-name.core.core-number.tgz. The contextual information includes the configuration and system log message files.

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]no-saved-core-context;

To save the core files only, 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]saved-core-context;

Published: 2010-04-26