os:esxi:vcsa
This is an old revision of the document!
Table of Contents
VCSA
CLI
Show Services
root@vcenter [ ~ ]# service-control --list vmware-statsmonitor (VMware Appliance Monitoring Service) vmware-vpxd-svcs (VMware vCenter-Services) vmdnsd (VMware Domain Name Service) vmware-vsan-health (VMware VSAN Health Service) vmware-sca (VMware Service Control Agent) vmware-cis-license (VMware License Service) vmware-sps (VMware vSphere Profile-Driven Storage Service) vmware-vmon (VMware Service Lifecycle Manager) applmgmt (VMware Appliance Management Service) vsan-dps (VMware VSAN Data Protection Service) vsphere-client (VMware vSphere Web Client) vmware-vsm (VMware vService Manager) pschealth (VMware Platform Services Controller Health Monitor) vmware-vpostgres (VMware Postgres) vmware-vpxd (VMware vCenter Server) vmware-rhttpproxy (VMware HTTP Reverse Proxy) vmware-netdumper (VMware vSphere ESXi Dump Collector) vmware-perfcharts (VMware Performance Charts) vmware-cm (VMware Component Manager) vmonapi (VMware Service Lifecycle Manager API) vmware-analytics (VMware Analytics Service) vmware-postgres-archiver (VMware Postgres Archiver) vmware-stsd (VMware Security Token Service) vmware-vapi-endpoint (VMware vAPI Endpoint) vmware-sts-idmd (VMware Identity Management Service) vmdird (VMware Directory Service) lwsmd (Likewise Service Manager) vmware-mbcs (VMware Message Bus Configuration Service) vmware-updatemgr (VMware Update Manager) vmware-vcha (VMware vCenter High Availability) vmware-content-library (VMware Content Library Service) vsphere-ui (VMware vSphere Client) vmware-pod (VMware Patching and Host Management Service) vmware-eam (VMware ESX Agent Manager) vmcam (VMware vSphere Authentication Proxy) vmcad (VMware Certificate Service) vmware-imagebuilder (VMware Image Builder Manager) vmware-rbd-watchdog (VMware vSphere Auto Deploy Waiter) vmafdd (VMware Authentication Framework)
Start/Stop Services
Stop
service-control --stop vsphere-ui
Start
service-control --start vsphere-ui
Show Service Starttype
vmon-cli doesn't use the same service names like service-control. Get the names with vmon-cli -l
root@vcenter [ ~ ]# vmon-cli -s analytics Name: analytics Starttype: DISABLED RunState: STOPPED RunAsUser: root CurrentRunStateDuration(ms): 6055122 HealthState: UNHEALTHY FailStop: FALSE MainProcessId: N/A
Change Service Start Type
Automatic start
root@vcenter [ ~ ]# vmon-cli -U content-library -S AUTOMATIC Completed Service State Update request.
Disable start
root@vcenter [ ~ ]# vmon-cli -U content-library -S DISABLED Completed Service State Update request.
Optimize VCSA for Labs
Use this only in labs and only if you know what you are doing
Stop & disable some services.
- analytics/vmware-analytics (VMware Analytics Service)
- updatemgr/vmware-updatemgr (VMware Update Manager)
- vsan-health/vmware-vsan-health (VMware VSAN Health Service)
- content-library/vmware-content-library (VMware Content Library Service)
- rbd/vmware-rbd-watchdog (VMware vSphere Auto Deploy Waiter)
- perfcharts/vmware-perfcharts (VMware Performance Charts)
Disable services.
for svc in analytics updatemgr vsan-health content-library rbd; do echo -n "${svc}: "; vmon-cli -U ${svc} -S DISABLED; done
Check if services are disabled:
root@vcenter [ ~ ]# for svc in analytics updatemgr vsan-health content-library rbd perfcharts; do echo -n "${svc}: "; vmon-cli -s ${svc} | awk '/Starttype/{print $2}'; done analytics: DISABLED vsan-dps: MANUAL netdumper: MANUAL updatemgr: DISABLED vsan-health: DISABLED content-library: DISABLED rbd: DISABLED perfcharts: AUTOMATIC
Stop services.
for svc in vmware-analytics vsan-dps vmware-netdumper vmware-updatemgr vmware-vsan-health vmware-content-library vmware-rbd-watchdog vmware-perfcharts; do echo -n "${svc}: "; service-control --stop ${svc} | head -n 1; done
Check if services are stopped:
root@mfr-vc00 [ ~ ]# for svc in vmware-analytics vsan-dps vmware-netdumper vmware-updatemgr vmware-vsan-health vmware-content-library vmware-rbd-watchdog vmware-perfcharts; do echo -n "${svc}: "; service-control --status ${svc} | head -n 1; done vmware-analytics: Stopped: vsan-dps: Stopped: vmware-netdumper: Stopped: vmware-updatemgr: Stopped: vmware-vsan-health: Stopped: vmware-content-library: Stopped: vmware-rbd-watchdog: Stopped: vmware-perfcharts: Running:
os/esxi/vcsa.1541447310.txt.gz · Last modified: 2018-11-05 20:48 by root