Core and Log Files
S e n d d o c u m e n t a t i o n c o m m e n t s t o m d s f e e d b a c k - d o c @ c i s c o . c o m
To copy the core and log files periodically, follow these steps:
Command
Step 1
switch# show system cores
Step 2
switch# config t
Step 3
switch(config)# system cores slot0:coreSample
switch(config)# system cores tftp://1.1.1.1/abcd
switch(config)# no system cores
Saving the Last Core to Bootflash
This last core dump is automatically saved to bootflash in the /mnt/pss/ partition before the switchover
or reboot occurs. Three minutes after the supervisor module reboots, the saved last core is restored from
the flash partition (/mnt/pss) back to its original RAM location. This restoration is a background process
and is not visible to the user.
The timestamp on the restored last core file displays the time when the supervisor booted up not when
Tip
the last core was actually dumped. To obtain the exact time of the last core dump, check the
corresponding log file with the same PID.
To view the last core information, issue the show cores command in EXEC mode.
To view the time of the actual last core dump, issue the show process log command in EXEC mode.
Clearing the Core Directory
Use the clear cores command to clean out the core directory. The software clears all the core files and
other cores present on the active supervisor module.
switch# clear cores
First and Last Core
The first and last core feature uses the limited system resource and retains the most important core files.
Generally, the first core and the most recently generated core have the information for debugging and,
the first and last core feature tries to retain the first and the last core information.
If the core files are generated from active supervisor module, the number of core files for the service is
defined in the service.conf file. There is no upper limit on the total number of core files in the active
supervisor module.
To display the core files saved in the system, use the show cores command:
Cisco MDS 9000 Family CLI Configuration Guide
59-8
Chapter 59
Monitoring System Processes and Logs
Purpose
Displays all the core files.
Enters configuration mode.
Copies the core file (coreSample) to slot 0.
Copies the core file (abcd) in the specified
directory on the TFTP server at IPv4
address 1.1.1.1.
You can also use IPv6 addresses to
Note
identify the TFTP server.
Disables the core files copying feature.
OL-18084-01, Cisco MDS NX-OS Release 4.x