儲存格管理工具是可用於管理 VMware Cloud Director 儲存格或資料庫的命令列公用程式。大多數操作需要使用超級使用者或系統管理員認證。
儲存格管理工具安裝於 /opt/vmware/vcloud-director/bin/。您可以使用它來執行單一命令,也可以將其做為互動式 Shell 執行。
列出可用的命令
若要列出可用的儲存格管理工具命令,請使用下列命令列。
./cell-management-tool -h
使用 Shell 模式
透過不使用引數叫用儲存格管理工具 (如此處所示),您可以將其做為互動式 Shell 執行。
[root@cell1 /opt/vmware/vcloud-director/bin]#./cell-management-tool Cell Management Tool v8.14.0.4146350 Type "help" for available subcommands. cmt>處於 Shell 模式時,您可以在 cmt> 提示字元下輸入任何儲存格管理工具命令,如此範例所示。
cmt>cell -h
usage: cell [options]
-a,--application-states display the state of each application
on the cell [DEPRECATED - use the
cell-application command instead]
-h,--help print this message
-i,--pid <arg> the process id of the cell [REQUIRED
if username is not specified]
-m,--maintenance <arg> gracefully enter maintenance mode on
the cell
-p,--password <arg> administrator password [OPTIONAL]
-q,--quiesce <arg> quiesce activity on the cell
-s,--shutdown gracefully shutdown the cell
-t,--status display activity on the cell
-tt,--status-verbose display a verbose description of
activity on the cell
-u,--username <arg> administrator username [REQUIRED if
pid is not specified]
Note: You will be prompted for administrator password if not entered in command
line.
cmt>命令完成執行時會回到
cmt> 提示字元。若要結束 Shell 模式,請在
cmt> 提示字元下輸入
exit。
儲存格管理工具用法說明
此範例執行單一、非互動式命令,列出可用的 Shell 管理工具命令。
[root@cell1 /opt/vmware/vcloud-director/bin]# ./cell-management-tool -h usage: cell-management-tool -h,--help print this message Available commands: cell - Manipulates the Cell and core components certificates - Reconfigures the SSL certificates for the cell . . . For command specific help: cell-management-tool <commandName> -h
從 VMware Cloud Director 10.3 開始,若要針對無法存取 VMware Cloud Director 使用者介面進行疑難排解,您必須使用 https://{api_host}/cloudapi/1.0.0/site/settings/cors API 端點而非 CMT 命令。如需詳細資訊,請參閱〈針對無法存取 VMware Cloud Director 使用者介面進行疑難排解〉。