Users Guide

Debugging and Diagnostics
This chapter describes the debugging and diagnostics tasks you can perform on the switch.
Topics:
Oine Diagnostics
TRACE Logs
Last Restart Reason
show hardware Commands
Environmental Monitoring
Troubleshooting Packet Loss
Accessing Application Core Dumps
Mini Core Dumps
Full Kernel Core Dumps
Enabling TCP Dumps
Accessing Port Extender Core and Mini Core Dumps
Oine Diagnostics
The oine diagnostics test suite is useful for isolating faults and debugging hardware.
You can run oine diagnostics from the switch or port extender.
Important Points to Remember
Diagnostics only test connectivity, not the entire data path.
Diagnostic results are stored on the ash of the switch on which you performed the diagnostics.
The diagnostic tests are grouped into three levels:
Level 0 — Level 0 diagnostics check for the presence of various components and perform essential path verications. In addition, they
verify the identication registers of the components on the board.
Level 1 — A smaller set of diagnostic tests. Level 1 diagnostics perform status/self-test for all the components on the board and test
their registers for appropriate values. In addition, they perform extensive tests on memory devices (for example, SDRAM, ash,
NVRAM, or EEPROM) wherever possible.
Level 2 — The full set of diagnostic tests. Level 2 diagnostics are used primarily for on-board Loopback tests and more extensive
component diagnostics. Various components on the board are put into Loopback mode and test packets are transmitted through those
components. These diagnostics also perform snake tests using VLAN congurations.
Running Port Extender Oine Diagnostics on the Switch
To run port extender oine diagnostics on the switch:
1 Start the diagnostics on the unit.
EXEC Privilege Mode
diag pe pe-id stack-unit unit-number
12
304 Debugging and Diagnostics