Diagnostics probe commands -- display drvplat boot-info-record debug-status

| NOTE: Support for this command depends on the device model.

Use display drvplat boot-info-record debug-status to display enabling status for maintenance information collection on an interface card.

Syntax

Distributed devices in standalone mode:

Distributed devices in IRF mode:

Views

Probe view

Predefined user roles

network-admin

mdc-admin

Parameters

slot slot-number: Specifies an interface card by its slot number. (Distributed devices in standalone mode.)

chassis chassis-number slot slot-number: Specifies an interface 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. (Distributed devices in IRF mode.)

Diagnostics probe commands -- display drvplat boot-info-record file

| NOTE: Support for this command depends on the device model.

Use display drvplat boot-info-record file to display collected maintenance information.

Syntax

Views

Probe view

Predefined user roles

network-admin

mdc-admin

Parameters

file-name: Specifies a maintenance information file. This argument must contain the storage medium name.

Diagnostics probe commands -- display drvplat boot-info-record force-times

| NOTE: Support for this command depends on the device model.

Use display drvplat boot-info-record force-times to display the number of times for enhanced maintenance information collection on an interface card.

Syntax

Distributed devices in standalone mode:

Distributed devices in IRF mode:

Views

Probe view

Predefined user roles

network-admin

mdc-admin

Parameters

slot slot-number: Specifies an interface card by its slot number. (Distributed devices in standalone mode.)

chassis chassis-number slot slot-number: Specifies an interface 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. (Distributed devices in IRF mode.)

Diagnostics probe commands -- display system internal kernel memory dump

Use display system internal kernel memory dump to display kernel memory contents.

Syntax

Centralized devices:

display system internal kernel memory dump address address-hex length memory-length

Distributed devices in standalone mode:Centralized IRF devices:

display system internal kernel memory dump address address-hex length memory-length [ slot slot-number [ cpu cpu-number ] ]

Distributed devices in IRF mode:

display system internal kernel memory dump address address-hex length memory-length [ chassis chassis-number slot slot-number [ cpu cpu-number ] ]

Views

Probe view

Predefined user roles

network-admin

mdc-admin

Parameters

address address-hex: Specifies the start address.

length memory-length: Specifies the memory length in bytes from the start address. The value range is 1 to 1024.

slot slot-number: Specifies a card by its slot number. If you do not specify a card, this command displays kernel memory contents for 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 kernel memory contents for the master device. (Centralized IRF devices.) (IRF 3 incapable.)

slot slot-number: Specifies an IRF member device by its member ID or specifies a PEX by its virtual slot number. If you do not specify a member device or PEX, this command displays kernel memory contents for the master device. (Centralized IRF devices.) (IRF 3 capable.)

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 kernel memory contents for the global active MPU. (Distributed devices in IRF mode.) (IRF 3 incapable.)

chassis chassis-number slot slot-number: Specifies a card on an IRF member device or specifies a PEX. The chassis-number argument represents the member ID of the IRF member device or the virtual chassis number of the PEX. The slot-number argument represents the slot number of the card or PEX. If you do not specify a card or PEX, this command displays kernel memory contents for the global active MPU. (Distributed devices in IRF mode.) (IRF 3 capable.)

cpu cpu-number: Specifies a CPU by its number. Support for this option depends on the device model.

Diagnostics probe commands -- display system internal kernel memory pool

Use display system internal kernel memory pool to display usage information for kernel memory pools.

Syntax

Centralized devices:

display system internal kernel memory pool [ name name-string ]

display system internal kernel memory pool tag [ tag-value ]

display system internal kernel memory pool name name-string tag tag-value

Distributed devices in standalone mode:Centralized IRF devices:

display system internal kernel memory pool [ name name-string ] [ slot slot-number [ cpu cpu-number ] ]

display system internal kernel memory pool tag [ tag-value ] [ slot slot-number [ cpu cpu-number ] ]

display system internal kernel memory pool name name-string tag tag-value [ slot slot-number [ cpu cpu-number ] ]

Distributed devices in IRF mode:

display system internal kernel memory pool [ name name-string ] [ chassis chassis-number slot slot-number [ cpu cpu-number ] ]

display system internal kernel memory pool tag [ tag-value ] [ chassis chassis-num ber slot slot-number [ cpu cpu-number ] ]

display system internal kernel memory pool name name-string tag tag-value [ chassis chassis-number slot slot-number [ cpu cpu-number ] ]

Views

Probe view

Predefined user roles

network-admin

mdc-admin

Parameters

name name-string: Specifies a kernel memory pool by its name. If you specify only a kernel memory pool, this command displays brief usage information for the specified kernel memory pool.

tag tag-value: Specifies a kernel memory pool or kernel memory pools by a tag. If you specify only the tag keyword, this command displays brief usage information for all tagged kernel memory pools. If you specify only the tag tag-value option, this command displays brief usage information for the kernel memory pools with the specified tag.

