This article provides information on how to create a Services PIC core dump. You have an issue with a Services PIC and want to create a core dump.
You can connect to the Services PIC and issue the write coredump command. A core dump will be written to the /var/tmp/ or /var/crash/ directory.
The following example is the step-by-step procedure:
- Determine in which slot the PIC is installed:
1234user@router> show interfaces terse sp-*Interface Admin Link Proto Local Remotesp-1/3/0 up upsp-1/3/0.16383 up up inet 10.0.0.1 --> 10.0.0.35
- Connect to the FPC:
1user@router> start shell pfe network fpc1
- Connect to the PIC:
1234FPC1(vty)# pty 3Connected.sp13(atr8)#
- Force a core dump:
123456sp13(atr8)# write coredumpcoredump requested by CPU 8: requested by userconnecting to 10.0.0.1:31341 (fsad)#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.< ... output truncated ...>
- Disconnect by using ^C:
12sp13(atr8)# exit on signal 2user@router>
- Check if a core dump has been written to the file system:
12user@router> show system core-dumps-rw-r--r-- 1 root wheel 7287461 Aug 21 15:10 /var/crash/core-sp13.core.0.20060821.1508.gz
Note: If you are working on a router with SBR (M5 or M10) or CSBR (M7i or M10i), you have to connect to the FEB or CFEB; instead of the FPC. Additionally, in order to connect to the appropriate PIC-slot on FPC1, the PIC slot would be PIC-slot+4.
In the above example, the procedure to connect to the PIC in slot 1/3 would be:
user@router-M10i> start shell pfe network cfeb0
CSBR platform (266Mhz PPC 603e processor, 256MB memory, 512KB flash)
CSBR0(router vty)# pty 7
NOTICE: "write coredump" will cause MS/AS-PIC reset , you can check the uptime by issue "show version"
sp13(vty)# sh version
Juniper Embedded Microkernel Version 10.0R3.10
Built by builder on 2010-04-16 08:37:44 UTC
Copyright (C) 1998-2010, Juniper Networks, Inc.
All rights reserved.
Stargate platform (500Mhz XLR processor, 1024MB memory, 0KB flash)
Current time : Mar 22 08:39:55.435303
Elapsed time : 2+23:09:41