GOLD commands -- diagnostic bootup enable test

Use diagnostic bootup enable test to enable the device to execute a boot-up diagnostic test at the next startup.

Use undo diagnostic bootup enable test to disable a boot-up diagnostic test.

Syntax

Centralized devices:

diagnostic bootup enable test test-name [ para parameters ]

undo diagnostic bootup enable test test-name [ para parameters ]

Distributed devices in standalone mode:Centralized IRF devices:

diagnostic bootup enable slot slot-number-list [ cpu cpu-number ] test test-name [ para parameters ]

undo diagnostic bootup enable slot slot-number-list [ cpu cpu-number ] test test-name [ para parameters ]

Distributed devices in IRF mode:

diagnostic bootup enable chassis chassis-number slot slot-number-list [ cpu cpu-number ] test test-name [ para parameters ]

undo diagnostic bootup enable chassis chassis-number slot slot-number-list [ cpu cpu-number ] test test-name [ para parameters ]

Default

The system does not run boot-up diagnostic tests during startup.

Views

User view

Predefined user roles

network-admin

Parameters

slot slot-number-list: Specifies a space-separated list of up to seven slot number items. An item specifies an IRF member device by its member ID or specifies a range of IRF member devices in the form of start-slot-number to end-slot-number. The end slot number must be equal to or greater than the start slot number. (Centralized IRF devices.) (IRF 3 incapable.)

slot slot-number-list: Specifies a space-separated list of up to seven slot number items. An item can specify an IRF member device by its member ID or specify a PEX by its virtual slot number. An item can also specify a range of IRF member devices or PEXs in the form of start-slot-number to end-slot-number. The end slot number must be equal to or greater than the start slot number. (Centralized IRF devices.) (IRF 3 capable.)

chassis chassis-number: Specifies an IRF member device by its member ID. (Distributed devices in IRF mode.) (IRF 3 incapable.)

slot slot-number-list: Specifies a space-separated list of up to seven slot number items. An item specifies a card by its slot number or specifies a range of cards in the form of start-slot-number to end-slot-number. The end slot number must be equal to or greater than the start slot number. (Distributed devices in standalone mode.) (Distributed devices in IRF mode.) (IRF 3 incapable.)

chassis chassis-number: Specifies an IRF member device by its member ID or specifies a PEX by its virtual chassis number. (Distributed devices in IRF mode.) (IRF 3 capable.)

slot slot-number-list: Specifies a space-separated list of up to seven slot number items. An item specifies a card or a PEX by its slot number or specifies a range of cards or PEXs in the form of start-slot-number to end-slot-number. The end slot number must be equal to or greater than the start slot number. (Distributed devices in IRF mode.) (IRF 3 capable.)

cpu cpu-number: Specifies a CPU by its number. This option is available only if multiple CPUs are available on the specified slot.

test test-name: Specifies a test by its name, a case-sensitive character string. You can use the test ? command to verify the value range of the test name.

para parameters: Specifies a diagnostic test execution parameter, a case-insensitive string of 1 to 511 characters. The value, input method, and default of the parameter vary by device model.

Usage guidelines

This command takes effect at the next startup.

Examples

# (Centralized devices.) Enable the device to run test OnlyBootUp at the next startup and specify 123 as the parameter.

[Sysname] diagnostic bootup enable test OnlyBootUp para 123

# (Distributed devices in standalone mode.) (Centralized IRF devices.) Enable the device to run test OnlyBootUp configured on the specified slot at the next startup and specify 123 as the parameter.

[Sysname] diagnostic bootup enable slot 1 test OnlyBootUp para 123

Related commands

display diagnostic bootup

GOLD commands -- diagnostic bootup level

Use diagnostic bootup level to configure whether or not to execute all boot-up diagnostic tests at the next startup.

Use diagnostic bootup level to restore the default.

Syntax

diagnostic bootup level { bypass | complete }

undo diagnostic bootup level

Default

The system does not run boot-up diagnostic tests during startup.

Views

System view

Predefined user roles

network-admin

Parameters

bypass: Does not execute any boot-up diagnostic tests.

complete: Executes all boot-up diagnostic tests.

Usage guidelines

This command takes effect at the next startup.

Examples

# Configure the device to run all boot-up diagnostic tests at the next startup.

<Sysname> system-view

[Sysname] diagnostic bootup level complete

Related commands

display diagnostic bootup level

GOLD commands -- diagnostic event-log size

Use diagnostic event-log size to configure the maximum number of GOLD log entries.

Use undo diagnostic event-log size to restore the default.

Syntax

diagnostic event-log size number

undo diagnostic event-log size

Default

GOLD can save up to 512 log entries.

Views

System view

Predefined user roles

network-admin

Parameters

number: Specifies the maximum number of log entries, in the range of 0 to 1024.

Usage guidelines

If you specify a number smaller than the number of existing log entries, the system automatically deletes the oldest excess entries.

When the number of GOLD log entries exceeds the configured log buffer size, the system automatically deletes the oldest excess entries.

Examples

# Set the maximum number of log entries to 600.

<Sysname> system-view

[Sysname] diagnostic event-log size 600

GOLD commands -- diagnostic monitor enable

Use diagnostic monitor enable to enable monitoring diagnostics.

Use undo diagnostic monitor enable to disable monitoring diagnostics.

Syntax

Centralized devices:

diagnostic monitor enable [ test test-name ]

undo diagnostic monitor enable [ test test-name ]

Distributed devices in standalone mode:Centralized IRF devices:

diagnostic monitor enable slot slot-number-list [ cpu cpu-number ] [ test test-name ]

undo diagnostic monitor enable slot slot-number-list [ cpu cpu-number ] [ test test-name ]

Distributed devices in IRF mode:

diagnostic monitor enable chassis chassis-number slot slot-number-list [ cpu cpu-number ] [ test test-name ]

undo diagnostic monitor enable chassis chassis-number slot slot-number-list [ cpu cpu-number ] [ test test-name ]

Default

The default settings for this command vary by device model.

Views

System view

Predefined user roles

network-admin

Parameters

slot slot-number-list: Specifies a space-separated list of up to seven slot number items. An item specifies an IRF member device by its member ID or specifies a range of IRF member devices in the form of start-slot-number to end-slot-number. The end slot number must be equal to or greater than the start slot number. (Centralized IRF devices.) (IRF 3 incapable.)

slot slot-number-list: Specifies a space-separated list of up to seven slot number items. An item can specify an IRF member device by its member ID or specify a PEX by its virtual slot number. An item can also specify a range of IRF member devices or PEXs in the form of start-slot-number to end-slot-number. The end slot number must be equal to or greater than the start slot number. (Centralized IRF devices.) (IRF 3 capable.)

chassis chassis-number: Specifies an IRF member device by its member ID. (Distributed devices in IRF mode.) (IRF 3 incapable.)

slot slot-number-list: Specifies a space-separated list of up to seven slot number items. An item specifies a card by its slot number or specifies a range of cards in the form of start-slot-number to end-slot-number. The end slot number must be equal to or greater than the start slot number. (Distributed devices in standalone mode.) (Distributed devices in IRF mode.) (IRF 3 incapable.)