slot slot-number: Specifies a card by its slot number. If you do not specify a card, this command displays kernel memory pool usage information for 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 kernel memory pool usage information for the master device. (Centralized IRF devices.) (IRF 3 incapable.)

slot slot-number: Specifies an IRF member device by its member ID or specifies a PEX by its virtual slot number. If you do not specify a member device or PEX, this command displays kernel memory pool usage information for the master device. (Centralized IRF devices.) (IRF 3 capable.)

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 kernel memory pool usage information for the global active MPU. (Distributed devices in IRF mode.) (IRF 3 incapable.)

chassis chassis-number slot slot-number: Specifies a card on an IRF member device or specifies a PEX. The chassis-number argument represents the member ID of the IRF member device or the virtual chassis number of the PEX. The slot-number argument represents the slot number of the card or PEX. If you do not specify a card or PEX, this command displays kernel memory pool usage information for the global active MPU. (Distributed devices in IRF mode.) (IRF 3 capable.)

cpu cpu-number: Specifies a CPU by its number. Support for this option depends on the device model.

Usage guidelines

If you specify neither the name option nor the tag option, this command displays brief usage information for all kernel memory pools.

If you specify both the name name-string option and the tag tag-value option, this command displays usage information for the specified kernel memory pool with the specified tag.

Diagnostics probe commands -- follow

Use follow to display stack information for a process or a thread.

Syntax

Centralized devices:

follow { job job-id | process pid } [ thread thread-id ] [ delay seconds ] [ iteration count ]

Distributed devices in standalone mode:Centralized IRF devices:

follow { job job-id | process pid } [ thread thread-id ] [ delay seconds ] [ iteration count ] [ slot slot-number [ cpu cpu-number ] ]

Distributed devices in IRF mode:

follow { job job-id | process pid } [ thread thread-id ] [ delay seconds ] [ iteration count ] [ chassis chassis-number slot slot-number [ cpu cpu-number ] ]

Views

Probe view

Predefined user roles

network-admin

mdc-admin

Parameters

job job-id: Specifies a job by its ID in the range of 1 to 2147483647. A job ID uniquely identifies a process, and it does not change after the process restarts.

process pid: Specifies a process by its ID in the range of 1 to 2147483647. The process ID might change after the process restarts.

thread thread-id: Specifies a thread by its ID in the range of 1 to 2147483647. If you do not specify this option, the command displays stack information for all threads of the specified process.

delay seconds: Specifies the interval between follow operations in seconds, in the range of 0 to 255. The default value is 5.

iteration count: Specifies the number of follow operations, in the range of 0 to 255. The default value is 5.

slot slot-number: Specifies a card by its slot number. If you do not specify a card, this command displays process or thread stack information for 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 process or thread stack information for the master device. (Centralized IRF devices.) (IRF 3 incapable.)

slot slot-number: Specifies an IRF member device by its member ID or specifies a PEX by its virtual slot number. If you do not specify a member device or PEX, this command displays process or thread stack information for the master device. (Centralized IRF devices.) (IRF 3 capable.)

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 process or thread stack information for the global active MPU. (Distributed devices in IRF mode.) (IRF 3 incapable.)

chassis chassis-number slot slot-number: Specifies a card on an IRF member device or specifies a PEX. The chassis-number argument represents the member ID of the IRF member device or the virtual chassis number of the PEX. The slot-number argument represents the slot number of the card or PEX. If you do not specify a card or PEX, this command displays process or thread stack information for the global active MPU. (Distributed devices in IRF mode.) (IRF 3 capable.)

cpu cpu-number: Specifies a CPU by its number. Support for this option depends on the device model.

Usage guidelines

For a user process, this command displays the following information:

· The user stack information (starting from the user stack prompt).

· The kernel stack information (starting from the kernel stack prompt).

For a kernel process, this command displays only the kernel stack information.

Diagnostics probe commands -- memory boundary-check enable

Use memory boundary-check enable to enable memory boundary check.

Use undo memory boundary-check enable to disable memory boundary check.

Syntax

Centralized devices:

memory boundary-check enable job job-id

undo memory boundary-check enable job job-id

Distributed devices in standalone mode:Centralized IRF devices:

memory boundary-check enable job job-id [ slot slot-number [ cpu cpu-number ] ]

undo memory boundary-check enable job job-id [ slot slot-number [ cpu cpu-number ] ]

Distributed devices in IRF mode:

memory boundary-check enable job job-id [ chassis chassis-number slot slot-number [ cpu cpu-number ] ]

undo memory boundary-check enable job job-id [ chassis chassis-number slot slot-number [ cpu cpu-number ] ]

Default

Memory boundary check is disabled.

Views

Probe view

Predefined user roles

network-admin

mdc-admin

Parameters

job job-id: Specifies a job by its ID in the range of 1 to 2147483647. A job ID uniquely identifies a process, and it does not change after the process restarts.

