394
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
# Configure the maximum number of failed tests as
5
for all on-demand diagnostic tests.
<Sysname> diagnostic ondemand failure 5
Related commands
diagnostic ondemand repeating
diagnostic ondemand start
display diagnostic ondemand configuration
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