PurposeCommand or Action
• test-id: ID number of the test that appears
in the show diagnostic contentcommand
output.
• test-id-range: ID numbers of the tests that
appear in the show diagnostic content
command output.
• all: All the diagnostic tests.
The range for the failure threshold count is 0
to 99.
Enables the specified health-monitoring tests.diagnostic monitor switchnumber test {name
| test-id | test-id-range | all}
Step 6
The switch number keyword is supported only
on stacking switches.
Example:
Device(config)# diagnostic monitor
switch 2 test 1
When specifying the tests, use one of these
parameters:
• name: Name of the test that appears in
the show diagnostic content command
output.
• test-id: ID number of the test that appears
in the show diagnostic contentcommand
output.
• test-id-range: ID numbers of the tests that
appear in the show diagnostic content
command output.
• all: All the diagnostic tests.
Returns to privileged EXEC mode.end
Example:
Step 7
Device(config)# end
(Optional) Display the online diagnostic test
results and the supported test suites.
show diagnostic { content | post | result |
schedule | status | switch }
Step 8
(Optional) Verifies your entries.show running-config
Example:
Step 9
Device# show running-config
(Optional) Saves your entries in the
configuration file.
copy running-config startup-config
Example:
Step 10
System Management Configuration Guide, Cisco IOS XE Amsterdam 17.2.x (Catalyst 9500 Switches)
203
Configuring Online Diagnostics
Configuring Health-Monitoring Diagnostics