39-3
Catalyst 2960 and 2960-S Switch Software Configuration Guide
OL-8603-09
Chapter 39 Configuring Online Diagnostics
Running Online Diagnostic Tests
This example shows how to configure the specified test to run every 2 minutes:
Switch(config)# diagnostic monitor interval switch 1 test 1 00:02:00 0 1
This example shows how to set the failure threshold for test monitoring on a switch:
Switch(config)# diagnostic monitor threshold switch 1 test 1 failure count 50
This example shows how to enable the generation of a sy slog message when any health monitoring test
fails:
Switch(config)# diagnostic monitor syslog
Running Online Diagnostic Tests
After you configure online diagnostics, you can start diagnostic tests or display the test results. You can
also see which tests are configured for each switch and what diagnostic tests have already run.
These sections describe how to run online diagnostic tests after they have been configured:
Starting Online Diagnostic Tests, page 39-3
Displaying Online Diagnostic Tests and Test Results, page 39-4

Starting Online Diagnostic Tests

After you configure diagnostic tests to run on the switch or on individual switches, you can use start to
begin a diagnostic test.
Beginning in global configuration mode, use this command to start an o nline diagnostic test:
This example sh ows how to start a diagnostic test on a specific switch:
Switch# diagnostic start switch 1 test 1
Switch#
06:27:50: %DIAG-6-TEST_RUNNING: Switch 1: Running TestPortAsicStackPortLoopback{ID=1} ...
(switch-1)
06:27:51: %DIAG-6-TEST_OK: Switch 1: TestPortAsicStackPortLoopback{ID=1} has completed
successfully (switch-1)
Switch#
Command Purpose
diagnostic start switch num test {test-id | test-id-range | all
| basic | non-disruptive}
Start a diagnostic test on a specific switch.