chassis chassis-number: Specifies an IRF member device by its member ID or specifies a PEX by its virtual chassis number. (Distributed devices in IRF mode.) (IRF 3 capable.)

slot slot-number-list: Specifies a space-separated list of up to seven slot number items. An item specifies a card or a PEX by its slot number or specifies a range of cards or PEXs in the form of start-slot-number to end-slot-number. The end slot number must be equal to or greater than the start slot number. (Distributed devices in IRF mode.) (IRF 3 capable.)

cpu cpu-number: Specifies a CPU by its number. This option is available only if multiple CPUs are available on the specified slot.

test test-name: Specifies a test by its name, a case-sensitive character string. You can use the test ? command to verify the value range of the test name. If you do not specify this option, the command enables all monitoring diagnostic tests.

Usage guidelines

Monitoring diagnostics enable the system to periodically run diagnostic tests to detect hardware faults and record test results. Monitoring diagnostics execute only non-disruptive tests.

Disruptive diagnostic tests that are being executed affect device operation or even disable certain functions, but non-disruptive diagnostic tests do not.

The system automatically executes enabled monitoring diagnostic tests after the device starts. Use the diagnostic monitor enable command to enable diagnostic tests that are disabled by default.

Examples

# (Centralized devices.) Enable test BoardStatusMonitor.

<Sysname> system-view

[Sysname] diagnostic monitor enable test BoardStatusMonitor

# (Distributed devices in standalone mode.) (Centralized IRF devices.) Enable test BoardStatusMonitor on the specified slot.

<Sysname> system-view

[Sysname] diagnostic monitor enable slot 1 test BoardStatusMonitor

Related commands

diagnostic monitor interval

GOLD commands -- diagnostic monitor interval

Use diagnostic monitor interval to configure an execution interval for monitoring diagnostic tests.

Use undo diagnostic monitor interval to restore the default.

Syntax

Centralized devices:

diagnostic monitor interval [ test test-name ] time interval

undo diagnostic monitor interval [ test test-name ]

Distributed devices in standalone mode:Centralized IRF devices:

diagnostic monitor interval slot slot-number-list [ cpu cpu-number ] [ test test-name ] time interval

undo diagnostic monitor interval slot slot-number-list [ cpu cpu-number ] [ test test-name ]

Distributed devices in IRF mode:

diagnostic monitor interval chassis chassis-number slot slot-number-list [ cpu cpu-number ] [ test test-name ] time interval

undo diagnostic monitor interval chassis chassis-number slot slot-number-list [ cpu cpu-number ] [ test test-name ]

Default

The default settings for this command depends on the device model.

Views

System view

Predefined user roles

network-admin

Parameters

slot slot-number-list: Specifies a space-separated list of up to seven slot number items. An item specifies an IRF member device by its member ID or specifies a range of IRF member devices in the form of start-slot-number to end-slot-number. The end slot number must be equal to or greater than the start slot number. (Centralized IRF devices.) (IRF 3 incapable.)

slot slot-number-list: Specifies a space-separated list of up to seven slot number items. An item can specify an IRF member device by its member ID or specify a PEX by its virtual slot number. An item can also specify a range of IRF member devices or PEXs in the form of start-slot-number to end-slot-number. The end slot number must be equal to or greater than the start slot number. (Centralized IRF devices.) (IRF 3 capable.)

chassis chassis-number: Specifies an IRF member device by its member ID. (Distributed devices in IRF mode.) (IRF 3 incapable.)

slot slot-number-list: Specifies a space-separated list of up to seven slot number items. An item specifies a card by its slot number or specifies a range of cards in the form of start-slot-number to end-slot-number. The end slot number must be equal to or greater than the start slot number. (Distributed devices in standalone mode.) (Distributed devices in IRF mode.) (IRF 3 incapable.)

chassis chassis-number: Specifies an IRF member device by its member ID or specifies a PEX by its virtual chassis number. (Distributed devices in IRF mode.) (IRF 3 capable.)

slot slot-number-list: Specifies a space-separated list of up to seven slot number items. An item specifies a card or a PEX by its slot number or specifies a range of cards or PEXs in the form of start-slot-number to end-slot-number. The end slot number must be equal to or greater than the start slot number. (Distributed devices in IRF mode.) (IRF 3 capable.)

cpu cpu-number: Specifies a CPU by its number. This option is available only if multiple CPUs are available on the specified slot.

test test-name: Specifies a test by its name, a case-sensitive character string. You can use the test ? command to verify the value range of the test name. If you do not specify this option, the command applies to all monitoring diagnostic tests.

interval: Sets an execution interval in the form of hh:mm:ss. The value range for the hh argument is 0 to 23. The value range for the mm and ss arguments is both 0 to 59. If you specify only the hh argument, you can omit the mm and ss segments. If you specify only the hh and mm arguments, you can omit the ss segment. For example, to specify 01:00:00, you can enter 1.

Usage guidelines

Use this command to configure the interval at which the system automatically executes enabled monitoring diagnostic tests.

The configured interval cannot be smaller than the minimum execution interval of the tests. Use the display diagnostic content verbose command to view the minimum execution interval of the tests.

Examples

# (Centralized devices.) Set the execution interval to 1 minute for test BoardStatusMonitor.

<Sysname> system-view

[Sysname] diagnostic monitor interval test BoardStatusMonitor time 00:01:00

# (Distributed devices in standalone mode.) (Centralized IRF devices.) Set the execution interval to 1 minute for test BoardStatusMonitor on the specified slot.

<Sysname> system-view.

[Sysname] diagnostic monitor interval slot 1 test BoardStatusMonitor time 00:01:00

Related commands

diagnostic monitor enable

display diagnostic content

GOLD commands -- diagnostic ondemand failure

Use diagnostic ondemand failure to set the maximum number of failed on-demand diagnostic tests.

Use undo diagnostic ondemand failure to restore the default.

Syntax

diagnostic ondemand failure failure-number

undo diagnostic ondemand failure

Default

The maximum number of failed on-demand diagnostic tests is not specified.

Views

User view

Predefined user roles

network-admin

Parameters

failure-number: Specifies the maximum number of failed tests, in the range of 1 to 999.

Usage guidelines

After you use the diagnostic ondemand start command to enable on-demand diagnostics, you can stop the diagnostic tests by using any of the following commands:

· Use the diagnostic ondemand stop command to immediately stop the tests.

· Use the diagnostic ondemand repeating command to configure the number of executions for the tests. The system stops executing the tests when the threshold is reached.

· Use the diagnostic ondemand failure command to configure the maximum number of failed tests. The system stops a test when the number of failures reaches the configured threshold and the test is not executed as many times as specified.

Use this command to configure the maximum number of failed tests for diagnostic tests to be enabled. This command does not survive a device reboot.

Examples

# Set the maximum number of failed tests to 5 for all on-demand diagnostic tests.

<Sysname> diagnostic ondemand failure 5

Related commands

diagnostic ondemand repeating

diagnostic ondemand start

display diagnostic ondemand configuration

GOLD commands -- diagnostic ondemand repeating

Use diagnostic ondemand repeating to configure the number of executions for on-demand diagnostic tests.

Use undo diagnostic ondemand repeating to restore the default.

