PurposeCommand or Action
• Specific day and time: Use the on
mm dd yyyy hh:mm parameter.
• Weekly: Use the weekly day-of-week
hh:mm parameter.
Configuring Health-Monitoring Diagnostics
You can configure health-monitoring diagnostic testing on a device while it is connected to a live network.
You can configure the execution interval for each health-monitoring test, enable the device to generate a
syslog message because of a test failure, and enable a specific test.
Use the no form of this command to disable testing.
By default, health monitoring is enabled only for a few tests, and the device generates a syslog message when
a test fails.
Follow these steps to configure and enable the health-monitoring diagnostic tests:
Procedure
PurposeCommand or Action
Enables privileged EXEC mode.enable
Step 1
Example:
Enter your password, if prompted.
Device> enable
Enters global configuration mode.configure terminal
Example:
Step 2
Device# configure terminal
Configures the health-monitoring interval of
the specified test.
diagnostic monitor interval modulenumber
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.
Example:
Device(config)#
When specifying a test, use one of these
parameters:
diagnostic monitor interval module 2
test 1 12:30:00 750 5
• 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.
System Management Configuration Guide, Cisco IOS XE Bengaluru 17.4.x (Catalyst 9400 Switches)
277
Configuring Online Diagnostics
Configuring Health-Monitoring Diagnostics