slot slot-number: Specifies a card by its slot number. If you do not specify a card, this command enables memory boundary check for 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 enables memory boundary check for the master device. (Centralized IRF devices.) (IRF 3 incapable.)

slot slot-number: Specifies an IRF member device by its member ID or specifies a PEX by its virtual slot number. If you do not specify a member device or PEX, this command enables memory boundary check for the master device. (Centralized IRF devices.) (IRF 3 capable.)

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 enables memory boundary check for the global active MPU. (Distributed devices in IRF mode.) (IRF 3 incapable.)

chassis chassis-number slot slot-number: Specifies a card on an IRF member device or specifies a PEX. The chassis-number argument represents the member ID of the IRF member device or the virtual chassis number of the PEX. The slot-number argument represents the slot number of the card or PEX. If you do not specify a card or PEX, this command enables memory boundary check for the global active MPU. (Distributed devices in IRF mode.) (IRF 3 capable.)

cpu cpu-number: Specifies a CPU by its number. Support for this option depends on the device model.

Usage guidelines

This command enables the system to perform memory boundary check before each memory deallocation to ensure the correct memory allocation and deallocation.

If a memory overwrite occurs, the system stores the memory overwrite information in a memory file. The system stores all memory overwrite information in the same memory file.

Related commands

memory boundary-check scan

Diagnostics probe commands -- memory boundary-check scan

Use memory boundary-check scan to trigger a memory boundary check and display the check result.

Syntax

Centralized devices:

memory boundary-check scan job job-id

Distributed devices in standalone mode:Centralized IRF devices:

memory boundary-check scan job job-id [ slot slot-number [ cpu cpu-number ] ]

Distributed devices in IRF mode:

memory boundary-check scan job job-id [ chassis chassis-number slot slot-number [ cpu cpu-number ] ]

Views

Probe view

Predefined user roles

network-admin

mdc-admin

Parameters

job job-id: Specifies a job by its job ID in the range of 1 to 2147483647. A job ID uniquely identifies a process, and it does not change after the process restarts.

slot slot-number: Specifies a card by its slot number. If you do not specify a card, this command triggers a memory boundary check and displays the check result for 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 triggers a memory boundary check and displays the check result for the master device. (Centralized IRF devices.) (IRF 3 incapable.)

slot slot-number: Specifies an IRF member device by its member ID or specifies a PEX by its virtual slot number. If you do not specify a member device or PEX, this command triggers a memory boundary check and displays the check result for the master device. (Centralized IRF devices.) (IRF 3 capable.)

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 triggers a memory boundary check and displays the check result for the global active MPU. (Distributed devices in IRF mode.) (IRF 3 incapable.)

chassis chassis-number slot slot-number: Specifies a card on an IRF member device or specifies a PEX. The chassis-number argument represents the member ID of the IRF member device or the virtual chassis number of the PEX. The slot-number argument represents the slot number of the card or PEX. If you do not specify a card or PEX, this command triggers a memory boundary check and displays the check result for the global active MPU. (Distributed devices in IRF mode.) (IRF 3 capable.)

cpu cpu-number: Specifies a CPU by its number. Support for this option depends on the device model.

Usage guidelines

This command takes effect only when memory boundary check has been enabled.

If a memory overwrite is detected, the system displays 128-byte memory contents starting from the 16th byte preceding the detected memory address.

When more than one memory overwrite is detected, the system only records and displays 128-byte memory contents with the lowest memory address detected.

Related commands

memory boundary-check enable

Diagnostics probe commands -- set drvplat boot-info-record

| NOTE: Support for this command depends on the device model.

Use set drvplat boot-info-record to configure the maintenance information collection feature on an interface card.

Syntax

Distributed devices in standalone mode:

set drvplat boot-info-record { enable | disable | force times } slot slot-number

Distributed devices in IRF mode:

set drvplat boot-info-record { enable | disable | force times } chassis chassis-number slot slot-number

Views

Probe view

Default

Maintenance information collection is enabled on an interface card.

Predefined user roles

network-admin

mdc-admin

Parameters

enable: Enables maintenance information collection.

disable: Disables maintenance information collection.

force times: Enables enhanced maintenance information collection. The times argument represents the number of times for enhanced maintenance information collection.

slot slot-number: Specifies an interface card by its slot number. (Distributed devices in standalone mode.)

chassis chassis-number slot slot-number: Specifies an interface 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. (Distributed devices in IRF mode.)

Usage guidelines

After you enable maintenance information collection on an interface card, the system collects maintenance information about the interface card, such as exceptional reboots. The MPU saves the collected information to a file in the info folder of the default file system's root directory. The file name is in the info_<slot-number>_<file-id>.bin format. The slot-number represents the slot number of the interface card. The file-id is in the range of 0 to the maximum number of maintenance information files supported by the device.