Syntax

diagnostic ondemand repeating repeating-number

undo diagnostic ondemand repeating

Default

The default number of executions is 1.

Views

User view

Predefined user roles

network-admin

Parameters

repeating-number: Specifies the number of executions for on-demand diagnostic tests, in the range of 1 to 999.

Usage guidelines

Use this command to configure the number of executions for diagnostic tests to be enabled. This command does not survive a device reboot.

Do not specify a number smaller than the number of failed tests configured by using the diagnostic ondemand failure command.

Examples

# Set the number of executions to 2 for all on-demand diagnostic tests.

<Sysname> diagnostic ondemand repeating 2

Related commands

diagnostic ondemand failure

diagnostic ondemand start

display diagnostic configuration

GOLD commands -- diagnostic ondemand start

Use diagnostic ondemand start to enable on-demand diagnostics.

Syntax

Centralized devices:

diagnostic ondemand start test { test-name | non-disruptive } [ para parameters ]

Distributed devices in standalone mode:Centralized IRF devices:

diagnostic ondemand start slot slot-number-list [ cpu cpu-number ] test { test-name | non-disruptive } [ para parameters ]

Distributed devices in IRF mode:

diagnostic ondemand start chassis chassis-number slot slot-number-list [ cpu cpu-number ] test { test-name | non-disruptive } [ para parameters ]

Default

All on-demand diagnostic tests need to be manually enabled.

Views

User view

Predefined user roles

network-admin

Parameters

slot slot-number-list: Specifies a space-separated list of up to seven slot number items. An item specifies an IRF member device by its member ID or specifies a range of IRF member devices in the form of start-slot-number to end-slot-number. The end slot number must be equal to or greater than the start slot number. (Centralized IRF devices.) (IRF 3 incapable.)

slot slot-number-list: Specifies a space-separated list of up to seven slot number items. An item can specify an IRF member device by its member ID or specify a PEX by its virtual slot number. An item can also specify a range of IRF member devices or PEXs in the form of start-slot-number to end-slot-number. The end slot number must be equal to or greater than the start slot number. (Centralized IRF devices.) (IRF 3 capable.)

chassis chassis-number: Specifies an IRF member device by its member ID. (Distributed devices in IRF mode.) (IRF 3 incapable.)

slot slot-number-list: Specifies a space-separated list of up to seven slot number items. An item specifies a card by its slot number or specifies a range of cards in the form of start-slot-number to end-slot-number. The end slot number must be equal to or greater than the start slot number. (Distributed devices in standalone mode.) (Distributed devices in IRF mode.) (IRF 3 incapable.)

chassis chassis-number: Specifies an IRF member device by its member ID or specifies a PEX by its virtual chassis number. (Distributed devices in IRF mode.) (IRF 3 capable.)

slot slot-number-list: Specifies a space-separated list of up to seven slot number items. An item specifies a card or a PEX by its slot number or specifies a range of cards or PEXs in the form of start-slot-number to end-slot-number. The end slot number must be equal to or greater than the start slot number. (Distributed devices in IRF mode.) (IRF 3 capable.)

cpu cpu-number: Specifies a CPU by its number. This option is available only if multiple CPUs are available on the specified slot.

non-disruptive: Executes all non-disruptive diagnostic tests.

test-name: Specifies a test by its name, a case-sensitive character string. You can use the test ? command to verify the value range of the test name.

para parameters: Specifies an extended parameter. The current software version does not support this option.

Usage guidelines

On-demand diagnostics allow you to manually execute certain diagnostic tests. These tests are known as on-demand diagnostic tests.

You can configure the number of executions and the maximum number of failed tests for on-demand diagnostic tests at the CLI. When either threshold is reached, the system immediately stops executing the tests.

Examples

# (Centralized devices.) Start disruptive diagnostic test PRBS.

<Sysname> diagnostic ondemand start test PRBS

Running test PRBS may disrupt system operation. Continue? [Y/N]:y

# (Centralized devices.) Start all non-disruptive diagnostic tests.

<Sysname> diagnostic ondemand start test non-disruptive

# (Distributed devices in standalone mode.) (Centralized IRF devices.) Start disruptive diagnostic test PRBS on the specified slot.

<Sysname> diagnostic ondemand start slot 1 test PRBS

Running test PRBS on slot 1 may disrupt system operation. Continue? [Y/N]:y

# (Distributed devices in standalone mode.) (Centralized IRF devices.) Start all non-disruptive diagnostic tests on the specified slot.

<Sysname> diagnostic ondemand start slot 1 test non-disruptive

Related commands

diagnostic ondemand failure

diagnostic ondemand repeating

GOLD commands -- diagnostic ondemand stop

Use diagnostic ondemand stop to stop on-demand diagnostic tests.

Syntax

Centralized devices:

diagnostic ondemand stop test { test-name | non-disruptive }

Distributed devices in standalone mode:Centralized IRF devices:

diagnostic ondemand stop slot slot-number-list [ cpu cpu-number ] test { test-name | non-disruptive }

Distributed devices in IRF mode:

diagnostic ondemand stop chassis chassis-number slot slot-number-list [ cpu cpu-number ] test { test-name | non-disruptive }

Views

User view

Predefined user roles

network-admin

Parameters

slot slot-number-list: Specifies a space-separated list of up to seven slot number items. An item specifies an IRF member device by its member ID or specifies a range of IRF member devices in the form of start-slot-number to end-slot-number. The end slot number must be equal to or greater than the start slot number. (Centralized IRF devices.) (IRF 3 incapable.)

slot slot-number-list: Specifies a space-separated list of up to seven slot number items. An item can specify an IRF member device by its member ID or specify a PEX by its virtual slot number. An item can also specify a range of IRF member devices or PEXs in the form of start-slot-number to end-slot-number. The end slot number must be equal to or greater than the start slot number. (Centralized IRF devices.) (IRF 3 capable.)

chassis chassis-number: Specifies an IRF member device by its member ID. (Distributed devices in IRF mode.) (IRF 3 incapable.)

slot slot-number-list: Specifies a space-separated list of up to seven slot number items. An item specifies a card by its slot number or specifies a range of cards in the form of start-slot-number to end-slot-number. The end slot number must be equal to or greater than the start slot number. (Distributed devices in standalone mode.) (Distributed devices in IRF mode.) (IRF 3 incapable.)

chassis chassis-number: Specifies an IRF member device by its member ID or specifies a PEX by its virtual chassis number. (Distributed devices in IRF mode.) (IRF 3 capable.)

slot slot-number-list: Specifies a space-separated list of up to seven slot number items. An item specifies a card or a PEX by its slot number or specifies a range of cards or PEXs in the form of start-slot-number to end-slot-number. The end slot number must be equal to or greater than the start slot number. (Distributed devices in IRF mode.) (IRF 3 capable.)

cpu cpu-number: Specifies a CPU by its number. This option is available only if multiple CPUs are available on the specified slot.

non-disruptive: Stops all non-disruptive diagnostic tests.

test-name: Specifies a test by its name, a case-sensitive character string. You can use the test ? command to verify the value range of the test name.

Usage guidelines

