Stopping, starting, or restarting services in vCenter Server Appliance 6.5
search cancel

Stopping, starting, or restarting services in vCenter Server Appliance 6.5

book

Article ID: 328099

calendar_today

Updated On:

Products

VMware vCenter Server

Issue/Introduction

This article provides information on how to manage vCenter server appliance using the service-control command. This can be accessed through the Appliance Shell or BASH Shell.

Environment

VMware vCenter Server 6.5

Resolution

Service-control
 
To view the available commands, run the service-control --help command:

# service-control --help
usage: service-control [-h] [--start] [--stop] [--status] [--list] [--list-services] [--vmon-profile VMON_PROFILE] [--all] [--ignore] ...


Perform operation on VMware services. By default, the services selected are based on current startup profile.
This can be overridden by using --all and --vmon-profile options.

Positional arguments:
services services on which to operate optional arguments:
 
ArgumentsDescription
-h,--helpshow Help message and exit
--startPerform Start operation on VMware services
--stopPerform stop operation VMware services
--statusGet running status of VMware services
--list
List all controllable VMware services
Note: This option will soon be deprecated. Only use --list-services.
--list-servicesLists all controllable VMware services
--vmon-profile VMON_PROFILE
--allServices associated with given profile name. Start/Stop all VMware services that is core and the default mgmt services
--ignoreIgnore errors. Continue with given operation even if errors occur.

 
 
 
To list the services installed on the vCenter Server Appliance 6.5, run the service-control --list-services command:
 
# 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 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
 
To query the same but for an individual service, run the service-control --status service_name command:
 
# service-control --status vmware-cm
 

Running: vmware-cm

 
To stop an individual VMware service, run the service-control --stop service_name command:
 
# service-control --stop vmware-cm
 
To start an individual VMware service, run the service-control --start service_name command:
 
# service-control --start vmware-cm
 
To stop all the VMware services, run the service-control --stop --all command:
 
# service-control --stop --all
 
To start all the VMware services, run the service-control --start --all command:
 
# service-control --start --all
 
Note: There is no service-control --restart command.
 
Photon OS
 
For Photon OS service manipulation, use the following commands instead of their SLES counterparts. These commands must be used from the BASH Shell.
 
Photon OS CommandsSLES Commands
systemctl start <service>service <service> start
systemctl stop <service>service <service> stop
systemctl restart <service>service <service> restart
systemctl reload <service>service <service> reload
systemctl condrestart <service>service <service> condrestart
systemctl status <service>service <service> status
systemctl enable <service>chkconfig <service> on
systemctl disable <service>chkconfig <service> off
systemctl daemon-reloadchkconfig <service> --add
systemctl list-units --type service --allchkconfig --list <service name>
systemctl is-enabled <service>chkconfig --list vmware-tools-services


Additional Information