Use the cell command of the cell management tool to suspend the task scheduler so that new tasks cannot be started, to check the status of active tasks, to control cell maintenance mode, and to shut down the cell gracefully.

To manage a cell, use a command line with the following form:
cell-management-tool -u sysadmin-username -p sysadmin-password cell command
Username of a vCloud Director system administrator.
Password of the vCloud Director system administrator.

You can supply the vCloud Director system administrator password on the cell-management-tool command line, but it is more secure to omit the password. This causes the cell-management-tool to prompt for the password, which it does not display on the screen as you type.

cell subcommand.
Table 1. Cell Management Tool Options and Arguments, cell Subcommand
Command Argument Description
--help (-h) None Provides a summary of available commands in this category.
--maintenance (-m) true or false Controls cell maintenance mode. The argument true puts the cell into maintenance mode. (You must quiesce the cell first.) The argument false releases the cell from maintenance mode.
--quiesce (-q) true or false Quiesces activity on the cell. The argument true suspends the scheduler. The argument false restarts the scheduler.
--shutdown (-s) None Shuts down vCloud Director services on the server.
--status (-t) None Displays information about the number of tasks running on the cell and the status of the cell.
--status-verbose (-tt) None Displays verbose information about the tasks running on the cell and the status of the cell.

Getting Task Status

The following cell-management-tool command line supplies system administrator credentials and returns the count of running tasks. When the Job count value is 0 and the Is Active value is false, you can safely shut down the cell.
[root@cell1 /opt/vmware/vcloud-director/bin]# ./cell-management-tool -u administrator cell --status
Job count = 3
Is Active = true
In Maintenance Mode = false