Unlocking the Power of vSphere Diagnostic Tool

Hola a todos! En este artículo, exploraremos una herramienta muy interesante llamada vSphere Diagnostic Tool. Esta herramienta es un script de Python que ejecuta comandos de diagnóstico en vCenter Server Appliance, proporcionando datos útiles para la resolución de problemas.

La herramienta tiene varios Pass/Warning/Fail tests para facilitar rápidamente el aislamiento de los problemas encontrados en el entorno de vSphere. La herramienta no tiene requisitos complicados o complejos, y no es necesario modificar la vCenter Server Appliance de producción con binarios adicionales u otros enlaces en vCenter.

Para comenzar, descargamos la herramienta desde la página de VMware Flings. Subimos el archivo descargado por ejemplo usando WinSCP en nuestro vCenter Server. Nota: En caso de que tengamos problemas en subir el archivo a través de WinSCP a nuestro vCenter, podemos revisar el siguiente KB: Error when uploading files to vCenter Server Appliance using WinSCP.

Desempaquetamos el archivo con el siguiente comando:

“`bash

unzip vsphere_diagnostic_tool.zip

“`

Cambiamos a la carpeta y ejecutamos el script con el siguiente comando:

“`bash

python vsphere_diagnostic_tool.py

“`

Pulsamos “Y” y después agregamos las credenciales del usuario “administrator@vsphere.local”.

Ejemplo de la salida del comando:

“`txt

vCenter Basic Info:

vCenter Server Appliance Version: 6.5.0-12345

Build Number: 12345

ESXi Hostname: vsphere

ESXi IP Address: 192.168.1.100

ESXi Port: 443

vCenter Server UUID: b27d164f-b5c8-4a56-8e8a-be5685845c55

“`

As we can see, the tool provides a lot of information about our vCenter environment, including version numbers, build numbers, hostname, IP address, port, and UUID. If we have any failures or warnings in any of the checks, the tool provides information on how to resolve the issues, such as KB articles.

The tool is very useful for quickly reviewing the status of our vCenter environment and identifying potential problems. It is also helpful in isolating problems quickly and providing information on how to resolve them. We hope that this tool continues to incorporate new features and versions of vCenter or other VMware products.

We appreciate the community of VMware Flings for providing such excellent tools. We hope that this information can be helpful, and any questions or suggestions can be left in the comments. Thank you for reading!