Command or Action
Step 4
diagnostic monitor syslog
Example:
Switch(config)# diagnostic monitor
syslog
Step 5
diagnostic monitor threshold switch
number test {name | test-id | test-id-range |
all} failure count count
Example:
Switch(config)# diagnostic monitor
threshold switch 2 test 1 failure
count 20
Step 6
diagnostic monitor switch number test
{name | test-id | test-id-range | all}
Example:
Switch(config)# diagnostic monitor
switch 2 test 1
Purpose
• hh:mm:ss—Monitoring interval in hours, minutes, and seconds. The
range for hh is 0 to 24, and the range for mm and ss is 0 to 60.
• milliseconds—Monitoring interval in milliseconds (ms). The range
is from 0 to 999.
• day—Monitoring interval in the number of days. The range is from
0 to 20.
(Optional) Configures the switch to generate a syslog message when a
health-monitoring test fails.
(Optional) Sets the failure threshold for the health-monitoring tests.
The switch number keyword is supported only on stacking switches. The
range is from 1 to 8.
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
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.
The range for the failure threshold count is 0 to 99.
Enables the specified health-monitoring tests.
The switch number keyword is supported only on stacking switches. The
range is from 1 to 9.
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
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.
Consolidated Platform Configuration Guide, Cisco IOS Release 15.2(4)E (Catalyst 2960-X Switches)
How to Configure Online Diagnostics
1617