Purpose
Command or Action
•
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 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:
Step 4
Device(config)#
diagnostic monitor syslog
(Optional) Sets the failure threshold for the
health-monitoring test.
diagnostic monitor threshold switch number number
test
{
name
|
test-id
|
test-id-range
|
all
}
failure count count
Step 5
Example:
When specifying the tests, use one of these parameters:
Device(config)#
diagnostic monitor threshold
switch 2 test 1 failure count 20
•
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 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.
System Management Configuration Guide, Cisco IOS XE Fuji 16.8.x (Catalyst 9500 Switches)
173
Configuring Online Diagnostics
Configuring Health-Monitoring Diagnostics