Use the no form of this command to disable testing.
By default, health monitoring is disabled, but the Switch generates a syslog message when a test fails.
Follow these steps to configure and enable the health-monitoring diagnostic tests:
SUMMARY STEPS
1.
enable
2.
configure terminal
3.
diagnostic monitor interval switch number test {name | test-id | test-id-range | all} hh:mm:ss milliseconds
day
4.
diagnostic monitor syslog
5.
diagnostic monitor threshold switch number test {name | test-id | test-id-range | all} failure count count
6.
diagnostic monitor switch number test {name | test-id | test-id-range | all}
7.
end
8.
show running-config
9.
copy running-config startup-config
DETAILED STEPS
PurposeCommand or Action
Enables privileged EXEC mode. Enter your password if prompted.enable
Step 1
Example:
Switch> enable
Enters the global configuration mode.configure terminal
Example:
Switch# configure terminal
Step 2
Configures the health-monitoring interval of the specified tests.
diagnostic monitor interval switch number
test {name | test-id | test-id-range | all}
hh:mm:ss milliseconds day
Step 3
The switch number keyword is supported only on stacking switches.
When specifying the tests, use one of these parameters:
Example:
Switch(config)# diagnostic monitor
• name—Name of the test that appears in the show diagnostic content
command output.
interval switch 2 test 1 12:30:00 750
5
• test-id—ID number of the test that appears in the show diagnostic
content command output.
• test-id-range—ID numbers of the tests that appear in the show
diagnostic content command output.
• all—All of the diagnostic tests.
When specifying the interval, set these parameters:
Consolidated Platform Configuration Guide, Cisco IOS Release 15.2(4)E (Catalyst 2960-X Switches)
1616
How to Configure Online Diagnostics