- Index
- Preface
- Overview
- Using the Command-Line Interface
- Assigning the Switch IP Address and Default Gateway
- Configuring Cisco IOS Configuration Engine
- Managing Switch Stacks
- Clustering Switches
- Administering the Switch
- Configuring SDM Templates
- Managing Catalyst 3750-X Stack Power
- Configuring Switch-Based Authentication
- Configuring IEEE 802.1x Port-Based Authentication
- Configuring Web-Based Authentication
- Configuring Interface Characteristics
- Configuring Auto Smartports Macros
- Configuring VLANs
- Configuring VTP
- Configuring Voice VLANs
- Configuring Private VLANs
- Configuring IEEE 802.1Q and Layer 2 Protocol Tunneling
- Configuring STP
- Configuring MSTP
- Configuring Optional Spanning-Tree Features
- Configuring Flex Links
- Configuring DHCP Features and IP Source Guard
- Configuring Dynamic ARP Inspection
- Configuring IGMP Snooping and MVR
- Configuring IPv6 MLD Snooping
- Configuring Port-Based Traffic Control
- Configuring CDP
- Configuring LLDP, LLDP-MED, and Wired Location Service
- Configuring UDLD
- Configuring SPAN and RSPAN
- Configuring RMON
- Configuring System Message Logging
- Configuring SNMP
- Configuring Embedded Event Manager
- Configuring Network Security with ACLs
- Configuring IPv6 ACLs
- Configuring QoS
- Configuring EtherChannels
- Configuring TelePresence E911 IP Phone Support
- Configuring IP Unicast Routing
- Configuring IPv6 Unicast Routing
- Configuring HSRP
- Configuring Cisco IOS IP SLAs Operations
- Configuring Enhanced Object Tracking
- Configuring WCCP
- Configuring IP Multicast Routing
- Configuring MSDP
- Configuring Fallback Bridging
- Troubleshooting
- Configuring Online Diagnostics
- Supported MIBs
- Working with the Cisco IOS File System, Configuration Files, and Software Images
- Unsupported Commands in Cisco IOS Release 12.2(53)SE
Configuring Online Diagnostics
This chapter describes how to configure the online diagnostics on the Catalyst 3750-X or 3560-X switch.
Note For complete syntax and usage information for the commands used in this chapter, see the command reference for this release.
Understanding Online Diagnostics
With online diagnostics, you can test and verify the hardware functionality of the switch while the switch is connected to a live network.
The online diagnostics contain packet switching tests that check different hardware components and verify the data path and the control signals.
The online diagnostics detect problems in these areas:
Online diagnostics are categorized as on-demand, scheduled, or health-monitoring diagnostics. On-demand diagnostics run from the CLI; scheduled diagnostics run at user-designated intervals or at specified times when the switch is connected to a live network; and health-monitoring runs in the background.
Configuring Online Diagnostics
You must configure the failure threshold and the interval between tests before enabling diagnostic monitoring.
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 nu mber 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:
This example shows 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:
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.
By default, health monitoring is disabled, but the switch generates a syslog message when a test fails.
Beginning in privileged EXEC mode, follow these steps to configure and enable the health-monitoring diagnostic tests:
|
|
|
---|---|---|
diagnostic monitor interval switch number test { name | test-id | test-id-range | all } hh:mm:ss milliseconds day |
Configure the health-monitoring interval of the specified tests. The switch number keyword is supported only on Catalyst 3750-X switches. The range is from 1 to 9. When specifying the tests, use one of these parameters:
|
|
(Optional) Configure the switch to generate a syslog message when a health-monitoring test fails. |
||
diagnostic monitor threshold switch number test { name | test-id | test-id-range | all } failure count count |
(Optional) Set the failure threshold for the health-monitoring tests. The switch number keyword is supported only on Catalyst 3750-X switches. The range is from 1 to 9. When specifying the tests, use one of these parameters:
|
|
diagnostic monitor switch number test { name | test-id | test-id-range | all } |
Enable the specified health-monitoring tests. The switch number keyword is supported only on Catalyst 3750-X switches. The range is from 1 to 9. When specifying the tests, use one of these parameters:
|
|
show diagnostic { content | post | result | schedule | status | switch } |
Display the online diagnostic test results and the supported test suites. See the “Displaying Online Diagnostic Tests and Test Results” section for more information. |
|
To disable diagnostic testing and return to the default settings, use these commands:
- To disable online diagnostic testing, use the no diagnostic monitor switch num ber test { name | test-id | test-id-range | all } global configuration command.
- To return to the default health-monitoring interval, use the no diagnostic monitor interval switch number test { name | test-id | test-id-range | all } global configuration command.
- To configure the switch to not generate a syslog message when the health-monitoring test fails, use the no diagnostic monitor syslog global configuration command.
- To return to the default failure threshold, use the no diagnostic monitor threshold switch number test { name | test-id | test-id-range | all } failure count count global configuration command.
Note The switch number keyword is supported only on Catalyst 3750-X switches.
This example shows how to configure a health-monitoring test:
Switch(config)#
diagnostic monitor threshold switch 3 test 1 failure count 50
Running Online Diagnostic Tests
After you configure online diagnostics, you can manually start diagnostic tests or display the test results. You can also see which tests are configured for the switch or switch stack and the diagnostic tests that have already run.
Starting Online Diagnostic Tests
After you configure diagnostic tests to run on the switch, use the diagnostic start privileged EXEC command to begin diagnostic testing.
Use this privileged EXEC command to manually start online diagnostic testing:
After starting the tests, you cannot stop the testing process.
This example shows how to start a diagnostic test by using the test name:
This example shows how to start all of the basic diagnostic tests:
Displaying Online Diagnostic Tests and Test Results
You can display the online diagnostic tests that are configured for the switch or switch stack and check the test results by using the privileged EXEC show commands in Table 52-1 :
|
|
---|---|
show diagnostic content switch [ number | all ]1 |
|
show diagnostic result switch [ number | all ] 1 [ detail | test { name | test-id | test-id-range | all } [ detail ]] |
|
Display the POST results. (The output is the same as the show post command output.) |
1.The switch [number | all] parameter is supported only on Catalyst 3750-X switches. |
For examples of the show diagnostic command output, see the “Examples” section of the show diagnostic command in the command reference for this release.