VCSA CLI

Useful commands for the vCenter Server Appliance command line and shell. Only use in lab and never in production environment.

Working the VCSA command line (not shell!)

More details about vimtop: http://www.virtuallyghetto.com/2015/02/vimtop-esxtop-for-the-vcsa-6-0.html
Get VCSA version

Show VCSA health status

Get memory statistics (in kilobytes)

Show free space and space used

List all installed software

List all local users (vsphere.local domain)

Get details about local users

List all services

Check status of service

Working the VCSA shell

Disk usage, separate by subdir, show only 50MB+

Get password of vCenter postgres database

Login to vCenter postgres database

 

Complete process to remove stale datastore entries from vCenter postgres database (VCSA 5.5 and 6.0):

Back up and restore vCenter Server Appliance/vCenter Server 6.0 vPostgres database (2091961) –» Back Up the Embedded vCenter Server Appliance Database http://kb.vmware.com/kb/2091961

 

Complete process to remove stale VM locks (vMotion/Migrate is unavailable) entries from vCenter postgres database (VCSA 5.5 and 6.0):

Author: kimbo

Leave a Reply

Your email address will not be published. Required fields are marked *