Support Support Downloads Knowledge Base Case Manager My Juniper 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

[SRX] Understanding coredump file save behavior on SRX

0

0

Article ID: KB35034 KB Last Updated: 18 Sep 2019Version: 2.0
Summary:

This article explains the coredump file save behavior on the SRX Series.

Solution:

Sometimes when there is an issue on SRX, a core-dump file will be generated. You can use the 'show system core-dumps' command to show a list of system core files created.

By default, five core-files per category (process, PFE, FPC, ... ) are saved. If there are already five core files being saved to the file system and another core is being dumped, 
the most recent core file (*.core.4) will be overwritten. 

Example:

root@srx> show system core-dumps no-forwarding

/var/crash/*core*: No such file or directory
-rw-rw----  1 root  wheel   15402046 Nov 13  2018 /var/tmp/mgd-api.core-tarball.0.tgz
-rw-rw----  1 root  wheel   15389468 Nov 27  2018 /var/tmp/mgd-api.core-tarball.1.tgz
-rw-rw----  1 root  wheel   15401852 Dec 12  2018 /var/tmp/mgd-api.core-tarball.2.tgz
-rw-rw----  1 root  wheel   15407265 Dec 26  2018 /var/tmp/mgd-api.core-tarball.3.tgz
-rw-rw----  1 root  wheel   15541090 Jun 25 07:01 /var/tmp/mgd-api.core-tarball.4.tgz
/var/tmp/pics/*core*: No such file or directory
/var/crash/kernel.*: No such file or directory
/var/jails/rest-api/tmp/*core*: No such file or directory
/tftpboot/corefiles/*core*: No such file or directory
total files: 5

The last coredump file was replaced with new one on Aug 7 in this output.

root@srx> show system core-dumps no-forwarding

/var/crash/*core*: No such file or directory
-rw-rw----  1 root  wheel   15402046 Nov 13  2018 /var/tmp/mgd-api.core-tarball.0.tgz
-rw-rw----  1 root  wheel   15389468 Nov 27  2018 /var/tmp/mgd-api.core-tarball.1.tgz
-rw-rw----  1 root  wheel   15401852 Dec 12  2018 /var/tmp/mgd-api.core-tarball.2.tgz
-rw-rw----  1 root  wheel   15407265 Dec 26  2018 /var/tmp/mgd-api.core-tarball.3.tgz
-rw-rw----  1 root  wheel   15406949 Aug 7  16:26 /var/tmp/mgd-api.core-tarball.4.tgz
/var/tmp/pics/*core*: No such file or directory
/var/crash/kernel.*: No such file or directory
/var/jails/rest-api/tmp/*core*: No such file or directory
/tftpboot/corefiles/*core*: No such file or directory
total files: 5

Move the core file to the outside of the device using sftp or ftp each time when you find it. Then contact your JTAC representative to investigate it.

To save more core files, use the following command.

[edit]
root@SRX# set system saved-core-files ?
Possible completions:
  <saved-core-files>   Number of saved core files per executable (1..10)

The range is 1~10, the default value is 5.
 

For more details on saving core files, refer to Saving Core Files from Junos OS Processes

Related Links

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