PurposeCommand or Action
• test-id-range: ID numbers of the tests that
appear in the show diagnostic content
command output.
• all: All the diagnostic tests.
When specifying the interval, set these
parameters:
• 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 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.
diagnostic monitor syslog
Example:
Device(config)# diagnostic monitor
syslog
Step 4
(Optional) Sets the failure threshold for the
health-monitoring test.
diagnostic monitor threshold module number
number test {name | test-id | test-id-range |
all} failure count count
Step 5
When specifying the tests, use one of these
parameters:
Example:
Device(config)# diagnostic monitor
• name: Name of the test that appears in
the show diagnostic content command
output.
threshold module 2 test 1 failure count
20
• 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 modulenumber test
{name | test-id | test-id-range | all}
Step 6
The switch number keyword is supported only
on stacking switches.
Example:
System Management Configuration Guide, Cisco IOS XE Bengaluru 17.4.x (Catalyst 9400 Switches)
278
Configuring Online Diagnostics
Configuring Health-Monitoring Diagnostics