You can configure the number of executions and the maximum number of failed tests for on-demand diagnostic tests at the CLI. When either threshold is reached, the system immediately stops executing the tests. You can also use this command to manually stop on-demand diagnostic tests.

Examples

# (Centralized devices.) Stop all non-disruptive diagnostic tests.

<Sysname> diagnostic ondemand stop test non-disruptive

# (Distributed devices in standalone mode.) (Centralized IRF devices.) Stop all non-disruptive diagnostic tests on the specified slot.

<Sysname> diagnostic ondemand stop slot 1 test non-disruptive

Related commands

diagnostic ondemand failure

diagnostic ondemand repeating

GOLD commands -- diagnostic simulation

Use diagnostic simulation to simulate diagnostic tests.

Use undo diagnostic simulation to restore the default.

Syntax

Centralized devices:

diagnostic simulation test test-name { failure | random-failure | success }

undo diagnostic simulation test test-name

Distributed devices in standalone mode:Centralized IRF devices:

diagnostic simulation slot slot-number-list [ cpu cpu-number ] test test-name { failure | random-failure | success }

undo diagnostic simulation slot slot-number-list [ cpu cpu-number ] test test-name

Distributed devices in IRF mode:

diagnostic simulation chassis chassis-number slot slot-number-list [ cpu cpu-number ] test test-name { failure | random-failure | success }

undo diagnostic simulation chassis chassis-number slot slot-number-list [ cpu cpu-number ] test test-name

Default

All diagnostic tests are executed instead of simulated.

Views

User view

Predefined user roles

network-admin

Parameters

slot slot-number-list: Specifies a space-separated list of up to seven slot number items. An item specifies an IRF member device by its member ID or specifies a range of IRF member devices in the form of start-slot-number to end-slot-number. The end slot number must be equal to or greater than the start slot number. (Centralized IRF devices.) (IRF 3 incapable.)

slot slot-number-list: Specifies a space-separated list of up to seven slot number items. An item can specify an IRF member device by its member ID or specify a PEX by its virtual slot number. An item can also specify a range of IRF member devices or PEXs in the form of start-slot-number to end-slot-number. The end slot number must be equal to or greater than the start slot number. (Centralized IRF devices.) (IRF 3 capable.)

chassis chassis-number: Specifies an IRF member device by its member ID. (Distributed devices in IRF mode.) (IRF 3 incapable.)

slot slot-number-list: Specifies a space-separated list of up to seven slot number items. An item specifies a card by its slot number or specifies a range of cards in the form of start-slot-number to end-slot-number. The end slot number must be equal to or greater than the start slot number. (Distributed devices in standalone mode.) (Distributed devices in IRF mode.) (IRF 3 incapable.)

chassis chassis-number: Specifies an IRF member device by its member ID or specifies a PEX by its virtual chassis number. (Distributed devices in IRF mode.) (IRF 3 capable.)

slot slot-number-list: Specifies a space-separated list of up to seven slot number items. An item specifies a card or a PEX by its slot number or specifies a range of cards or PEXs in the form of start-slot-number to end-slot-number. The end slot number must be equal to or greater than the start slot number. (Distributed devices in IRF mode.) (IRF 3 capable.)

cpu cpu-number: Specifies a CPU by its number. This option is available only if multiple CPUs are available on the specified slot.

test-name: Specifies a test by its name, a case-sensitive character string. You can use the test ? command to verify the value range of the test name.

failure: Configures the system to generate failure results.

random-failure: Configures the system to randomly generate results.

success: Configures the system to generate success results.

Usage guidelines

Test simulation is used to verify GOLD frame functionality. After you execute this command, the system simulates the specified test if the execution requirements for the test are met. The test is not actually executed and does not trigger hardware correcting actions.

This command only applies to monitoring diagnostic tests and on-demand diagnostic tests.

Examples

# (Centralized devices.) Simulate test BoardStatusMonitor as failed.

<Sysname> diagnostic simulation test BoardStatusMonitor failure

# (Distributed devices in standalone mode.) (Centralized IRF devices.) Simulate test BoardStatusMonitor as failed on the specified slot.

<Sysname> diagnostic simulation slot 1 test BoardStatusMonitor failure

Related commands

display diagnostic simulation

GOLD commands -- diagnostic start test

Use diagnostic start test to start script-bound diagnostics.

Syntax

diagnostic start test test-name

Views

User view

Predefined user roles

network-admin

Parameters

test-name: Specifies a script-bound test by its name, a case-insensitive string of 1 to 31 characters. You can use the diagnostic start test ? command to verify available test names.

Usage guidelines

The device is configured with tests that are bound with scripts before the device is shipped. The system supports TCL scripts, such as scripts for verifying chip and port basic information after the device is powered on. After you use this command to start a test, the system automatically runs the scripts and displays the results at the CLI.

Examples

# Start script-bound test EquipSelfCheck.

<Sysname> diagnostic start test EquipSelfCheck

This command requires null configuration and reboot device afterwards. Continue?

[Y/N]:y

=================================================

===============display clock===================

10:55:19 UTC Fri 06/27/2015

===============system-view=====================

System View: return to User View with Ctrl+Z.

===============undo stp enable=====================

===============probe-view=====================

===========undo monitor inner-channel=================

GOLD commands -- display diagnostic bootup

Use display diagnostic bootup to display boot-up diagnostic test information.

Syntax

Centralized devices:

display diagnostic bootup [ test test-name ]

Distributed devices in standalone mode:Centralized IRF devices:

display diagnostic bootup [ slot slot-number [ cpu cpu-number ] [ test test-name ] ]

Distributed devices in IRF mode:

display diagnostic bootup [ chassis chassis-number [ slot slot-number [ cpu cpu-number ] [ test test-name ] ] ]

Views

Any view

Predefined user roles

network-admin

network-operator

Parameters

slot slot-number: Specifies a card by its slot number. If you do not specify this option, the command applies to all cards. (Distributed devices in standalone mode.)

