VMware vCenter Server Appliance (VCSA) CLI

VMware vCenter Server Appliance (VCSA) CLI Cheatsheet #

VMware vCenter Server Appliance (VCSA) CLI provides commands to manage and configure the vCenter Server Appliance. These commands help administrators perform administrative tasks, configuration, and troubleshooting directly from the command line.

VCSA Appliance Management #

Command/OptionExampleDescription
vami-cli appliance updatevami-cli appliance updateCheck for and install available updates for VCSA
vami-cli appliance versionvami-cli appliance versionDisplay the current version of VCSA
vami-cli appliance backupvami-cli appliance backup create --backup-location <backup_path> --backup-description "Backup description"Create a backup of the VCSA
vami-cli appliance shutdownvami-cli appliance shutdownShut down the VCSA appliance
vami-cli appliance rebootvami-cli appliance rebootReboot the VCSA appliance

vCenter Server Service Management #

Command/OptionExampleDescription
service-control –statusservice-control --statusList the status of all vCenter Server services
service-control –startservice-control --start <service_name>Start a specific vCenter Server service
service-control –stopservice-control --stop <service_name>Stop a specific vCenter Server service
service-control –restartservice-control --restart <service_name>Restart a specific vCenter Server service

Network Configuration #

Command/OptionExampleDescription
vami-cli network ip showvami-cli network ip showDisplay the current IP address configuration
vami-cli network ip updatevami-cli network ip update --ip <ip_address> --netmask <netmask> --gateway <gateway>Update the IP address configuration
vami-cli network dns showvami-cli network dns showDisplay the current DNS configuration
vami-cli network dns updatevami-cli network dns update --primary-dns <primary_dns> --secondary-dns <secondary_dns>Update the DNS configuration

Authentication and User Management #

Command/OptionExampleDescription
vami-cli user listvami-cli user listList all local users on the VCSA
vami-cli user addvami-cli user add --username <username> --password <password>Add a new local user
vami-cli user deletevami-cli user delete --username <username>Delete a local user

Certificate Management #

Command/OptionExampleDescription
vami-cli cert showvami-cli cert showDisplay the current SSL certificate details
vami-cli cert importvami-cli cert import --cert <cert_path> --key <key_path>Import a new SSL certificate
vami-cli cert exportvami-cli cert export --output <output_path>Export the current SSL certificate

Backup and Restore #

Command/OptionExampleDescription
vami-cli backup createvami-cli backup create --backup-location <backup_path> --backup-description "Backup description"Create a backup of the VCSA
vami-cli backup listvami-cli backup list --backup-location <backup_path>List available backups at the specified location
vami-cli backup restorevami-cli backup restore --backup-location <backup_path> --backup-name <backup_name>Restore the VCSA from a backup

Logging and Troubleshooting #

Command/OptionExampleDescription
vami-cli log listvami-cli log listList all log files
vami-cli log showvami-cli log show --log <log_name>Display the contents of a specific log file
vami-cli log downloadvami-cli log download --log <log_name> --output <output_path>Download a specific log file
vami-cli support bundle createvami-cli support bundle create --output <output_path>Create a support bundle for troubleshooting

This cheatsheet covers the most commonly used VMware vCenter Server Appliance (VCSA) CLI commands and options, helping you to manage the appliance, configure network settings, handle authentication, manage certificates, perform backups and restores, and troubleshoot effectively.

VMware vCenter Server Appliance (VCSA) CLI

Explore our comprehensive cheatsheets to enhance your knowledge and efficiency. Each cheatsheet provides detailed command options, examples, and descriptions to help you master various tools and technologies.