Cisco Headend System Release 2.5 Mode D'Emploi
749640 Rev D
Save Core Files With the savecore Utility
2-7
Examine a Core File
Examining a Core File
When the savecore utility is enabled on the DNCS or the Application Server, the
system automatically writes the contents of a core dump to a file on the DNCS or the
Application Server. The system writes the contents of the core dump when the
system reboots.
Note: The system names the core dump files vmcore.0, vmcore.1, vmcore.2, etc.
Follow these instructions to view the contents of a core dump.
Note: The system names the core dump files vmcore.0, vmcore.1, vmcore.2, etc.
Follow these instructions to view the contents of a core dump.
1.
If necessary, open an xterm window on the DNCS or Application Server,
depending upon which computer contains the core file you want to examine.
2.
Choose one of the following options:
•
•
To examine a core file on the DNCS, type
cd /export/home/crash/[DNCS name] and then press Enter.
•
To examine a core file on the Application Server, type
cd /export/home/crash/[Application Server name] and then press Enter.
Result: The directory to which the core dump output was written becomes
the working directory.
3.
Type ls -ltr and then press Enter.
Result: The system lists the files in the current directory according to
Result: The system lists the files in the current directory according to
modification time (most recently written files last).
Note: The newest file, named similar to vmcore.#, contains the contents of
Note: The newest file, named similar to vmcore.#, contains the contents of
system memory from the most recent system crash.
4.
Type strings vmcore.# | more and then press Enter.
Note: Substitute the number associated with the core file you want to
Note: Substitute the number associated with the core file you want to
examine for #.
Example: strings vmcore.0 | more
Result: The system opens the core file using the UNIX strings and more
Example: strings vmcore.0 | more
Result: The system opens the core file using the UNIX strings and more
utilities.
5.
Examine the core file to determine why the system crashed.
Notes:
•
Notes:
•
Press the Spacebar to advance through the file.
•
Press the Ctrl and c keys simultaneously to close the core file.
•
Call Cisco Services for help in examining the core file.