285
monitor kernel deadloop time
monitor kernel deadloop time
Use
monitor kernel deadloop time
to set the interval for identifying a kernel thread deadloop.
Use
undo monitor kernel deadloop time
to restore the default.
Syntax
In standalone mode:
monitor kernel deadloop time
interval
[
slot
slot-number
[
cpu
cpu-number
] ]
undo monitor kernel deadloop time
[
slot
slot-number
[
cpu
cpu-number
] ]
In IRF mode:
monitor kernel deadloop time
interval
[
chassis
chassis-number
slot
slot-number
[
cpu
cpu-number
] ]
undo monitor kernel deadloop time
[
chassis
chassis-number
slot
slot-number
[
cpu
cpu-number
] ]
Default
The interval for identifying a kernel thread deadloop is 8 seconds.
Views
System view
Predefined user roles
network-admin
Parameters
time
interval
: Specifies the interval for identifying a kernel thread deadloop, in the range of 1 to
65535 seconds.
slot
slot-number
: Specifies an MPU by its slot number. If you do not specify this option, the active
MPU is specified. (In standalone mode.)
chassis
chassis-number
slot
slot-number
: Specifies an MPU on an IRF member device. If you do
not specify this option, the global active MPU is specified. (In IRF mode.)
cpu
cpu-number
: Specifies a CPU by its number.
Usage guidelines
If a kernel thread runs for the specified interval, kernel thread deadloop detection considers that a
deadloop has occurred. The system records the deadloop and restarts.
Inappropriate use of the command can cause service problems or system breakdown. Make sure
you understand the impact of the command on your network before you use it.
Examples
# Set the interval for identifying a kernel thread deadloop to 8 seconds.
<Sysname> system-view
[Sysname] monitor kernel deadloop time 8
Related commands
display kernel deadloop configuration
display kernel deadloop
monitor kernel deadloop enable