Comandos de Troubleshooting en Switch Cisco

En este articulo vamos a revisar algunos comandos de troubleshooting en switch Cisco, uso y utilidad en revisión de problemas.

Descripción Breve Acerca de Troubleshooting en Switch Cisco

Muchos de los comandos que vamos a repasar en este articulo se pueden utilizar en diferentes modelos de switches. La disponibilidad y uso de los comandos que vamos a ver no siempre son aceptados en algunos switches, depende mucho de la versión de IOs y modelo.

Algunos modelos pueden tener cierta variante con relación al modelo de switch y/o versión de IOs, esto se puede consultar en el portal de cisco.

Comandos de Troubleshooting en Switch Cisco

Comandos de Troubleshooting en Switch Cisco – Salud

1.- show environment all

Con este comando se puede visualizar la información general del estado del ambiente y energía en el switch. Este comando proporciona datos del estado de las fuentes de poder, temperatura y ventiladores del switch.

Switch_9300#  show environment all 
Switch   FAN     Speed   State
---------------------------------------------------
  1       1     14240     OK
  1       2     14240     OK
  1       3     14240     OK
FAN PS-1 is OK
FAN PS-2 is NOT PRESENT
Switch 1: SYSTEM TEMPERATURE is OK
Inlet Temperature Value: 33 Degree Celsius
Temperature State: GREEN
Yellow Threshold : 46 Degree Celsius
Red Threshold    : 56 Degree Celsius

Outlet Temperature Value: 38 Degree Celsius
Temperature State: GREEN
Yellow Threshold : 105 Degree Celsius
Red Threshold    : 125 Degree Celsius

Hotspot Temperature Value: 51 Degree Celsius
Temperature State: GREEN
Yellow Threshold : 105 Degree Celsius
Red Threshold    : 125 Degree Celsius
SW  PID                 Serial#     Status           Sys Pwr  PoE Pwr  Watts
--  ------------------  ----------  ---------------  -------  -------  -----
1A  PWR-C1-715WAC-P     FAA2151C570  OK              Good     Good     715 
1B  Not Present

Power Supply  : 1A
Input voltage : 126.500V
Input current : 1.365A
Output voltage: 56.432V
Output current: 2.883A
Output power  : 159.0W

Switch_9300#

Hay una variante de este comando en modelos de switches cisco un poco viejos donde el comando cambia un poco, el comando es «show env all».

1.2.- show env all

El resultado del comando muestra los datos del estado del switch como el comando anterior. El resultado suele tener menos información, pero es funcional.

Switch_3560# show env all 
SYSTEM TEMPERATURE is OK
System Temperature Value: 56 Degree Celsius
System Temperature State: GREEN
Yellow Threshold : 89 Degree Celsius
Red Threshold    : 96 Degree Celsius
SW  PID                 Serial#     Status           Sys Pwr  PoE Pwr  Watts
--  ------------------  ----------  ---------------  -------  -------  -----
 1  Built-in                                         Good


Switch_3560#

1.3.- show environment power

Este comando muestra el estado de las fuentes de energía en el switch, puede indicar el modelo de fuente, capacidad, estado y voltaje, también suele mostrar el numero de fuentes de energía en el switch.

Switch_9300#show environment power 
SW  PID                 Serial#     Status           Sys Pwr  PoE Pwr  Watts
--  ------------------  ----------  ---------------  -------  -------  -----
1A  PWR-C1-715WAC-P     FAA2151C571  OK              Good     Good     715 
1B  Not Present

Power Supply  : 1A
Input voltage : 124.875V
Input current : 1.387A
Output voltage: 56.432V
Output current: 2.836A
Output power  : 160.750W

Switch_9300#

1.4.- show environment temperatura

Este comando nos indica la temperatura interna del switch, temperatura actual, valores promedio, valores para ser considerado como warning y críticos.

Switch_9300# show environment temperature 
Switch 1: SYSTEM TEMPERATURE is OK
Inlet Temperature Value: 33 Degree Celsius
Temperature State: GREEN
Yellow Threshold : 46 Degree Celsius
Red Threshold    : 56 Degree Celsius

Outlet Temperature Value: 38 Degree Celsius
Temperature State: GREEN
Yellow Threshold : 105 Degree Celsius
Red Threshold    : 125 Degree Celsius

Hotspot Temperature Value: 51 Degree Celsius
Temperature State: GREEN
Yellow Threshold : 105 Degree Celsius
Red Threshold    : 125 Degree Celsius

Switch_9300#

1.5.- show environment fan

Con este comando podemos ver el estado de los ventiladores activos en el switch.

Switch_9300#show environment fan 
Switch   FAN     Speed   State   Airflow direction
---------------------------------------------------
  1       1     14240     OK     Front to Back
  1       2     14240     OK     Front to Back
  1       3     14240     OK     Front to Back
FAN PS-1 is OK
FAN PS-2 is NOT PRESENT

Switch_9300#

2.- show post

Se utiliza para verificar el resultado del autodiagnóstico posterior (Power-On Self-Test) realizado por el switch durante el proceso de arranque.

