January 26, 2018

useful basic commands in VCSA 6.5 - Part I

Check the version of VCSA 6.5
root@VCS01 [ ~ ]# vpxd -v
VMware VirtualCenter 6.5.0 build-7515524

List running services in VCSA 6.5
root@VCS01 [ ~ ]# service-control --status
Running:
 applmgmt lwsmd pschealth vmafdd vmcad vmdird vmdnsd vmonapi vmware-cis-license vmware-cm vmware-content-library vmware-eam vmware-perfcharts vmware-psc-client vmware-rhttpproxy vmware-sca vmware-sps vmware-statsmonitor vmware-sts-idmd vmware-stsd vmware-updatemgr vmware-vapi-endpoint vmware-vmon vmware-vpostgres vmware-vpxd-svcs vmware-vsan-health vmware-vsm vsphere-client vsphere-ui
Stopped:
 vmcam vmware-imagebuilder vmware-mbcs vmware-netdumper vmware-rbd-watchdog vmware-vcha vmware-vpxd

list available services in VCSA 6.5

root@VCS01 [ ~ ]# service-control --list
vmware-vpostgres (VMware Postgres)
vmware-imagebuilder (VMware Image Builder Manager)
vmware-cm (VMware Component Manager)
vmware-vpxd (VMware vCenter Server)
vmware-sps (VMware vSphere Profile-Driven Storage Service)
applmgmt (VMware Appliance Management Service)
vmware-statsmonitor (VMware Appliance Monitoring Service)
vmware-rhttpproxy (VMware HTTP Reverse Proxy)
vmware-vapi-endpoint (VMware vAPI Endpoint)
vmware-stsd (VMware Security Token Service)
lwsmd (Likewise Service Manager)
vmafdd (VMware Authentication Framework)
vmware-psc-client (VMware Platform Services Controller Client)
vmware-vsm (VMware vService Manager)
vmonapi (VMware Service Lifecycle Manager API)
vmware-perfcharts (VMware Performance Charts)
vmware-updatemgr (VMware Update Manager)
vmware-vmon (VMware Service Lifecycle Manager)
vmware-vsan-health (VMware VSAN Health Service)
vsphere-client (VMware vSphere Web Client)
vmware-sts-idmd (VMware Identity Management Service)
vmcad (VMware Certificate Service)
vmware-eam (VMware ESX Agent Manager)
vmware-cis-license (VMware License Service)
vmcam (VMware vSphere Authentication Proxy)
pschealth (VMware Platform Services Controller Health Monitor)
vmdird (VMware Directory Service)
vmware-mbcs (VMware Message Bus Configuration Service)
vmware-vcha (VMware vCenter High Availability)
vsphere-ui (VMware vSphere Client)
vmware-content-library (VMware Content Library Service)
vmdnsd (VMware Domain Name Service)
vmware-sca (VMware Service Control Agent)
vmware-netdumper (VMware vSphere ESXi Dump Collector)
vmware-vpxd-svcs (VMware vCenter-Services)
vmware-rbd-watchdog (VMware vSphere Auto Deploy Waiter)

Check specific service status 
 root@VCS01 [ ~ ]# service-control --status vmware-vpxd-svcs
Running:
 vmware-vpxd-svcs

Start Specific service
root@VCS01 [ ~ ]# service-control --start vmware-vpxd-svcs
Running:
 vmware-vpxd-svcs

Stop Specific service
root@VCS01 [ ~ ]# service-control --stop vmware-vpxd-svcs
Running:
 vmware-vpxd-svcs

Stop all service
root@VCS01 [ ~ ]# service-control --stop all
Running:
 vmware-vpxd-svcs

Start all service
root@VCS01 [ ~ ]# service-control --start all
Running:
 vmware-vpxd-svcs