393
Default
A process generates a core file for the first exception and does not generate any core files for
subsequent exceptions.
Predefined user roles
network-admin
Parameters
off
: Disables core file generation.
maxcore
value
: Enables core file generation and sets the maximum number of core files, in the
range of 1 to 10.
name
process-name
: Specifies a process by its name, a case-insensitive string of 1 to 15
characters.
job job-id
: Specifies a process by its job ID, in the range of 1 to 2147483647. The job ID does not
change after the process restarts.
slot
slot-number
: Specifies a card by its slot number. If you do not specify this option, the command
enables or disables core file generation for a process and sets the maximum number of core files on
the active MPU. (Distributed devices in standalone mode.)
slot
slot-number
: Specifies an IRF member device by its member ID. If you do not specify a member
device, this command displays information for the master device. (Centralized devices in IRF mode.)
chassis
chassis-number
slot
slot-number
: Specifies a card on an IRF member device. The
chassis-number
argument represents the member ID of the IRF member device. The
slot-number
argument represents the slot number of the card. If you do not specify a card, this command displays
information for the global active MPU. (Distributed devices in IRF mode.)
cpu
cpu-number
: Specifies a CPU by its number. (Centralized devices in IRF mode/distributed
devices in IRF or standalone mode.)
Usage guidelines
The command applies to all instances of a process.
The command enables the system to generate a core file each time the specified process crashes
until the maximum number of core files is reached. A core file records the exception information.
Because the core files consume system storage resources, you can disable core file generation for
processes for which you do not need to review exception information.
Examples
# Disable core file generation for process
routed
.
<Sysname> process core off name routed
# Enable core file generation for process
routed
and set the maximum number of core files to 5.
<Sysname> process core maxcore 5 name routed
Related commands
display exception context