El autodiagnóstico es una serie de pruebas automáticas que el switch realiza en sí mismo para asegurarse de que todos los componentes del hardware estén funcionando correctamente. Estas pruebas incluyen la verificación de la memoria, el procesador, los puertos de red, entre otros.

El comando «show post» muestra el resultado de estas pruebas y puede proporcionar información útil sobre cualquier problema que se haya detectado durante el proceso de arranque. Por lo tanto, puede ser una herramienta útil para diagnosticar problemas de hardware en un switch Cisco.

Switch_9300#show post 
Stored system POST messages:

Switch 1
---------

POST: MBIST Tests : Begin
POST: MBIST Tests : End, Status Passed

POST: CRYPTO Tests : Begin
POST: CRYPTO Tests : End, Status Passed

POST: PHY Loopback: loopback Test : Begin
POST: PHY Loopback: loopback Test : End, Status Passed

POST: SIF Tests : Begin
POST: SIF Tests : End, Status Passed

POST: Inline Power Controller Tests : Begin
POST: Inline Power Controller Tests : End, Status Skipped

POST: Thermal, Temperature Tests : Begin
POST: Thermal, Temperature Tests : End, Status Passed

POST: Thermal, Fan Tests : Begin
POST: Thermal, Fan Tests : End, Status Passed

Switch_9300#

3.- show version

Este comando podemos ver varios datos relacionados al modelo de switch, podemos ver datos como el modelo de switch, numero de serie, mac address, versión de firmware y algo importante la fecha y causa del último reinicio.

Switch_9300#show version
Cisco IOS XE Software, Version 17.06.02
Cisco IOS Software [Bengaluru], Catalyst L3 Switch Software (CAT9K_IOSXE), Version 17.6.2, RELEASE SOFTWARE (fc7)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2021 by Cisco Systems, Inc.
Compiled Tue 23-Nov-21 12:41 by mcpre


Cisco IOS-XE software, Copyright (c) 2005-2021 by cisco Systems, Inc.
All rights reserved.  Certain components of Cisco IOS-XE software are
licensed under the GNU General Public License ("GPL") Version 2.0.  The
software code licensed under GPL Version 2.0 is free software that comes
with ABSOLUTELY NO WARRANTY.  You can redistribute and/or modify such
GPL code under the terms of GPL Version 2.0.  For more details, see the
documentation or "License Notice" file accompanying the IOS-XE software,
or the applicable URL provided on the flyer accompanying the IOS-XE
software.


ROM: IOS-XE ROMMON
BOOTLDR: System Bootstrap, Version 17.6.1r[FC2], RELEASE SOFTWARE (P)

Switch_9300 uptime is 6 weeks, 3 days, 21 hours, 49 minutes
Uptime for this control processor is 6 weeks, 3 days, 21 hours, 51 minutes
System returned to ROM by PowerOn
System restarted at 12:18:10 MEX Sat Feb 18 2023
System image file is "flash:packages.conf"
Last reload reason: PowerOn



This product contains cryptographic features and is subject to United
States and local country laws governing import, export, transfer and
use. Delivery of Cisco cryptographic products does not imply
third-party authority to import, export, distribute or use encryption.
Importers, exporters, distributors and users are responsible for
compliance with U.S. and local country laws. By using this product you
agree to comply with applicable laws and regulations. If you are unable
to comply with U.S. and local laws, return this product immediately.

A summary of U.S. laws governing Cisco cryptographic products may be found at:
http://www.cisco.com/wwl/export/crypto/tool/stqrg.html

If you require further assistance please contact us by sending email to
[email protected].


Technology Package License Information: 

------------------------------------------------------------------------------
Technology-package                                     Technology-package
Current                        Type                       Next reboot  
------------------------------------------------------------------------------
network-advantage       Smart License                    network-advantage   
dna-advantage           Subscription Smart License       dna-advantage                 
AIR License Level: AIR DNA Advantage
Next reload AIR license Level: AIR DNA Advantage


Smart Licensing Status: Registration Not Applicable/Not Applicable

cisco C9300-24T (X86) processor with 1317372K/6147K bytes of memory.
Processor board ID CFA21226FJC
1 Virtual Ethernet interface
28 Gigabit Ethernet interfaces
8 Ten Gigabit Ethernet interfaces
2 TwentyFive Gigabit Ethernet interfaces
2 Forty Gigabit Ethernet interfaces
2048K bytes of non-volatile configuration memory.
8388608K bytes of physical memory.
1638400K bytes of Crash Files at crashinfo:.
11264000K bytes of Flash at flash:.

Base Ethernet MAC Address          : c0:f8:7f:62:1a:12
Motherboard Assembly Number        : 73-19911-04
Motherboard Serial Number          : CFA21226FJC
Model Revision Number              : N0
Motherboard Revision Number        : A0
Model Number                       : C9300-24T
System Serial Number               : FCR21125JCF
CLEI Code Number                   : 


Switch Ports Model              SW Version        SW Image              Mode   
------ ----- -----              ----------        ----------            ----   
*    1 41    C9300-24T          17.06.02          CAT9K_IOSXE           INSTALL


