VCD10.5より環境変数やDB接続のショートカットなどが追加され、トラブルシューティングが簡単にできるようになった。
# env | grep VCLOUD VCLOUD_VAMI_LOGS=/opt/vmware/var/log/vami VCLOUD_JAVA_HOME=/opt/vmware/vcloud-director/jre VCLOUD_LOGS=/opt/vmware/vcloud-director/logs VCLOUD_JAVA=/opt/vmware/vcloud-director/jre/bin/java VCLOUD_HOME=/opt/vmware/vcloud-director VCLOUD_ETC=/opt/vmware/vcloud-director/etc VCLOUD_DATA_TRANSFER=/opt/vmware/vcloud-director/data/transfer VCLOUD_MAX_FD=65535 VCLOUD_VAR_LOGS=/opt/vmware/var/log # env | grep VMWARE VMWARE_POSTGRES_DATA=/var/vmware/vpostgres/current/pgdata VMWARE_POSTGRES_XLOG=/var/vmware/vpostgres/10-xlog/pg_xlog VMWARE_POSTGRES_VMON_GROUP=vpgmongrp VMWARE_POSTGRES_BACKUP=/var/vmware/vpostgres/10-archive/backup VMWARE_POSTGRES_DATA_BASE=/var/vmware/vpostgres VMWARE_POSTGRES_SCRIPTS=/opt/vmware/vpostgres/current/scripts VMWARE_POSTGRES_MOUNT_ARCHIVE=/var/vmware/vpostgres/10-archive VMWARE_POSTGRES_BIN=/opt/vmware/vpostgres/current/bin VMWARE_POSTGRES_ETC=/opt/vmware/vpostgres/current/etc VMWARE_POSTGRES_DB_ADMIN=postgres VMWARE_POSTGRES_ARCHIVE=/var/vmware/vpostgres/10-archive/archive VMWARE_POSTGRES_DATA_LOGS=/var/vmware/vpostgres/current/pgdata/log VMWARE_POSTGRES_BASE=/opt/vmware/vpostgres/current VMWARE_POSTGRES_LOG=/var/vmware/vpostgres/log VMWARE_POSTGRES_ROOT=/opt/vmware/vpostgres VMWARE_POSTGRES_MOUNT_DATA=/var/vmware/vpostgres/10 VMWARE_POSTGRES_MOUNT_XLOG=/var/vmware/vpostgres/10-xlog VMWARE_POSTGRES_OS_ADMIN=postgres
ショートカット
# cmt --help usage: cell-management-tool -h,--help print this message Available commands: cassandra - Enables configuration of Cassandra settings cell - Manipulates the Cell and core components cell-application - Manages applications running on the cell cell-txm - Monitors DB pending transactions. certificates - Reconfigures the SSL certificates for the cell. ciphers - Reconfigure the list of disallowed SSL ciphers for the cell clear-console-proxy-settings - Clear all specific network settings related to legacy console proxy implementation. configure-audit-syslog - Configure the Syslog server for Audit events configure-autoscale - Configure Autoscale extension configure-ceip - Configure participation in the Customer Experience Improvement Program ("CEIP") configure-metrics - DEPRECATED. Use the cell-management-tool cassandra subcommand to configure a metrics database. You can continue to use the configure-metrics subcommand to configure the set of metrics being collected. Collects and stores properties necessary for collecting and querying metrics data. create-rights-bundle - Creates a rights bundle containing the rights presently assigned to any publish-all roles db-metadata-collector - extract query results useful for determining performance bottleneck. debug-auto-import - Debugs why the given VM is not getting discovered for auto import. detect-rp-mismatches - This command detects resource pool mismatches for VDC and PVDC between vCD tables, and VC inventory tables. edge-ip-allocation-updates - This command allocates assigned IP address to the NSX Edge's uplink vnic. VCD assumes that all assigned IP address have been properly allocated and this command ensures all deployed edges are compliant with this requirement. env-check - Extract environment information export-audit-events - Export audit events from old audit_event table between the specified dates to a csv file fail-tasks - Mark all in-flight jobs, tasks, activities and terminated and clear all object locks. find-db-anomalies - This command detects anomalies in VCD datbase. find-orphan-vms - Enables a vCenter administrator to find all VMs in vCenter that have no reference from vCD fips-status - Report FIPS information for active cells fix-scheduler-data - Scan database for corrupt scheduler data. Fix scheduler job data if corrupt. generate-certs - Generates self-signed SSL certificates for use with vCD cell import-trusted-certificates - Import PEM certificates into Java truststore. inventory-collector - extract inventory information jms-certificates - Create or import Cloud Director Internal Root CA certificate and regenerate cells ActiveMQ broker certificates. mac-address-management - Regenerates all MAC addresses for the server group using a given seed, retaining the ones in use at the time the command is run. manage-config - Update application configuration manage-email - Update email override configuration manage-test-connection-denylist - Add, remove, and list denylisted connection specifications used by the test-connection API and the OpenID Connect identity provider configuration retrieval API. reconfigure-database - Reconfigures the cell's database connection info. This command may be used to update connection info for the current database or connect to a different migrated database. recover-password - Change a forgotten System Administrator password. Database credentials are required remove-legacy-rights-bundles - Remove the legacy rights bundles from all tenants, enabling the new RBAC functionality available in 9.5 ssl-protocols - Reconfigure the list of disallowed SSL protocols for the cell support - Manipulates the Cell and core components system-setup - Performs one-time system setup of the server group. trust-infra-certs - Command to inspect and trust all infrastructure certificates. Note that proxied VC is not supported. For command specific help: cell-management-tool <commandName> -h # cell_pid 2723 # version Version - 10.5.0.9946 Build 22080476 Description - VMware vCloud Director # db psql.bin (14.7 (VMware Postgres 14.7.0-21567549 release)) Type "help" for help. vcloud=# vcloud=# \d