This section lists the specific options you can use with the SoS utility.
SoS Utility Help Options
sudo /opt/vmware/sddc-support/sos --option-nameEnter the vcf password when prompted.
| Option | Description |
|---|---|
|
|
Provides a summary of the available SoS utility options |
|
|
Provides the SoS utility's version number. |
SoS Utility VMware Cloud Foundation Summary Options
sudo /opt/vmware/sddc-support/sos --option-nameEnter the vcf password when prompted.
| Option | Description |
|---|---|
--get-vcf-summary |
Returns information about your Cloud Foundation system, including CEIP, domains and clusters, hosts, licensing, network pools, SDDC Manager, VCF services, and solutions (vRealize Log Insight, vRealize Automation, and so on). |
--get-vcf-tasks-summary |
Returns information about Cloud Foundation tasks, including the time the task was created and the status of the task. |
SoS Utility Generic Options
sudo /opt/vmware/sddc-support/sos --option-nameEnter the vcf password when prompted.
| Option | Description |
|---|---|
--ceip-tagging-get |
Returns setting for the VMware CEIP program. For information about the program, see Configuring Customer Experience Improvement Program. |
--ceip-tagging-set |
Enrolls your deployment in the CEIP program. |
--configure-sftp |
Configures SFTP for logs. |
--debug-mode |
Runs the SoS utility in debug mode. |
--domain-name DOMAINNAME |
Specify the name of the workload domain name on which the SoS operation is to be performed. To run the operation on all domains, specify
Note:
If you omit the --domain-name flag and domain name, the SoS operation is performed only on the management domain. |
--force |
Allows SoS operations to be formed while workflows are running.
Note: It is recommended that you do not use this option.
|
--history |
Displays the last 20 SoS operations performed. |
--ondemand-service |
Include this flag to execute commands on all ESXi hosts in a domain.
Warning: Contact VMware support before using this option.
|
--ondemand-service-json JSON file path |
Include this flag to execute commands in the JSON format on all ESXi hosts in a domain. For example, /opt/vmware/sddc-support/<JSON file name> |
--setup-json SETUPJSON |
Custom setup-json file for log collection. SoS prepares the inventory automatically based on the environment where it is running. If you want to collect logs for a pre-defined set of components, you can create a setup.json file and pass the file as input to SoS. A sample JSON file is available on the SDDC Manager appliance in the /opt/vmware/sddc-support/ directory. |
--skip-known-host-check |
Skips the specified check for SSL thumbprint for host in the known host. |
--zip |
Creates a zipped TAR file for the output. |
SoS Utility Options for Health Check
sudo /opt/vmware/sddc-support/sos --option-nameEnter the vcf password when prompted.
A green status indicates that the health is normal, yellow provides a warning that attention might be required, and red (critical) indicates that the component needs immediate attention.
| Option | Description |
|---|---|
--json-output-dir JSONDIR |
Outputs the results of any health check as a JSON file to the specified directory, JSONDIR. |
--certificate-health |
Verifies that the component certificates are valid (within the expiry date). |
--connectivity-health |
Performs a connectivity health check to inspect whether the different components of the system such as the ESXi hosts, Virtual Center Servers, Inventory Service VMs, Log Insight VM, NSX Manager VMs, PSC VMs, SDDC Manager VM can be pinged. |
--composability-infra-health |
Performs an API connectivity health check of the composable infrastructure. If no composable infrastructure exists, this flag is ignored. If found, the utility checks connectivity status through the composable infrastructure API, such as Redfish. |
--compute-health |
Performs a compute health check. |
--general-health |
Verifies ESXi entries across all sources, checks the Postgres DB operational status for hosts, checks ESXi for error dumps, and gets NSX Manager and cluster status. |
--get-host-ips |
Returns server information. |
--get-inventory-info |
Returns in a tabular format inventory details for the specified Cloud Foundation component, such as Platform Services ControllervCenter Server NSX, and ESXi. Optionally, add the flag |
--health-check |
Performs all available health checks. |
--ntp-health |
Verifies whether the time on the components is synchronized with the NTP server in the SDDC Manager appliance. It also ensures that the hardware and software timestamp of ESXi hosts are within 5 minutes of the SDDC Manager appliance. |
--password-health |
Returns the status of all current passwords, such as Last Changed Date, Expiry Date, and so on. |
--services-health |
Performs a services health check to confirm whether services within the Inventory Service VM and within SDDC Manager (like Lifecycle Management Server) are running. |
--storage-health |
Performs a check on the vSAN disk health of the ESXi hosts and vCenter clusters. Also runs proactive vSAN tests to verify the ability to create VMs within the vSAN disks. |
--run-vsan-checks |
Runs proactive vSAN tests to verify the ability to create VMs within the vSAN disks. |
SoS Utility Options for vSAN Stretched Clusters
./sos --option-name
| Option | Description |
|---|---|
--expand-stretch-cluster |
Add hosts to or replace a host in a vSAN stretch cluster. Used with --sc-domain --sc-cluster --sc-hosts --esxi-license-key. For example, --expand-stretch-cluster --sc-domain MGMT --sc-cluster SDDC-Cluster1 --sc-hosts esxi-9.vrack.vsphere.local, esxi-10.vrack.vsphere.local --esxi-license-key AAAAA-BBBBB-CCCCC-DDDDD-EEEEE. |
|
|
Shows all domains and clusters. |
|
|
Shows all free hosts. |
|
|
Create a vSAN stretch cluster. Used with --sc-domain --sc-cluster --sc-hosts --witness-host-fqdn --witness-vsan-ip --witness-vsan-cidr --esxi-license-key. For example, --stretch-vsan --sc-domain MGMT --sc-cluster SDDC-Cluster1 --sc-hosts esxi-5.vrack.vsphere.local,esxi-6.vrack.vsphere.local --witness-host-fqdn esxi-11.vrack.vsphere.local --witness-vsan-ip 10.0.12.96 --witness-vsan-cidr 10.0.12.0/24 --esxi-license-key AAAAA-BBBBB-CCCCC-DDDDD-EEEEE, where AAAAA-BBBBB-CCCCC-DDDDD-EEEEE is a valid ESXi license key. |
|
|
Specify the domain, SCDOMAIN, to use for stretched vSAN. For example, --sc-domain MGMT. |
|
|
Specify the cluster, SCCLUSTER, to use for stretched vSAN. For example, --sc-cluster SDDC-Cluster1. |
|
|
Specify the hosts, SCHOSTS, to use for stretched vSAN. For example, --sc-hosts esxi-5.vrack.vsphere.local,esxi-6.vrack.vsphere.local. |
|
|
Specify the fully qualified domain name, WITNESSHOSTFQDN, of the witness host. For example, --witness-host-fqdn esxi-11.vrack.vsphere.local . |
|
|
Specify the IP address, WITNESSHOSTVSANIP, of the witness host. For example, --witness-vsan-ip 10.0.12.96. |
|
|
Specify the Classless Inter-Domain Routing (CIDR) block, WITNESSHOSTVSANCIDR, of the witness host. For example, --witness-vsan-cidr 10.0.12.0/24. |
|
|
Specify the license key, ESXILICENSEKEY, to use for ESXi hosts. For example, --esxi-license-key AAAAA-BBBBB-CCCCC-DDDDD-EEEEE. |
SoS Utility Options for Fixing vSAN Partitions
./sos --option-name
| Option | Description |
|---|---|
|
|
Cleans up vSAN Partitions in ESXi hosts. Optionally, you can specify the ESXi hosts, by IP address, to run the vSAN cleanup. Use commas (with no spaces) to separate multiple IP addresses. |
SoS Utility Options for Managing ESXi Hosts
./sos --option-name
| Option | Description |
|---|---|
|
|
Performs clean-up on the specified, decommissioned ESXi hosts by passing the JSON. For example: |
|
|
Performs clean-up on all or specified dirty ESXi hosts.
Note:
A dirty host is a host that has been removed from a cluster in a workload domain. A dirty host cannot be assigned to another workload domain until it is cleaned up. |
|
|
Deactivates lockdown mode on ESXi nodes in the specified domains.
Note:
If you do not specify domain, this command affects only the MGMT domain by default. |
|
|
Enables lockdown mode on ESXi nodes in the specified domains.
Note:
If you do not specify domain, this command affects only the MGMT domain by default. |
|
|
Deactivate SSH on ESXi nodes in the specified domains.
Note:
If you do not specify domain, this command affects only the MGMT domain by default. |
|
|
Enables SSH on ESXi nodes in the specified domains.
Note:
If you do not specify domain, this command affects only the MGMT domain by default. |
SoS Utility Options for vRealize Suite Lifecycle Manager
./sos --option-name
| Option | Description |
|---|---|
|
|
Redeploys vRealize Suite Lifecycle Manager. Provides a taskID for the operation. |
|
|
Returns vRealize Suite Lifecycle Manager redeployment status for the specified taskID. |