To list the vCenter Server Appliance services using the command-line:
- Log in as root through an SSH or console session on the vCenter Server Appliance.
- Run this command to enable the shell (Note: This command is applicable only for vCenter Server Appliance 6.0):
shell.set --enabled true
- Run this command to launch the shell (Note: This command is applicable if you are in Appliance shell) :
shell
- Run this to change directories to /bin:
cd /bin
- Run this command to list the vCenter Server Appliance services:
service-control --list
- To view the current status of the vCenter Server Appliance services, type the command:
service-control --status
To start the vCenter Server Appliance service if it is was stopped using the vSphere Web Client:
- Log in to the vSphere Web Client with a vCenter Single Sign-on administrator account.
- Navigate to Administration > Deployment > System Configuration.
- Click Nodes, select the vCenter Server Appliance node and click the Related Objects tab.
- Right-click on the service you would like to start and select Start.
To start the vCenter Server Appliance service if it is was stopped using the command-line:
- Log in as root through an SSH or console session on the vCenter Server Appliance.
- Run this command to enable the shell (Note: This command is applicable only for vCenter Server Appliance 6.0):
shell.set --enabled true - Run this command to launch the shell (Note: This command is applicable if you are in Appliance shell):
shell - Run this command to change directories to /bin:
cd /bin
- Run this command to list the vCenter Server Appliance services:
service-control --list
- Run this command to start a specific service:
service-control --start servicename
- You may also start all services by typing the command:
service-control --start --all
- To perform a dry run of the command, add the option --dry-run to the command. This will display what actions the command will run without executing the actions. For example, type the command:
Note: This step is valid for vCSA 6.0 only.
service-control --start --all --dry-run
service-control --start --all --dry-run
Stopping the vCenter Server Appliance services
To stop a vCenter Server Appliance service if it was started using the vSphere Web Client:
- Log in to the vSphere Web Client with a vCenter Single Sign-on administrator account.
- Navigate to Administration > Deployment > System Configuration.
- Click Nodes, select the vCenter Server Appliance node and click the Related Objects tab.
- Right-click on the service you would like to stop and select Stop.
To stop the vCenter Server Appliance service if it is was started using the command-line:
- Log in as root through an SSH or console session on the vCenter Server Appliance.
- Run this command to enable the shell (Note: This command is applicable only for vCenter Server Appliance 6.0):
shell.set --enabled true - Run this command to launch the shell (Note: This command is applicable if you are in Appliance shell):
shell - Run this command to change directories to /bin:
cd /bin
- Run this command to list the vCenter Server Appliance services:
service-control --list
- Run this command to stop a specific service:
service-control --stop servicename
- You may also stop all services by typing the command:
service-control --stop --all
- To perform a dry run of the command, add the option --dry-run to the command. This will display what actions the command will run without executing the actions. For example, type the command:
Note: This step is valid for vCSA 6.0 only.
service-control --stop --all --dry-run
Restarting vCenter Server and/or Platform Services Controller services
To restart a vCenter Server Appliance service using the vSphere Web Client:
- Log in to the vSphere Web Client with a vCenter Single Sign-on administrator account.
- Navigate to Administration > Deployment > System Configuration.
- Click Nodes, select the vCenter Server Appliance node and click the Related Objects tab.
- Right-click on the service you want to restart and select Restart.
To restart a vCenter Server and/or Platform Services Controller service using the command-line:
- Log in as root through an SSH or console session on the vCenter Server Appliance.
- Run this command to enable the shell (Note: This command is applicable only for vCenter Server Appliance 6.0):
shell.set --enabled true - Run this command to launch the shell (Note: This command is applicable if you are in Appliance shell):
shell - Run this command to change directories to /bin:
cd /bin
- Run this command to list the vCenter Server Appliance services:
service-control --list
- Run this command to stop a specific service:
service-control --stop servicename
- You may also stop all services by typing the command:
service-control --stop --all
- Run this command to start a specific service:
service-control --start servicename
- You may also start all services by typing the command:
service-control --start --all