Monitoring and Maintaining Online Diagnostics
Configuration Examples for Online Diagnostic Tests
Examples: Start Diagnostic Tests
This example shows how to start a diagnostic test by using the test name:
Device#
diagnostic start switch 2 test DiagPOETest
This example shows how to start all of the basic diagnostic tests:
Device#
diagnostic start switch 1 test all
Example: Configure a Health Monitoring Test
This example shows how to configure a health-monitoring test:
Device(config)#
diagnostic monitor threshold switch 1 test 1 failure count 50
Device(config)#
diagnostic monitor interval switch 1 test TestPortAsicStackPortLoopback
Examples: Schedule Diagnostic Test
This example shows how to schedule diagnostic testing for a specific day and time on a specific switch:
Device(config)#
diagnostic schedule test DiagThermalTest on June 3 2013
22:25
This example shows how to schedule diagnostic testing to occur weekly at a certain time on a specific switch:
Device(config)#
diagnostic schedule switch 1 test 1,2,4-6 weekly saturday 10:30
Examples: Displaying Online Diagnostics
This example shows how to display on demand diagnostic settings:
Device#
show diagnostic ondemand settings
Test iterations = 1
Action on test failure = continue
This example shows how to display diagnostic events for errors:
Device#
show diagnostic events event-type error
System Management Configuration Guide, Cisco IOS XE Gibraltar 16.10.x (Catalyst 9200 Switches)
140
Configuring Online Diagnostics
Monitoring and Maintaining Online Diagnostics