slot slot-number: Specifies an IRF member device by its member ID. If you do not specify this option, the command applies to all member devices. (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. On an IRF fabric, the command applies to all member devices if you do not specify a member device. On an IRF 3 system, the command applies to all IRF member devices and PEXs if you do not specify an IRF member device or PEX. (Centralized IRF devices.) (IRF 3 capable.)

chassis chassis-number: Specifies an IRF member device by its member ID. If you do not specify a member device, the command applies to all member devices. (Distributed devices in IRF mode.) (IRF 3 incapable.)

slot slot-number: Specifies a card by its slot number. If you do not specify a card, the command applies to all cards. (Distributed devices in IRF mode.) (IRF 3 incapable.)

chassis chassis-number: Specifies an IRF member device by its member ID or specifies a PEX by its virtual chassis number. On an IRF fabric, the command applies to all member devices if you do not specify a member device. On an IRF 3 system, the command applies to all IRF member devices and PEXs if you do not specify a member device or PEX. (Distributed devices in IRF mode.) (IRF 3 capable.)

slot slot-number: Specifies a card or a PEX by its slot number. On an IRF fabric, the command applies to all cards if you do not specify a card. On an IRF 3 system, the command applies to all cards and PEXs if you do not specify a card or PEX. (Distributed devices in IRF mode.) (IRF 3 capable.)

cpu cpu-number: Specifies a CPU by its number. This option is available only if multiple CPUs are available on the specified slot.

test test-name: Specifies a test by its name, a case-sensitive character string. You can use the test ? command to verify the value range of the test name. If you do not specify this option, the command displays information for all tests.

Examples

# (Centralized devices.) Display information about test OnlyBootUp.

<Sysname> display diagnostic bootup test OnlyBootUp

Test name : OnlyBootUp

ExtPara : 123

State : Enabled

# (Distributed devices in standalone mode.) (Centralized IRF devices.) Display information about test OnlyBootUp on the specified slot.

<Sysname> display diagnostic bootup slot 1

slot 0:

Test name : OnlyBootUp

ExtPara : 123

State : Enabled

Related commands

diagnostic bootup enable test

GOLD commands -- display diagnostic bootup level

Use display diagnostic bootup level to display the boot-up diagnostics level for the most recent boot-up.

Syntax

display diagnostic bootup level

Views

Any view

Predefined user roles

network-admin

network-operator

Examples

# Display the boot-up diagnostics level for the most recent boot-up.

<Sysname> display diagnostic bootup level

Current bootup diagnostic level: complete

Related commands

diagnostic bootup level

GOLD commands -- display diagnostic content

Use display diagnostic content to display information about diagnostic tests.

Syntax

Centralized devices:

display diagnostic content [ verbose ]

Distributed devices in standalone mode:Centralized IRF devices:

display diagnostic content [ slot slot-number [ cpu cpu-number ] ] [ verbose ]

Distributed devices in IRF mode:

display diagnostic content [ chassis chassis-number [ slot slot-number [ cpu cpu-number ] ] ] [ verbose ]

Views

Any view

Predefined user roles

network-admin

network-operator

Parameters

slot slot-number: Specifies a card by its slot number. If you do not specify this option, the command applies to all cards. (Distributed devices in standalone mode.)

slot slot-number: Specifies an IRF member device by its member ID. If you do not specify this option, the command applies to all member devices. (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. On an IRF fabric, the command applies to all member devices if you do not specify a member device. On an IRF 3 system, the command applies to all IRF member devices and PEXs if you do not specify an IRF member device or PEX. (Centralized IRF devices.) (IRF 3 capable.)

chassis chassis-number: Specifies an IRF member device by its member ID. If you do not specify a member device, the command applies to all member devices. (Distributed devices in IRF mode.) (IRF 3 incapable.)

slot slot-number: Specifies a card by its slot number. If you do not specify a card, the command applies to all cards. (Distributed devices in IRF mode.) (IRF 3 incapable.)

chassis chassis-number: Specifies an IRF member device by its member ID or specifies a PEX by its virtual chassis number. On an IRF fabric, the command applies to all member devices if you do not specify a member device. On an IRF 3 system, the command applies to all IRF member devices and PEXs if you do not specify a member device or PEX. (Distributed devices in IRF mode.) (IRF 3 capable.)

slot slot-number: Specifies a card or a PEX by its slot number. On an IRF fabric, the command applies to all cards if you do not specify a card. On an IRF 3 system, the command applies to all cards and PEXs if you do not specify a card or PEX. (Distributed devices in IRF mode.) (IRF 3 capable.)

cpu cpu-number: Specifies a CPU by its number. This option is available only if multiple CPUs are available on the specified slot.

verbose: Displays detailed information about diagnostic tests. If you do not specify this keyword, the command displays brief information about the diagnostic tests.

Examples

# (Centralized devices.) Display brief information about all diagnostic tests.

<Sysname> display diagnostic content

Diagnostic test suite attributes:

#B/*: Bootup test/NA

#O/*: Ondemand test/NA

#M/*: Monitoring test/NA

#D/*: Disruptive test/Non-disruptive test

#P/*: Per port test/NA

#A/I/*: Monitoring test is active/Monitoring test is inactive/NA

Name Attributes Interval

IPCMonitor **M*PA 00:01:00

BoardStatusMonitor **M*PA 01:00:00

TaskMonitor **M*PA 00:00:10

PortMonitor **M*PA 00:00:10

ComponentMonitor **M*PA 00:00:30

# (Centralized devices.) Display detailed information about all diagnostic tests.

<Sysname> display diagnostic content verbose

Diagnostic test suite attributes:

#B/*: Bootup test/NA

#O/*: Ondemand test/NA

#M/*: Monitoring test/NA

#D/*: Disruptive test/Non-disruptive test

#P/*: Per port test/NA

#A/I/*: Monitoring test is active/Monitoring test is inactive/NA

Test name : IPCMonitor

Test attributes : **M*PA

Test interval : 00:01:00

Min interval : 00:01:00

Correct-action : -NA-

Description : A Real-time test, enabled by default that checks ipc between

switch units.

Exec : -NA-

Test name : BoardStatusMonitor

Test attributes : **M*PA

Test interval : 01:00:00

Min interval : 00:00:06

Correct-action : -NA-

Description : A Real-time test, enabled by default that checks board status

between local master and other local boards.

Exec : -NA-

Test name : TaskMonitor

Test attributes : **M*PA

Test interval : 00:00:10

Min interval : 00:00:10

Correct-action : -NA-

Description : A Real-time test, enabled by default that checks the important

tasks.

Exec : -NA-

Test name : PortMonitor

Test attributes : **M*PA

Test interval : 00:00:10

Min interval : 00:00:10

Correct-action : -NA-

Description : A Real-time test, enabled by default that checks port status

for each inner port.

Exec : -NA-

Test name : ComponentMonitor

Test attributes : **M*PA

Test interval : 00:00:30

Min interval : 00:00:10

Correct-action : -NA-

Description : A Real-time test, enabled by default that checks component status.

Exec : -NA-

# (Distributed devices in standalone mode.) (Centralized IRF devices.) Display brief information about all diagnostic tests on the specified slot.

<Sysname> display diagnostic content slot 1

Diagnostic test suite attributes:

#B/*: Bootup test/NA

#O/*: Ondemand test/NA

#M/*: Monitoring test/NA

#D/*: Disruptive test/Non-disruptive test

#P/*: Per port test/NA

#A/I/*: Monitoring test is active/Monitoring test is inactive/NA

Slot 1 cpu 0:

Name Attributes Interval

IPCMonitor **M*PA 00:01:00

BoardStatusMonitor **M*PA 01:00:00

TaskMonitor **M*PA 00:00:10

PortMonitor **M*PA 00:00:10

ComponentMonitor **M*PA 00:00:30

# (Distributed devices in standalone mode.) (Centralized IRF devices.) Display detailed information about all diagnostic tests on the specified slot.

<Sysname> display diagnostic content slot 1 verbose

Diagnostic test suite attributes:

#B/*: Bootup test/NA

#O/*: Ondemand test/NA

#M/*: Monitoring test/NA

#D/*: Disruptive test/Non-disruptive test

#P/*: Per port test/NA

#A/I/*: Monitoring test is active/Monitoring test is inactive/NA

Slot 1 cpu 0:

Test name : IPCMonitor

Test attributes : **M*PA

Test interval : 00:01:00

Min interval : 00:01:00

Correct-action : -NA-

Description : A Real-time test, enabled by default that checks ipc between

switch units.

Exec : -NA-

Test name : BoardStatusMonitor

Test attributes : **M*PA

Test interval : 01:00:00

Min interval : 00:00:06

Correct-action : -NA-

Description : A Real-time test, enabled by default that checks board status

between local master and other local boards.

Exec : -NA-

Test name : TaskMonitor

Test attributes : **M*PA

Test interval : 00:00:10

Min interval : 00:00:10

Correct-action : -NA-

Description : A Real-time test, enabled by default that checks the important

tasks.

Exec : -NA-

Test name : PortMonitor

Test attributes : **M*PA

Test interval : 00:00:10

Min interval : 00:00:10

Correct-action : -NA-

Description : A Real-time test, enabled by default that checks port status

for each inner port.

Exec : -NA-

Test name : ComponentMonitor

Test attributes : **M*PA

Test interval : 00:00:30

Min interval : 00:00:10

Correct-action : -NA-

Description : A Real-time test, enabled by default that checks component status.

Exec : -NA-

Table 1 Command output

Field | Description
B/* | Boot-up/Not boot-up.
O/* | On-demand/Not on-demand.
M/* | Monitoring/Not monitoring.
D/* | Disruptive/Non-disruptive.
P/* | Port-related/Not port-related.
A/I/* | Active and monitoring/Inactive and monitoring/Not monitoring.
Test name | Name of the diagnostic test.
Test attributes | Attributes of the diagnostic test. The characters from left to right indicate whether or not the test is boot-up, on-demand, monitoring, disruptive, port-related, or active. The asterisks (*) indicate that the test does not have the corresponding attributes.
Test interval | Execution interval for the test. If the execution interval for the test is not set, –NA–is displayed.
Min interval | Minimum execution interval for the test. If the test does not have a minimum execution interval, –NA–is displayed.
Correct-action | Correcting action triggered by failure of the test.
Description | Description for the test.

‌

GOLD commands -- display diagnostic event-log

Use display diagnostic event-log to display GOLD log entries.

Syntax

display diagnostic event-log [ error | info ]

Views

Any view

Predefined user roles

network-admin

network-operator

Parameters

error: Displays all error log entries.

info: Displays all log entries except error log entries.

Usage guidelines

If you do not specify the error and info keywords, the command displays all GOLD log entries.

The system records information about test execution in the form of logs. A log entry contains test name, execution time, test result, and failure cause. Log entries are generated for every execution. To reduce the burden of the information center, GOLD logs are not sent to the information center.

(Centralized devices.) GOLD logs are cleared when the device restarts.

(Distributed devices in standalone mode.) GOLD logs are cleared when the device restarts or when an active/standby MPU switchover occurs.

(Centralized IRF devices.) GOLD logs are cleared when the device restarts or when a master/subordinate device switchover occurs.

(Distributed devices in IRF mode.) GOLD logs are cleared when the device restarts or when a global active/standby MPU switchover occurs.

Examples

# (Centralized devices.) Display all GOLD log entries.

<Sysname> display diagnostic event-log

Event: E_INFO, Wed Jan 7 11:39:53:314 2014, TestName->IPCMonitor, Event_INFO: Result->Success.

# (Distributed devices in standalone mode.) (Centralized IRF devices.) Display all GOLD log entries.

<Sysname> display diagnostic event-log

Event: E_INFO, Wed Jan 7 11:39:53:314 2014, -Slot=1-Cpu=0 TestName->IPCMonitor, Event_INFO: Result->Success.

GOLD commands -- display diagnostic ondemand configuration

Use display diagnostic ondemand configuration to display configurations of on-demand diagnostic tests.

Syntax

display diagnostic ondemand configuration

Views

Any view

Predefined user roles

network-admin

network-operator

Examples

# Display the number of executions and the number of failed tests configured for on-demand diagnostic tests.

<Sysname> display diagnostic ondemand configuration

Maximum test-repeating times: 4

Maximum test-failure times: 1

Related commands

diagnostic ondemand failure

diagnostic ondemand repeating

GOLD commands -- display diagnostic result

Use display diagnostic result to display test results.

Syntax

Centralized devices:

display diagnostic result [ test test-name ] [ verbose ]

Distributed devices in standalone mode:Centralized IRF devices:

display diagnostic result [ slot slot-number [ cpu cpu-number ] [ test test-name ] ] [ verbose ]

Distributed devices in IRF mode:

display diagnostic result [ chassis chassis-number [ slot slot-number [ cpu cpu-number ] [ test test-name ] ] ] [ verbose ]

Views

Any view

Predefined user roles

network-admin

network-operator

Parameters

slot slot-number: Specifies a card by its slot number. If you do not specify this option, the command applies to all cards. (Distributed devices in standalone mode.)

slot slot-number: Specifies an IRF member device by its member ID. If you do not specify this option, the command applies to all member devices. (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. On an IRF fabric, the command applies to all member devices if you do not specify a member device. On an IRF 3 system, the command applies to all IRF member devices and PEXs if you do not specify an IRF member device or PEX. (Centralized IRF devices.) (IRF 3 capable.)

chassis chassis-number: Specifies an IRF member device by its member ID. If you do not specify a member device, the command applies to all member devices. (Distributed devices in IRF mode.) (IRF 3 incapable.)

slot slot-number: Specifies a card by its slot number. If you do not specify a card, the command applies to all cards. (Distributed devices in IRF mode.) (IRF 3 incapable.)

chassis chassis-number: Specifies an IRF member device by its member ID or specifies a PEX by its virtual chassis number. On an IRF fabric, the command applies to all member devices if you do not specify a member device. On an IRF 3 system, the command applies to all IRF member devices and PEXs if you do not specify a member device or PEX. (Distributed devices in IRF mode.) (IRF 3 capable.)

slot slot-number: Specifies a card or a PEX by its slot number. On an IRF fabric, the command applies to all cards if you do not specify a card. On an IRF 3 system, the command applies to all cards and PEXs if you do not specify a card or PEX. (Distributed devices in IRF mode.) (IRF 3 capable.)

cpu cpu-number: Specifies a CPU by its number. This option is available only if multiple CPUs are available on the specified slot.

test test-name: Specifies a test by its name, a case-sensitive character string. You can use the test ? command to verify the value range of the test name. If you do not specify this option, the command applies to all diagnostic tests.

verbose: Displays detailed test results for diagnostic tests that are enabled or executed. (Statistics are not included.) If you do not specify this parameter, the command displays brief test results for the diagnostic tests.

Examples

# (Centralized devices.) Display brief test results for all diagnostic tests.

<Sysname> display diagnostic result

Name Run count Failure count Last result

IPCMonitor 51 0 Success

BoardStatusMonitor 386 0 Success

TaskMonitor 310 0 Success

PortMonitor 310 0 Success

ComponentMonitor 103 0 Success

# (Centralized devices.) Display detailed test results for all diagnostic tests.

<Sysname> display diagnostic result verbose

Test name : IPCMonitor

Total run count : 52

Total failure count : 0

Consecutive failure count: 0

Last execution time : Fri Nov 21 23:13:25 2014

First failure time : -NA-

Last failure time : -NA-

Last pass time : Fri Nov 21 23:13:25 2014

Last execution result : Success

Last failure reason : -NA-

Next execution time : Fri Nov 21 23:14:25 2014

ipc link status : Normal

Test name : BoardStatusMonitor

Total run count : 386

Total failure count : 0

Consecutive failure count: 0

Last execution time : Fri Nov 21 23:00:01 2014

First failure time : -NA-

Last failure time : -NA-

Last pass time : Fri Nov 21 23:00:01 2014

Last execution result : Success

Last failure reason : -NA-

Next execution time : Sat Nov 22 00:00:07 2014

Slot check status : Normal

Test name : TaskMonitor

Total run count : 313

Total failure count : 0

Consecutive failure count: 0

Last execution time : Fri Nov 21 23:13:35 2014

First failure time : -NA-

Last failure time : -NA-

Last pass time : Fri Nov 21 23:13:35 2014

Last execution result : Success

Last failure reason : -NA-

Next execution time : Fri Nov 21 23:13:45 2014

Task check status : Normal

Test name : PortMonitor

Total run count : 313

Total failure count : 0

Consecutive failure count: 0

Last execution time : Fri Nov 21 23:13:35 2014

First failure time : -NA-

Last failure time : -NA-

Last pass time : Fri Nov 21 23:13:35 2014

Last execution result : Success

Last failure reason : -NA-

Next execution time : Fri Nov 21 23:13:45 2014

test result: pass

Test name : ComponentMonitor

Total run count : 104

Total failure count : 0

Consecutive failure count: 0

Last execution time : Fri Nov 21 23:13:25 2014

First failure time : -NA-

Last failure time : -NA-

Last pass time : Fri Nov 21 23:13:25 2014

Last execution result : Success

Last failure reason : -NA-

Next execution time : Fri Nov 21 23:13:55 2014

test result: pass

# (Distributed devices in standalone mode.) (Centralized IRF devices.) Display brief test results for all diagnostic tests on the specified slot.

<Sysname> display diagnostic result slot 1

Slot 1 cpu 0:

Name Run count Failure count Last result

IPCMonitor 51 0 Success

BoardStatusMonitor 386 0 Success

TaskMonitor 310 0 Success

PortMonitor 310 0 Success

ComponentMonitor 103 0 Success

# (Distributed devices in standalone mode.) (Centralized IRF devices.) Display detailed test results for all diagnostic tests.

<Sysname> display diagnostic result verbose

Slot 1 cpu 0:

Test name : IPCMonitor

Total run count : 52

Total failure count : 0

Consecutive failure count: 0

Last execution time : Fri Nov 21 23:13:25 2014

First failure time : -NA-

Last failure time : -NA-

Last pass time : Fri Nov 21 23:13:25 2014

Last execution result : Success

Last failure reason : -NA-

Next execution time : Fri Nov 21 23:14:25 2014

ipc link status : Normal

Test name : BoardStatusMonitor

Total run count : 386

Total failure count : 0

Consecutive failure count: 0

Last execution time : Fri Nov 21 23:00:01 2014

First failure time : -NA-

Last failure time : -NA-

Last pass time : Fri Nov 21 23:00:01 2014

Last execution result : Success

Last failure reason : -NA-

Next execution time : Sat Nov 22 00:00:07 2014

Slot check status : Normal

Test name : TaskMonitor

Total run count : 313

Total failure count : 0

Consecutive failure count: 0

Last execution time : Fri Nov 21 23:13:35 2014

First failure time : -NA-

Last failure time : -NA-

Last pass time : Fri Nov 21 23:13:35 2014

Last execution result : Success

Last failure reason : -NA-

Next execution time : Fri Nov 21 23:13:45 2014

Task check status : Normal

Test name : PortMonitor

Total run count : 313

Total failure count : 0

Consecutive failure count: 0

Last execution time : Fri Nov 21 23:13:35 2014

First failure time : -NA-

Last failure time : -NA-

Last pass time : Fri Nov 21 23:13:35 2014

Last execution result : Success

Last failure reason : -NA-

Next execution time : Fri Nov 21 23:13:45 2014

test result: pass

Test name : ComponentMonitor

Total run count : 104

Total failure count : 0

Consecutive failure count: 0

Last execution time : Fri Nov 21 23:13:25 2014

First failure time : -NA-

Last failure time : -NA-

Last pass time : Fri Nov 21 23:13:25 2014

Last execution result : Success

Last failure reason : -NA-

Next execution time : Fri Nov 21 23:13:55 2014

test result: pass

Table 2 Command output

Field | Description
Test name | Name of the test.
Total run count | Total number of executions.
Total failure count | Total number of failed tests.
Consecutive failure count | Number of consecutive failed tests.
Last execution time | Most recent execution time.
First failure time | First failed test time. If no failure occurs, –NA– is displayed.
Last failure time | Most recent failed test time. If no failure occurs, –NA– is displayed.
Last pass time | Most recent success test time. If no success occurs, –NA– is displayed.
Last execution result | Most recent test result.
Last failure reason | Cause for the most recent failed test. If the failed test is simulated, Simulated Test is displayed. If no failure occurs, –NA– is displayed.
Next execution time | Time for the next execution. If the test is a monitoring test, its next execution time is the most recent execution time plus the execution interval. If the test is an on-demand or boot-up test, –NA– is displayed.

‌

GOLD commands -- display diagnostic result statistics

Use display diagnostic result statistics to display statistics for packet-related diagnostic tests.

Syntax

Centralized devices:

display diagnostic result [ test test-name ] statistics

Distributed devices in standalone mode:Centralized IRF devices:

display diagnostic result [ slot slot-number [ cpu cpu-number ] [ test test-name ] ] statistics

Distributed devices in IRF mode:

display diagnostic result [ chassis chassis-number [ slot slot-number [ cpu cpu-number ] [ test test-name ] ] ] statistics

Views

Any view

Predefined user roles

network-admin

network-operator

Parameters

slot slot-number: Specifies a card by its slot number. If you do not specify this option, the command applies to all cards. (Distributed devices in standalone mode.)

slot slot-number: Specifies an IRF member device by its member ID. If you do not specify this option, the command applies to all IRF member devices. (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. On an IRF fabric, the command applies to all member devices if you do not specify a member device. On an IRF 3 system, the command applies to all IRF member devices and PEXs if you do not specify an IRF member device or PEX. (Centralized IRF devices.) (IRF 3 capable.)

chassis chassis-number: Specifies an IRF member device by its member ID. If you do not specify a member device, the command applies to all member devices. (Distributed devices in IRF mode.) (IRF 3 incapable.)

slot slot-number: Specifies a card by its slot number. If you do not specify a card, the command applies to all cards. (Distributed devices in IRF mode.) (IRF 3 incapable.)

chassis chassis-number: Specifies an IRF member device by its member ID or specifies a PEX by its virtual chassis number. On an IRF fabric, the command applies to all member devices if you do not specify a member device. On an IRF 3 system, the command applies to all IRF member devices and PEXs if you do not specify a member device or PEX. (Distributed devices in IRF mode.) (IRF 3 capable.)

slot slot-number: Specifies a card or a PEX by its slot number. On an IRF fabric, the command applies to all cards if you do not specify a card. On an IRF 3 system, the command applies to all cards and PEXs if you do not specify a card or PEX. (Distributed devices in IRF mode.) (IRF 3 capable.)

cpu cpu-number: Specifies a CPU by its number. This option is available only if multiple CPUs are available on the specified slot.

test test-name: Specifies a test by its name, a case-sensitive character string. You can use the test ? command to verify the value range of the test name. If you do not specify this option, the command applies to all packet-related diagnostic tests.

Examples

# (Centralized devices.) Display statistics for test PortMonitor.

<Sysname> display diagnostic result test PortMonitor statistics

Test name: PortMonitor

Port Packets sent Packets received Packets lost

1 0 0 0

2 0 0 0

3 0 0 0

4 4 4 0

5 4 4 0

6 4 4 0

7 4 4 0

8 0 0 0

# (Distributed devices in standalone mode.) (Centralized IRF devices.) Display statistics for test PortMonitor on the specified slot.

<Sysname> display diagnostic result slot 1 test PortMonitor statistics

Slot 1 cpu 0:

Test name: PortMonitor

Port Packets sent Packets received Packets lost

1 0 0 0

2 0 0 0

3 0 0 0

4 4 4 0

5 4 4 0

6 4 4 0

7 4 4 0

8 0 0 0

Table 3 Command output

Field | Description
Test name | Name of the test.
Port | Port number.
Packets sent | Number of packets that the device sends.
Packets received | Number of packets that the device receives.
Packets lost | Number of lost packets.

‌

GOLD commands -- display diagnostic simulation

Use display diagnostic simulation to display configurations for simulated diagnostic tests.

Syntax

Centralized devices:

display diagnostic simulation

Distributed devices in standalone mode:Centralized IRF devices:

display diagnostic simulation [ slot slot-number [ cpu cpu-number ] ]

Distributed devices in IRF mode:

display diagnostic simulation [ chassis chassis-number [ slot slot-number [ cpu cpu-number ] ] ]

Views

Any view

Predefined user roles

network-admin

network-operator

Parameters

slot slot-number: Specifies a card by its slot number. If you do not specify this option, the command applies to all cards. (Distributed devices in standalone mode.)

slot slot-number: Specifies an IRF member device by its member ID. If you do not specify this option, the command applies to all member devices. (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. On an IRF fabric, the command applies to all member devices if you do not specify a member device. On an IRF 3 system, the command applies to all IRF member devices and PEXs if you do not specify an IRF member device or PEX. (Centralized IRF devices.) (IRF 3 capable.)

chassis chassis-number: Specifies an IRF member device by its member ID. If you do not specify a member device, the command applies to all member devices. (Distributed devices in IRF mode.) (IRF 3 incapable.)

slot slot-number: Specifies a card by its slot number. If you do not specify a card, the command applies to all cards. (Distributed devices in IRF mode.) (IRF 3 incapable.)

chassis chassis-number: Specifies an IRF member device by its member ID or specifies a PEX by its virtual chassis number. On an IRF fabric, the command applies to all member devices if you do not specify a member device. On an IRF 3 system, the command applies to all IRF member devices and PEXs if you do not specify a member device or PEX. (Distributed devices in IRF mode.) (IRF 3 capable.)

slot slot-number: Specifies a card or a PEX by its slot number. On an IRF fabric, the command applies to all cards if you do not specify a card. On an IRF 3 system, the command applies to all cards and PEXs if you do not specify a card or PEX. (Distributed devices in IRF mode.) (IRF 3 capable.)

cpu cpu-number: Specifies a CPU by its number. This option is available only if multiple CPUs are available on the specified slot.

Examples

# (Centralized devices.) Display configurations for all simulated diagnostic tests.

<Sysname> display diagnostic simulation

Name Mode

BoardStatusMonitor failure

# (Distributed devices in standalone mode.) (Centralized IRF devices.) Display configurations for all simulated diagnostic tests on the specified slot.

<Sysname> display diagnostic simulation slot 1

Slot 1 cpu 0:

Name Mode

BoardStatusMonitor failure

Related commands

diagnostic simulation

GOLD commands -- reset diagnostic event-log

Use reset diagnostic event-log to clear GOLD logs.

Syntax

reset diagnostic event-log

Views

User view

Predefined user roles

network-admin

Examples

# Clear GOLD logs.

<Sysname> reset diagnostic event-log

Related commands

display diagnostic event-log

GOLD commands -- reset diagnostic result

Use reset diagnostic result to clear test results.

Syntax

Centralized devices:

reset diagnostic result [ test test-name ]

Distributed devices in standalone mode:Centralized IRF devices:

reset diagnostic result [ slot slot-number [ cpu cpu-number ] [ test test-name ] ]

Distributed devices in IRF mode:

reset diagnostic result [ chassis chassis-number [ slot slot-number [ cpu cpu-number ] [ test test-name ] ] ]

Views

User view

Predefined user roles

network-admin

Parameters

slot slot-number: Specifies a card by its slot number. If you do not specify this option, the command applies to all cards. (Distributed devices in standalone mode.)

slot slot-number: Specifies an IRF member device by its member ID. If you do not specify this option, the command applies to all IRF member devices. (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. On an IRF fabric, the command applies to all member devices if you do not specify a member device. On an IRF 3 system, the command applies to all IRF member devices and PEXs if you do not specify an IRF member device or PEX. (Centralized IRF devices.) (IRF 3 capable.)

chassis chassis-number: Specifies an IRF member device by its member ID. If you do not specify a member device, the command applies to all member devices. (Distributed devices in IRF mode.) (IRF 3 incapable.)

slot slot-number: Specifies a card by its slot number. If you do not specify a card, the command applies to all cards. (Distributed devices in IRF mode.) (IRF 3 incapable.)

chassis chassis-number: Specifies an IRF member device by its member ID or specifies a PEX by its virtual chassis number. On an IRF fabric, the command applies to all member devices if you do not specify a member device. On an IRF 3 system, the command applies to all IRF member devices and PEXs if you do not specify a member device or PEX. (Distributed devices in IRF mode.) (IRF 3 capable.)

slot slot-number: Specifies a card or a PEX by its slot number. On an IRF fabric, the command applies to all cards if you do not specify a card. On an IRF 3 system, the command applies to all cards and PEXs if you do not specify a card or PEX. (Distributed devices in IRF mode.) (IRF 3 capable.)

cpu cpu-number: Specifies a CPU by its number. This option is available only if multiple CPUs are available on the specified slot.

test test-name: Specifies a test by its name, a case-sensitive character string. You can use the test ? command to verify the value range of the test name. If you do not specify this option, the command applies to all diagnostic tests.

Usage guidelines

This command does not clear the next execution time.

Examples

# (Centralized devices.) Clear test results for test BoardStatusMonitor.

<Sysname> reset diagnostic result test BoardStatusMonitor

# (Distributed devices in standalone mode.) (Centralized IRF devices.) Clear test results for test BoardStatusMonitor on the specified slot.

<Sysname> reset diagnostic result slot 1 test BoardStatusMonitor

Related commands

display diagnostic result