240
[Sysname] undo password-recovery enable
process core
Use
process
core
to enable or disable the system to generate core files for crashes of a process
and set the maximum number of core files.
Syntax
In standalone mode:
process
core
{
maxcore
value
|
off
} {
job
job-id
|
name
process-name
} [
slot
slot-number
[
cpu
cpu-number
] ]
In IRF mode:
process
core
{
maxcore
value
|
off
} {
job
job-id
|
name
process-name
} [
chassis
chassis-number
slot
slot-number
[
cpu
cpu-number
] ]
Views
User view
Default
The system generates a core file for the first crash of a process and does not generate any core files
for subsequent crashes of the process.
Predefined user roles
network-admin
mdc-admin
Parameters
off
: Disables core file generation.
maxcore
value
: Enables core file generation and sets the maximum number of core files. The value
range of the
value
argument is 1 to 10. The default is 1.
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. The value range is 1 to 2147483647. The job ID of a
process 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
is applied to the active MPU. (In standalone 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 is
applied to the global active MPU. (In IRF mode.)
cpu
cpu-number
: Specifies a CPU by its number. The
cpu-number
argument is fixed at 0.
Usage guidelines
After you enable core file generation for a process, the system generates a core file each time the
process crashes until the maximum number of core files is reached. A core file records the crash
information.
Core files consume system storage resources. To save storage resources, disable core file
generation for processes for which you do not need to review crash information.
This command applies to all instances of a process.