52-2
Catalyst 3750-X and 3560-X Switch Software Configuration Guide
OL-21521-01
Chapter 52 Configuring Online Diagnostics
Configuring Online Diagnostics
Scheduling Online Diagnostics
You can schedule online diagnostics to run at a designated time of day or on a daily, weekly, or monthly
basis for a switch. Use the no form of this command to remove the scheduling.
Use this global configuration command to schedule online diagnostics:
Use the no diagnostic schedule switch number test {name | test-id | test-id-range | all | basic |
non-disruptive} {daily hh:mm | on mm dd yyyy hh:mm | weekly day-of-week hh:mm} global
configuration command to remove the scheduled tests.
This example shows how to schedule diagnostic testing for a specific day and time on a switch:
Switch(config)# diagnostic schedule test TestPortAsicCam on december 3 2006 22:25
This example sh ows how to schedule diagnostic testing to occur weekly at a specific time on member
switch 6 when this command is entered on a Catalyst 3750-X stack master:
Switch(config)# diagnostic schedule switch 6 test 1-4,7 weekly saturday 10:30
For more examples, see the “Examples” section of the diagnostic schedule command in the command
reference for this release.
Configuring Health-Monitoring Diagnostics
You can configure health-monitoring diagnostic testing on a switch while it is connected to a live
network. You can configure the execution interval for each health-monitoring test, enable the switch to
generate a syslog message because of a test failure, and enable a specific test.
Command Purpose
diagnostic schedule switch
number test {name | test-id |
test-id-range | all | basic |
non-disruptive} {daily hh:mm |
on mm dd yyyy hh:mm | weekly
day-of-week hh:mm}
Schedule on-demand diagnostic tests for a specific day and time.
The switch number keyword is supported only on switches. The range is from 1 to 9.
When specifying the tests to be scheduled, use these options:
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.
basic—Basic on-demand diagnostic tests.
non-disruptive—Nondisruptive health-monitoring tests.
You can schedule the tests as follows:
Daily—Use the daily hh:mm parameter.
Specific day and time—Use the on mm dd yyyy hh:mm parameter.
Weekly—Use the weekly day-of-week hh:mm parameter.
For detailed information about this command, see the command reference for this release.