Due to any issue if you are unable to run service-control command on vCenter then use vMon-cli as alternate.
This command is available in windows as well as appliance based vCenter.

vmon-cli usage:

To check the startup type / status of any service  you can run below command:

 ====================
 root@vcsa67 [ /usr/lib/vmware-vmon ]# vmon-cli -s netdumper
 Name: netdumper
 Starttype: MANUAL
 RunState: STOPPED
 RunAsUser: netdumper
 CurrentRunStateDuration(ms): 951096147
 HealthState: UNHEALTHY
 FailStop: FALSE
 MainProcessId: N/A
 root@vcsa67 [ /usr/lib/vmware-vmon ]# 
 ==================== 

To change the startup type of the service from MANUAL to AUTOMATIC:

====================
 root@vcsa67 [ /usr/lib/vmware-vmon ]# vmon-cli  -S AUTOMATIC -U  netdumper
 Completed Service State Update request.
 root@vcsa67 [ /usr/lib/vmware-vmon ]# vmon-cli -s netdumper
 Name: netdumper
 Starttype: AUTOMATIC
 RunState: STOPPED
 RunAsUser: netdumper
 CurrentRunStateDuration(ms): 951200958
 HealthState: UNHEALTHY
 FailStop: FALSE
 MainProcessId: N/A
 root@vcsa67 [ /usr/lib/vmware-vmon ]#
 ==================== 

Similarly you can stop / start all vCenter service or start/stop single service using vmon-cli.

Advertisement