- Index
- New and Changed Information
- Preface
- Overview
- Configuring CFS
- Configuring NTP
- Configuring CDP
- Configuring System Message Logging
- Configuring Smart Call Home
- Configuring Rollback
- Configuring Session Manager
- Configuring the Scheduler
- Configuring SNMP
- Configuring RMON
- Configuring Online Diagnostics
- Configuring the Embedded Event Manager
- Configuring Onboard Failure Logging
- Configuring SPAN
- Configuring NetFlow
- Supported RFCs
- EEM Events and Examples
- Information About Online Diagnostics
- Licensing Requirements for Online Diagnostics
- Prerequisites for Online Diagnostics
- Guidelines and Limitations
- Configuring Online Diagnostics
- Verifying Online Diagnostics Configuration
- Online Diagnostic Example Configuration
- Default Settings
- Additional References
- Feature History for Online Diagnostics
Configuring Online Diagnostics
This chapter describes how to configure the generic online diagnostics (GOLD) feature on Cisco NX-OS devices.
This chapter includes the following sections:
•
Information About Online Diagnostics
•
Licensing Requirements for Online Diagnostics
•
Prerequisites for Online Diagnostics
•
Configuring Online Diagnostics
•
Verifying Online Diagnostics Configuration
•
Online Diagnostic Example Configuration
•
Feature History for Online Diagnostics
Note
For complete syntax and usage information for the commands in this chapter, see the
Cisco Nexus 7000 Series NX-OS System Management Command Reference.
Information About Online Diagnostics
Online diagnostics help you verify that hardware and internal data paths are operating as designed so that you can rapidly isolate faults.
This section includes the following topics:
•
Runtime or Health Monitoring Diagnostics
Online Diagnostic Overview
With online diagnostics, you can test and verify the hardware functionality of the device while the device is connected to a live network.
The online diagnostics contain tests that check different hardware components and verify the data path and control signals. Disruptive online diagnostic tests (such as the disruptive loopback test) and nondisruptive online diagnostic tests (such as the ASIC register check) run during bootup, line module online insertion and removal (OIR), and system reset. The nondisruptive online diagnostic tests run as part of the background health monitoring, and you can run these tests on demand.
Online diagnostics are categorized as bootup, runtime or health-monitoring diagnostics, and on-demand diagnostics. Bootup diagnostics run during bootup, health-monitoring tests run in the background, and on-demand diagnostics run once or at user-designated intervals when the device is connected to a live network.
Bootup Diagnostics
Bootup diagnostics run during bootup and detect faulty hardware before Cisco NX-OS brings a module online. For example, if you insert a faulty module in the device, bootup diagnostics test the module and take it offline before the device uses the module to forward traffic.
Bootup diagnostics also check the connectivity between the supervisor and module hardware and the data and control paths for all the ASICs. Table 12-1 describes the bootup diagnostic tests for a supervisor.
Note
Modules run the EOBCPortLoopback diagnostic as a nondisruptive bootup test, using test ID 1.
Bootup diagnostics log failures to onboard failure logging (OBFL) and syslog and trigger a diagnostic LED indication (on, off, pass, or fail).
You can configure Cisco NX-OS to either bypass the bootup diagnostics or run the complete set of bootup diagnostics. See the "Setting the Bootup Diagnostic Level" section.
Runtime or Health Monitoring Diagnostics
Runtime diagnostics are also called health monitoring (HM) diagnostics. These diagnostics provide information about the health of a live device. They detect runtime hardware errors, memory errors, the degradation of hardware modules over time, software faults, and resource exhaustion.
Health monitoring diagnostics are nondisruptive and run in the background to ensure the health of a device that is processing live network traffic. You can enable or disable health monitoring tests or change their runtime interval. Table 12-2 describes the health monitoring diagnostics and test IDs for a supervisor.
Table 12-3 describes the health monitoring diagnostics for a module.
|
|
|
|
|
|
|---|---|---|---|---|
2 |
ASICRegisterCheck |
1 minute |
active |
Checks read/write access to scratch registers for the ASICs on a module. |
3 |
PrimaryBootROM |
30 minutes |
active |
Verifies the integrity of the primary boot device on a module. |
4 |
SecondaryBootROM |
30 minutes |
active |
Verifies the integrity of the secondary boot device on a module. |
5 |
PortLoopback1 |
15 minutes |
active |
Tests the packet path from the supervisor module to the physical port in ADMIN DOWN state on modules. |
6 |
RewriteEngineLoopback |
60 seconds |
active |
Tests nondisruptive loopback for all ports up to the Rewrite Engine ASIC device. |
1 PortLoopback test supported on 32-port 10-Gbps Ethernet module and 48-port 1-G optical ethernet module. |
On-Demand Diagnostics
On-demand tests help localize faults and are usually needed in one of the following situations:
•
To respond to an event that has occurred, such as isolating a fault.
•
In anticipation of an event that may occur, such as a resource exceeding its utilization limit.
You can run all the health monitoring tests on demand.
You can schedule on-demand diagnostics to run immediately. See the "Starting or Stopping an On-Demand Diagnostic Test" section for more information.
You can also modify the default interval for a health monitoring test. See the "Activating a Diagnostic Test" section for more information.
High Availability
A key part of high availability is detecting hardware failures and taking corrective action while the device runs in a live network. Online diagnostics in high availability detect hardware failures and provide feedback to high availability software components to make switchover decisions.
Cisco NX-OS supports stateless restarts for online diagnostics. After a reboot or supervisor switchover, Cisco NX-OS applies the running configuration.
Virtualization Support
Cisco NX-OS supports online diagnostics in the default virtual device context (VDC). By default, Cisco NX-OS places you in the default VDC. See the Cisco Nexus 7000 Series NX-OS Virtual Device Context Configuration Guide, Release 4.x for more information.
Online diagnostics are virtual routing and forwarding (VRF) aware. You can configure online diagnostics to use a particular VRF to reach the online diagnostics SMTP server.
Licensing Requirements for Online Diagnostics
Prerequisites for Online Diagnostics
Online diagnostics have the following prerequisite:
•
If you configure VDCs, install the Advanced Services license and go to the VDC that you want to configure. For more information, see the document, Cisco Nexus 7000 Series NX-OS Virtual Device Context Configuration Guide, Release 4.x.
Guidelines and Limitations
You cannot run disruptive online diagnostic tests on demand.
Configuring Online Diagnostics
This section includes the following topics:
•
Setting the Bootup Diagnostic Level
•
Setting a Diagnostic Test as Inactive
•
Starting or Stopping an On-Demand Diagnostic Test
•
Simulating Diagnostic Results
Note
Be aware that the Cisco NX-OS commands for this feature may differ from those commands used in Cisco IOS.
Setting the Bootup Diagnostic Level
You can configure the bootup diagnostics to run the complete set of tests, or you can bypass all bootup diagnostic tests for a faster module bootup time.
Note
We recommend that you set the bootup online diagnostics level to complete. We do not recommend bypassing the bootup online diagnostics.
BEFORE YOU BEGIN
Make sure that you are in the correct VDC. To change the VDC, use the switchto vdc command.
SUMMARY STEPS
1.
config t
2.
diagnostic bootup level [complete | bypass]
3.
show diagnostic bootup level
4.
copy running-config startup-config
DETAILED STEPS
Activating a Diagnostic Test
You can set a diagnostic test as active and optionally modify the interval (in hours, minutes, and seconds) at which the test runs.
BEFORE YOU BEGIN
Make sure that you are in the correct VDC. To change the VDC, use the switchto vdc command.
SUMMARY STEPS
1.
config t
2.
diagnostic monitor interval module slot test [test-id | name | all] hour hour min minutes second sec
3.
diagnostic monitor module slot test [test-id | name | all]
4.
show diagnostic content module {slot | all}
DETAILED STEPS
Setting a Diagnostic Test as Inactive
You can set a diagnostic test as inactive. Inactive tests keep their current configuration but do not run at at the scheduled interval.
Use the following command in global configuration mode to set a diagnostic test as inactive:
Starting or Stopping an On-Demand Diagnostic Test
You can start or stop an on-demand diagnostic test. You can optionally modify the number of iterations to repeat this test, and the action to take if the test fails.
We recommend that you only manually start a disruptive diagnostic test during a scheduled network maintenance time.
BEFORE YOU BEGIN
Make sure that you are in the correct VDC. To change the VDC, use the switchto vdc command.
SUMMARY STEPS
1.
diagnostic ondemand iteration number
2.
diagnostic ondemand action-on-failure {continue failure-count num-fails | stop}
3.
diagnostic start module slot test [test-id | name | all | non-disruptive] [port port-number | all]
4.
diagnostic stop module slot test [test-id | name | all]
5.
show diagnostic status module slot
DETAILED STEPS
Clearing Diagnostic Results
You can clear diagnostic test results.
Use the following command in any mode to clear the diagnostic test results:
Simulating Diagnostic Results
You can simulate a diagnostic test result.
Use the following command in any mode to simulate a diagnostic test result:
Use the following command in any mode to clear the simulated diagnostic test result:
Verifying Online Diagnostics Configuration
To display online diagnostics configuration information, perform one of the following tasks:
Online Diagnostic Example Configuration
This example shows how to start all on-demand tests on module 6:
diagnostic start module 6 test all
This example shows how to activate test 2 and set the test interval on module 6:
conf t
diagnostic monitor module 6 test 2
diagnostic monitor interval module 6 test 2 hour 3 min 30 sec 0
Default Settings
Table 12-4 lists the default settings for online diagnostic parameters.
|
|
|
|---|---|
Bootup diagnostics level |
complete |
Nondisruptive tests |
active |
Additional References
For additional information related to implementing online diagnostics, see the following sections:
Related Documents
Standards
|
|
|
|---|---|
No new or modified standards are supported by this feature, and support for existing standards has not been modified by this feature. |
— |
Feature History for Online Diagnostics
Table 12-5 lists the release history for this feature.
Feedback