Switch_9300#

4.- show inventory

Se utiliza en los switches Cisco para mostrar la información detallada sobre el hardware instalado en el switch. El resultado del comando mostrará una lista detallada de los componentes físicos instalados en el switch, como la información sobre el nombre del módulo, número de serie, versión del firmware, tipo de hardware, etc.

Switch_9300#show inventory 
NAME: "c93xx Stack", DESCR: "c93xx Stack"
PID: C9300-24T         , VID: V05  , SN: FCA1241275C

NAME: "Switch 1", DESCR: "C9300-24T"
PID: C9300-24T         , VID: V05  , SN: FCA1241275C

NAME: "Switch 1 - Power Supply A", DESCR: "Switch 1 - Power Supply A"
PID: PWR-C1-350WAC-P   , VID: V02  , SN: FCA1241275C

NAME: "Switch 1 FRU Uplink Module 1", DESCR: "8x10G Uplink Module"
PID: C9300-NM-8X       , VID: V03  , SN: FCA1241275C

NAME: "Te1/1/1", DESCR: "1000BaseLX SFP"
PID:                     , VID:      , SN: FCA1241275C     

Switch_9300#

Comandos de Troubleshooting en Switch Cisco – CPU y Memoria

1.- show processes cpu history

Se utiliza en los switches Cisco para mostrar el historial de utilización de la CPU del switch. Este comando es útil para identificar qué procesos están consumiendo más recursos del procesador y para realizar un seguimiento del uso de la CPU a lo largo del tiempo.

El resultado del comando mostrará un gráfico que representa el uso de la CPU a lo largo del tiempo, con una línea para cada uno de los procesos principales que están utilizando la CPU en ese momento. El eje vertical del gráfico muestra el porcentaje de utilización de la CPU y el eje horizontal muestra el tiempo en minutos u horas.

Es importante tener en cuenta que este comando solo muestra el historial de utilización de la CPU y no proporciona información sobre la memoria, el tráfico de red u otros recursos del switch. Además, la salida del comando puede variar según el modelo de switch y la versión de IOS que se esté utilizando.

Switch_9300#show processes cpu history 
                                                                  
                                                                  
                                                                  
      555777774444455555666666666633333666668888855555444446666677
      888777773333344444666668888899999444440000022222000004444455
  100                                                           
   90                                                           
   80    *****                              *****               
   70    *****          **********          *****               
   60 ********          **********     **********          *****
   50 ********     ***************     ***************     *****
   40 **********************************************************
   30 **********************************************************
   20 **********************************************************
   10 **********************************************************
     0....5....1....1....2....2....3....3....4....4....5....5....6
               0    5    0    5    0    5    0    5    0    5    0
               CPU% per second (last 60 seconds)

                                                                  
                                                                  
                                                                  
      878787878777778887887778778777877788877888878777778877877788
      093728470688752108019861780888198921195321485863773067068725
  100                                                           
   90                                             *             
   80 *********************************************** **********
   70 **********************************************************
   60 ##########################################################
   50 ##########################################################
   40 ##########################################################
   30 ##########################################################
   20 ##########################################################
   10 ##########################################################
     0....5....1....1....2....2....3....3....4....4....5....5....6
               0    5    0    5    0    5    0    5    0    5    0
               CPU% per minute (last 60 minutes)
              * = maximum CPU%   # = average CPU%

                                                                              
                                                                              
                                                      11                      
      888888888888888888888888888888888888888888888888008888888888888888888888
      565825643553764454567567565434372353373365577467009456536746557558667758
  100                                                 **                    
   90 **** **  ** **  * *********    *  *  *  ***** ***** *** ** ***********
   80 **********************************************************************
   70 *************************************************#********************
   60 #################################*####################################
   50 ######################################################################
   40 ######################################################################
   30 ######################################################################
   20 ######################################################################
   10 ######################################################################
     0....5....1....1....2....2....3....3....4....4....5....5....6....6....7..
               0    5    0    5    0    5    0    5    0    5    0    5    0  
                   CPU% per hour (last 72 hours)
                  * = maximum CPU%   # = average CPU%


Switch_9300#

2.- show memory summary

Se utiliza en los switches Cisco para mostrar un resumen de la memoria del switch. Este comando es útil para identificar la cantidad de memoria disponible en el switch y cómo se está utilizando.

El resultado del comando mostrará un resumen de la memoria disponible en el switch, incluyendo información sobre la memoria total, la memoria libre, la memoria utilizada por el sistema y la memoria utilizada por los procesos.

Switch_9300#show memory summary 
Tracekey : 1#6acc00ce36a5abe07a705dcea0888902  

                Head    Total(b)     Used(b)     Free(b)   Lowest(b)  Largest(b)
Processor  7FCE7D475048   1348850620   373883816   974966804   970157644   970347112
reserve P  7FCE7D4750A0      102404          92      102312      102312      102312
 lsmpi_io  7FCE66F7A1A8     6295128     6294304         824         824         412
.
.
.
Switch_9300#

Deja un comentario

Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados con *

Scroll al inicio