vCenter administration: web interface, VCSA CLI, ports and practical tips!
VMware
Published on
Karl Certa Systems & network administrator5 years in IT, from support to sysadmin, now Ops. Learning cloud, and writing everything down here. Focused on IaC & cloud AWS SAA, Kubernetes next LinkedIn karlcerta.fr GitHub Karl Certa
vCenter Server is VMware’s central console that allows you to manage and monitor multiple ESXi hosts and their virtual machines from a single interface.
Via VAMI: https://vcenter:5480 > Access > Administrator
Via CLI (if root SSH access):
/usr/lib/vmware-vmafd/bin/dir-cli user reset-password \--login administrator --user-name[email protected]
Full vCenter backup
# Create the backup directorymkdir -p /backup/vcenter-$(date +%Y%m%d)# Start the backup/usr/lib/vmware-vmafd/bin/vmafd-cli backup \--path /backup/vcenter-$(date +%Y%m%d)/
vCenter services stuck
# Stop all servicesservice-control --stop --all# Wait a few secondssleep 10# Restart all servicesservice-control --start --all# Check statusservice-control --status --all
Check VCSA disk space
# Global checkdf -h# Logs space (clean if >80%)du -sh /var/log/vmware/# Database spacedu -sh /storage/db/
Important ports
443: vSphere Client (HTTPS)
5480: VAMI (vCenter Server Appliance Management Interface)
22: SSH
2012, 2014: SSO/Authentication
7444: vSphere Update Manager
Versions and releases
Action
Command/Link
Installed vCenter version
/usr/lib/vmware-vmon/java-wrapper-vmon (VCSA) or vSphere Client