Total Pageviews

Search This Blog

Copyright to Cloud TechNet organization . Powered by Blogger.

Pages

Blogger templates

Sunday, 24 February 2019

How to start/stop/list all Vcenter's Vmware services using commands


Hi,

In order to start Vmware services in a Vcenter, generally you will have to start all of them manually however, there are commands which can start/stop/list all services at once.

In VCenter server,
1.  Run command prompt using administrative privileges (Run as administrator).

2. Browse to  C:\Program Files\VMware\vCenter Server  \Bin\
excd C:\Program Files\VMware\vCenter Server\bin


3.  Run this command to list the vCenter Server and/or Platform Services Controller services:
ex: service-control --list  


4. Run this command to start all Vmware services:
ex: service-control --start --all  
Output:
C:\Program Files\VMware\vCenter Server\bin>service-control --start --all
Perform start operation. vmon_profile=ALL, svc_names=None, include_coreossvcs=Tr
ue, include_leafossvcs=True
2019-02-24T18:16:20.611Z   Service vmware-cis-config does not seem to be registe
red with vMon. If this is unexpected please make sure your service config is a v
alid json. Also check vmon logs for warnings.
2019-02-24T18:16:20.611Z   State for service vmware-cis-config: STOPPED
Successfully started service vmware-cis-config
2019-02-24T18:16:21.705Z   Service VMWareAfdService does not seem to be register
ed with vMon. If this is unexpected please make sure your service config is a va
lid json. Also check vmon logs for warnings.
2019-02-24T18:16:21.721Z   State for service VMWareAfdService: STOPPED
Successfully started service VMWareAfdService
2019-02-24T18:16:23.799Z   Service VMWareDirectoryService does not seem to be re
gistered with vMon. If this is unexpected please make sure your service config i
s a valid json. Also check vmon logs for warnings.
2019-02-24T18:16:23.799Z   State for service VMWareDirectoryService: STOPPED
Successfully started service VMWareDirectoryService
2019-02-24T18:16:26.893Z   Service VMWareCertificateService does not seem to be
registered with vMon. If this is unexpected please make sure your service config
 is a valid json. Also check vmon logs for warnings.
2019-02-24T18:16:26.893Z   State for service VMWareCertificateService: STOPPED
Successfully started service VMWareCertificateService
2019-02-24T18:16:28.986Z   Service VMwareIdentityMgmtService does not seem to be
 registered with vMon. If this is unexpected please make sure your service confi
g is a valid json. Also check vmon logs for warnings.
2019-02-24T18:16:28.986Z   State for service VMwareIdentityMgmtService: STOPPED
Successfully started service VMwareIdentityMgmtService
2019-02-24T18:16:38.158Z   Service VMwareSTS does not seem to be registered with
 vMon. If this is unexpected please make sure your service config is a valid jso
n. Also check vmon logs for warnings.
2019-02-24T18:16:38.174Z   State for service VMwareSTS: STOPPED
Successfully started service VMwareSTS
2019-02-24T18:16:43.299Z   Service VMwareDNSService does not seem to be register
ed with vMon. If this is unexpected please make sure your service config is a va
lid json. Also check vmon logs for warnings.
2019-02-24T18:16:43.299Z   State for service VMwareDNSService: STOPPED
Successfully started service VMwareDNSService
2019-02-24T18:16:44.361Z   Service vmware-psc-client does not seem to be registe
red with vMon. If this is unexpected please make sure your service config is a v
alid json. Also check vmon logs for warnings.
2019-02-24T18:16:44.361Z   State for service vmware-psc-client: STOPPED
Successfully started service vmware-psc-client
Successfully started vmon services. Profile ALL.

