Blog CLEMANET
Systèmes et réseaux

Switch Cisco: commande diagnostic

La commande diagnostic permet de tester l’état du switch au niveau matériel.

Les tests qui suivent ont été réalisés avec un switch Cisco 2960x. Affichage des tests disponibles

Switch2960x#show diagnostic content switch 1

Switch 1:

  Diagnostics test suite attributes:
      B/* - Basic ondemand test / NA
    P/V/* - Per port test / Per device test / NA
    D/N/* - Disruptive test / Non-disruptive test / NA
      S/* - Only applicable to standby unit / NA
      X/* - Not a health monitoring test / NA
      F/* - Fixed monitoring interval test / NA
      E/* - Always enabled monitoring test / NA
      A/I - Monitoring is active / Monitoring is inactive
      R/* - Switch will reload after test list completion / NA
      P/* - will partition stack / NA

                                                          Test Interval   Thre-
  ID   Test Name                          Attributes      day hh:mm:ss.ms shold
  ==== ================================== ============    =============== =====
    1) TestPortAsicStackPortLoopback ---> B*N****I**      not configured  n/a
    2) TestPortAsicLoopback ------------> B*D*X**IR*      not configured  n/a
    3) TestPortAsicCam -----------------> B*D*X**IR*      not configured  n/a
    4) TestPortAsicRingLoopback --------> B*D*X**IR*      not configured  n/a
    5) TestMicRingLoopback -------------> B*D*X**IR*      not configured  n/a
    6) TestPortAsicMem -----------------> B*D*X**IR*      not configured  n/a
    7) TestInlinePwrCtlr ---------------> B*D*X**IR*      not configured  n/a


Switch2960x#

Démarrage du diagnostique

On lance un diagnostique (comme il est indiqué, le switch va redémarrer …):

Switch2960x#diagnostic start switch 1 test all
Diagnostic[Switch 1]: Running test(s) 2-7 will cause the switch under test to reload after completion of the test list.
Diagnostic[Switch 1]: Running test(s) 2-7 may disrupt normal system operation
Do you want to continue? [no]: yes

Résultat du diagnostique

Puis, on vérifie le résultat:

Switch2960x#show diagnostic result switch 1

Switch 1:   SerialNo : FOC19523587

  Overall Diagnostic Result for Switch 1

  Test results: (. = Pass, F = Fail, U = Untested)

    1) TestPortAsicStackPortLoopback ---> .
    2) TestPortAsicLoopback ------------> .
    3) TestPortAsicCam -----------------> .
    4) TestPortAsicRingLoopback --------> .
    5) TestMicRingLoopback -------------> .
    6) TestPortAsicMem -----------------> .
    7) TestInlinePwrCtlr ---------------> .

Autre commande pour effectuer un diagnostique: tech-support (voir le billet suivant).