5.  Run this command to stop all VMware services:
ex: service-control --stop --all  
Output:
C:\Program Files\VMware\vCenter Server\bin>service-control --stop --all
Perform stop operation. vmon_profile=ALL, svc_names=None, include_coreossvcs=Tru
e, include_leafossvcs=True
2019-02-24T18:10:05.228Z   Service vmon does not seem to be registered with vMon
. If this is unexpected please make sure your service config is a valid json. Al
so check vmon logs for warnings.
2019-02-24T18:10:05.498Z   Service vmon does not seem to be registered with vMon
. If this is unexpected please make sure your service config is a valid json. Al
so check vmon logs for warnings.
2019-02-24T18:10:05.500Z   State for service vmon: STOP_PENDING
2019-02-24T18:10:15.521Z   Service vmon does not seem to be registered with vMon
. If this is unexpected please make sure your service config is a valid json. Al
so check vmon logs for warnings.
2019-02-24T18:10:15.523Z   State for service vmon: STOP_PENDING
2019-02-24T18:10:25.535Z   Service vmon does not seem to be registered with vMon
. If this is unexpected please make sure your service config is a valid json. Al
so check vmon logs for warnings.
2019-02-24T18:10:25.544Z   State for service vmon: STOPPED
2019-02-24T18:10:25.554Z   Successfully stopped service vmon
Successfully stopped vmon services. Profile ALL.
2019-02-24T18:10:25.607Z   Service vmware-psc-client does not seem to be registe
red with vMon. If this is unexpected please make sure your service config is a v
alid json. Also check vmon logs for warnings.
2019-02-24T18:10:25.616Z   State for service vmware-psc-client: RUNNING
Successfully stopped service vmware-psc-client
2019-02-24T18:10:35.678Z   Service VMwareDNSService does not seem to be register
ed with vMon. If this is unexpected please make sure your service config is a va
lid json. Also check vmon logs for warnings.
2019-02-24T18:10:35.685Z   State for service VMwareDNSService: RUNNING
Successfully stopped service VMwareDNSService
2019-02-24T18:10:35.734Z   Service VMwareSTS does not seem to be registered with
 vMon. If this is unexpected please make sure your service config is a valid jso
n. Also check vmon logs for warnings.
2019-02-24T18:10:35.738Z   State for service VMwareSTS: RUNNING
Successfully stopped service VMwareSTS
2019-02-24T18:10:45.814Z   Service VMwareIdentityMgmtService does not seem to be
 registered with vMon. If this is unexpected please make sure your service confi
g is a valid json. Also check vmon logs for warnings.
2019-02-24T18:10:45.830Z   State for service VMwareIdentityMgmtService: RUNNING
Successfully stopped service VMwareIdentityMgmtService
2019-02-24T18:10:55.955Z   Service VMWareCertificateService does not seem to be
registered with vMon. If this is unexpected please make sure your service config
 is a valid json. Also check vmon logs for warnings.
2019-02-24T18:10:55.971Z   State for service VMWareCertificateService: RUNNING
Successfully stopped service VMWareCertificateService
2019-02-24T18:11:06.049Z   Service VMWareDirectoryService does not seem to be re
gistered with vMon. If this is unexpected please make sure your service config i
s a valid json. Also check vmon logs for warnings.
2019-02-24T18:11:06.065Z   State for service VMWareDirectoryService: RUNNING
Successfully stopped service VMWareDirectoryService
2019-02-24T18:11:16.111Z   Service VMWareAfdService does not seem to be register
ed with vMon. If this is unexpected please make sure your service config is a va
lid json. Also check vmon logs for warnings.
2019-02-24T18:11:16.127Z   State for service VMWareAfdService: RUNNING
Successfully stopped service VMWareAfdService
2019-02-24T18:11:16.174Z   Service vmware-cis-config does not seem to be registe
red with vMon. If this is unexpected please make sure your service config is a v
alid json. Also check vmon logs for warnings.
2019-02-24T18:11:16.174Z   State for service vmware-cis-config: RUNNING
Successfully stopped service vmware-cis-config

Regards
Chaitanya

0 comments:

Post a Comment