ToB企服应用市场:ToB评测及商务社交产业平台

标题: 【VMware VCF】使用 SoS 实用程序检查 VCF 环境的运行状态以及收集相干组件 [打印本页]

作者: 科技颠覆者    时间: 2024-10-4 17:46
标题: 【VMware VCF】使用 SoS 实用程序检查 VCF 环境的运行状态以及收集相干组件
VMware Cloud Foundation 办理方案中有一个叫 Supportability and Serviceability(SoS)可支持性和可维护性的实用程序,可能你在初始构建 VCF 管理域的时候使用过这个工具,当时使用这个工具在 VMware Cloud Builder 假造机中将用于部署的 VCF 管理域的 Excel 参数表转换为 JSON 格式的参数文件,详见“VMware Cloud Foundation Part 03:准备 Excel 参数表。”。同样,这个 SoS 程序也可以在 SDDC Manager 假造机中使用,并且具有更多实用的功能,比如在 VCF 环境中运行状态检查以及收集相干组件的日志等,下面一起来看看怎样使用它。
 
一、SoS 实用程序使用选项

通过 SSH 连接到 SDDC Manager 假造机,SoS 使用程序可以在如下图中的位置(/opt/vmware/sddc-support)找到它,你可以使用 --version 或 -v 命令选项查看当前 SoS 实用程序的版本。注意,使用 SoS 程序在执行某些功能选项的时候,可能须要 root 用户才气运行。
  1. sudo ./sos --version
复制代码

使用 --help 或 -h 命令查看 SoS 程序使用选项帮助。
  1. vcf@vcf-mgmt01-sddc01 [ /opt/vmware/sddc-support ]$ sudo ./sos --help
  2. [sudo] password for vcf
  3. usage:
  4.         ./sos [-h] [options]
  5.         #######################################################
  6.         #      Supportability and Serviceability Utility      #
  7.         #######################################################
  8.         # specify options in the conventional GNU/POSIX syntax,
  9.          " --" for long option and "-" for short option
  10.         
  11. options:
  12.   -h, --help            show this help message and exit
  13.   -v, --version         Displays SoS version
  14.   --history             Displays last 20 SoS log locations
  15.   --force               Allows performing SoS operations on SDDC Manager while workflows are running (not recommended)
  16.   --configure-sftp      Configure SFTP for logs
  17.   --setup-json SETUPJSON
  18.                         Custom setup-json file for log collection, Please check setup.sample.json for reference
  19.   --log-folder LOGFOLDER
  20.                         Name of the directory
  21.   --log-dir LOGDIR      Dump logs to given directory
  22.   --enable-stats        Enable SoS execution stats collection
  23.   --debug-mode          Debug mode
  24.   --zip                 Create a zipped tar file
  25.   --short               Display health results only for failures/warning
  26.   --domain-name DOMAINNAME
  27.                         Domain name on which SoS operation needs to be executed, use '--domain-name ALL' for all the
  28.                         domains (Default: MANAGEMENT). (Add --skip-cert-check options to include health-check for
  29.                         free/unassigned hosts)
  30.   --clusternames CLUSTERNAMES
  31.                         Cluster names associated with a domain which WCP/ESX logs needs to be collectedPass cluster names
  32.                         with comma seperated like '--clusternames cluster1,cluster2 ' for all the specific domains. If
  33.                         domain-name is ALL will ignore this option
  34.   --skip-known-host-check
  35.                         skip check for ssl thumbprint for host in known host
  36.   --include-precheck-report
  37.                         Includes pre-check report
  38.   --include-free-hosts  Collect ESX free hosts log bundle
  39. VCF Summary Options:
  40.   --get-vcf-summary     Display VCF Summary
  41.   --get-vcf-tasks-summary
  42.                         Display VCF Tasks Summary
  43.   --get-vcf-services-summary
  44.                         Display VCF Services Details
  45. Log Collections Options:
  46.   --esx-logs            Collect ESXi logs
  47.   --vc-logs             Collect vCenter Server logs
  48.   --sddc-manager-logs   Collect SDDC-Manager logs
  49.   --vxrail-manager-logs
  50.                         Collect VxRail-Manager logs(Applicable for VxRail)
  51.   --psc-logs            Collect PSC logs
  52.   --nsx-logs            Collect NSX logs
  53.   --wcp-logs            Collect Log WCP cluster logs
  54.   --vrealize-logs       [DEPRECATED] Collect VMware Aria (formerly vRealize) components logs
  55.   --automation-logs     Collect VMware Aria Automation support logs
  56.   --operations-for-logs
  57.                         Collect VMware Aria Operations for Logs support logs
  58.   --operations-logs     Collect VMware Aria Automation Operations support logs
  59.   --lifecycle-logs      Collect VMware Aria Suite Lifecycle support logs
  60.   --no-clean-old-logs   Do not clean old log folder
  61.   --test                Sanity test logs collected by verifying the files
  62.   --no-health-check     Skip Health Check executed as part of SoS log collection
  63.   --api-logs            Collect output from APIs
  64.   --vm-screenshots      Collect all VM screenshots
  65.   --system-debug-logs   Collect System logs to help debug in abnormal scenarios like memory leak
  66.   --collect-all-logs    Collect logs for all components, excluding WCP and system-debug-logs pass --domain-name
  67.                         DOMAINNAME, For all domains pass --domain-name ALL (Default: MANAGEMENT)
  68. Fix-It-Up Options:
  69.   --enable-ssh-esxi     Enable ssh on all esxi nodes in a domain, pass --domain-name DOMAINNAME, For all domains pass
  70.                         --domain-name ALL (Default: MANAGEMENT)
  71.   --disable-ssh-esxi    Disable ssh on all esxi nodes in a domain, pass --domain-name DOMAINNAME, For all domains pass
  72.                         --domain-name ALL , (Default: MANAGEMENT)
  73.   --enable-ssh-vc       Enable ssh on Vcenter in a domain, pass --domain-name DOMAINNAME, For all domains pass --domain-
  74.                         name ALL (Default: MANAGEMENT)
  75.   --disable-ssh-vc      Enable ssh on Vcenter in a domain, pass --domain-name DOMAINNAME, For all domains pass --domain-
  76.                         name ALL (Default: MANAGEMENT)
  77.   --enable-lockdown-esxi
  78.                         Enables Normal lockdown mode on all esxi nodes in a domain (Default Domain: MANAGEMENT domain), to
  79.                         enable pass --domain-name <DOMAINNAME> (or '--domain-name ALL' to include all the domains). Users
  80.                         can also perform this operation at cluster level per domain, pass --domain-name DOMAINNAME with
  81.                         --clusternames cluster1, cluster2
  82.   --disable-lockdown-esxi
  83.                         Disables Normal lockdown mode on all esxi nodes in a domain (Default Domain: MANAGEMENT domain),
  84.                         to disable pass --domain-name <DOMAINNAME> (or '--domain-name ALL' to include all the domains).
  85.                         Users can also perform this operation at cluster level per domain, pass --domain-name DOMAINNAME
  86.                         with --clusternames cluster1, cluster2
  87.   --ondemand-service ONDEMANDSERVICE
  88.                         Execute commands on ESXIs/VCENTERs/SDDC-Manager entities for a given domain, use --domain-name
  89.                         option(Default: MANAGEMENT). It requires <input>.yml file as input (Refer sample json:
  90.                         /opt/vmware/sddc-support/ondemand_command_sample.yml) (WARNING: Use this option cautiously as it
  91.                         can alter the state of SDDC and its components.)
  92.   --refresh-ssh-keys    Refresh SSH keys
  93. Health Check:
  94.   --health-check        Perform all available Health Checks
  95.   --connectivity-health
  96.                         Perform Connectivity Health Check
  97.   --services-health     Perform Services Health Check
  98.   --compute-health      Perform Compute Health Check
  99.   --storage-health      Perform Storage Health Check
  100.   --run-vsan-checks     Perform Storage Proactive Checks
  101.   --ntp-health          Perform NTP Health Check
  102.   --dns-health          Perform Forward and Reverse DNS Health Check
  103.   --general-health      Perform General Health Check
  104.   --certificate-health  Perform Certificate Health Check
  105.   --composability-infra-health
  106.                         Performs Composability infra Api connectivity check(if Composability infra found else skipped)
  107.   --get-host-ips        Get Server Information
  108.   --get-inventory-info  Get Inventory details for SDDC
  109.   --password-health     Check password expiry status
  110.   --hardware-compatibility-report
  111.                         Validates hosts and vsan devices and export the compatibility report
  112.   --version-health      This is an informational check. It shows version info of VCF BOM components in SDDC.
  113.   --json-output-dir JSONDIR
  114.                         Outputs health check results JSON file to given directory
  115. vcf@vcf-mgmt01-sddc01 [ /opt/vmware/sddc-support ]$
复制代码
可以在 sudo ./sos -- 后面使用 TAB 补全命令选项。

 
二、查看 VCF 环境摘要信息

使用 --get-vcf-summary 选项可查看 VCF 环境中的“设置”拽要信息,包括 CEIP、工作负载域、vSphere 集群、ESXi 主机、允许、网络池、SDDC Manager 和 VCF 服务等。
  1. vcf@vcf-mgmt01-sddc01 [ /opt/vmware/sddc-support ]$ sudo ./sos --get-vcf-summary
  2. [sudo] password for vcf
  3. Welcome to Supportability and Serviceability(SoS) utility!
  4. Summary : /var/log/vmware/vcf/sddc-support/summary-2024-10-04-04-57-36-8455
  5. Summary log : /var/log/vmware/vcf/sddc-support/summary-2024-10-04-04-57-36-8455/sos.log
  6. SDDC Manager%, Initiated SoS operation
  7. ╠══ SDDC Manager Status: ACTIVE
  8. ╠══ SDDC Version: 5.1.0.0-22688368
  9. ╠══ SDDC Manager Id: d1b827d1-f6fd-49d5-9c5c-7b21ffaa5222
  10. ╠══ Total No of Domains: 1
  11. ╠══ Total No of Clusters: 1
  12. ╠══ CEIP
  13. ║   ╠══ Status: UNKNOWN
  14. ║   ╚══ Id: d1b827d1-f6fd-49d5-9c5c-7b21ffaa5222
  15. ╠══ AVN
  16. ║   ╚══ Status: DISABLED
  17. ╠══ Domains
  18. ║   ╚══ vcf-mgmt01
  19. ║       ╠══ Name: vcf-mgmt01
  20. ║       ╠══ Domain Type: MANAGEMENT
  21. ║       ╠══ Status: ACTIVE
  22. ║       ╠══ Domain Id: 09230fea-bcbe-42e4-8eb6-414dcf728d5b
  23. ║       ╠══ No of Clusters: 1
  24. ║       ╠══ Clusters
  25. ║       ║   ╚══ vcf-mgmt01-cluster01
  26. ║       ║       ╠══ Datacenter: vcf-mgmt01-datacenter01
  27. ║       ║       ╠══ Datastore: VSAN
  28. ║       ║       ╠══ Primary Datastore Type: VSAN_ESA
  29. ║       ║       ╠══ Cluster Id: 4a4200e9-05bf-4e34-bfe5-8984284d85bb
  30. ║       ║       ╠══ Status: ACTIVE
  31. ║       ║       ╠══ FTT: 1
  32. ║       ║       ╠══ Stretched Cluster: False
  33. ║       ║       ╠══ # of Hosts: 4
  34. ║       ║       ╠══ Resource Utilization
  35. ║       ║       ║   ╠══ CPU usage in GHz: 12 %
  36. ║       ║       ║   ╠══ Memory usage in GB: 55 %
  37. ║       ║       ║   ╚══ Storage usage in TB: 14 %
  38. ║       ║       ╠══ WCP Status: DISABLED
  39. ║       ║       ╚══ vLCM Status: ENABLED
  40. ║       ╠══ vCENTER Version: 8.0.2.00100-22617221
  41. ║       ╠══ vCENTER Id: 86109735-258c-437e-b004-7193d41cbc97
  42. ║       ╠══ Esxi Version: 8.0.2-22380479
  43. ║       ╠══ NSX-Type: NSX
  44. ║       ╚══ NSX Version: 4.1.2.1.0-22667789
  45. ╠══ Host Details
  46. ║   ╠══ Free Hosts: 0
  47. ║   ╠══ Active Hosts: 4
  48. ║   ╚══ Dirty Hosts: 0
  49. ╠══ Licensing Details
  50. ║   ╠══ VMware vCenter Server License
  51. ║   ║   ╠══ Product Type: VCENTER
  52. ║   ║   ╠══ Total: Unlimited
  53. ║   ║   ╠══ Used: 1
  54. ║   ║   ╠══ license Unit: Server
  55. ║   ║   ╚══ Key: XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
  56. ║   ╠══ VMware vSAN License
  57. ║   ║   ╠══ Product Type: VSAN
  58. ║   ║   ╠══ Total: Unlimited
  59. ║   ║   ╠══ Used: 8
  60. ║   ║   ╠══ license Unit: CPU Packages
  61. ║   ║   ╚══ Key: XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
  62. ║   ╠══ VMware NSX Data Center License
  63. ║   ║   ╠══ Product Type: NSXT
  64. ║   ║   ╠══ Total: 65535
  65. ║   ║   ╠══ Used: None
  66. ║   ║   ╠══ license Unit: Virtual machine
  67. ║   ║   ╚══ Key: XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
  68. ║   ╚══ VMware vSphere License
  69. ║       ╠══ Product Type: ESXI
  70. ║       ╠══ Total: Unlimited
  71. ║       ╠══ Used: 8
  72. ║       ╠══ license Unit: CPU Packages
  73. ║       ╚══ Key: XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
  74. ╠══ Network Pool Details
  75. ║   ╠══ vcf-mgmt01-np01
  76. ║   ║   ╠══ Network Pool ID: b018fb05-98df-42a6-a0af-57894bcda6af
  77. ║   ║   ╠══ Hosts: 4
  78. ║   ║   ╚══ Network Type: VMOTION, VSAN
  79. ║   ╚══ vcf-vi01-np01
  80. ║       ╠══ Network Pool ID: a161d1ed-6d88-4697-bb26-f7c1d66255a9
  81. ║       ╠══ Hosts: 0
  82. ║       ╚══ Network Type: VMOTION, VSAN
  83. ╚══ VCF Services
  84.     ╠══ COMMON_SERVICES
  85.     ║   ╠══ Version: 5.1.0-vcf5100RELEASE-22688321
  86.     ║   ╚══ Memory Utilized: 580.0K
  87.     ╠══ LCM
  88.     ║   ╠══ Version: 5.1.0-vcf5100RELEASE-22688321
  89.     ║   ╚══ Memory Utilized: 1.3M
  90.     ╠══ SDDC_MANAGER_UI
  91.     ║   ╠══ Version: 5.1.0-vcf5100RELEASE-22688320
  92.     ║   ╚══ Memory Utilized: 141.9M
  93.     ╠══ OPERATIONS_MANAGER
  94.     ║   ╠══ Version: 5.1.0-vcf5100RELEASE-22688321
  95.     ║   ╚══ Memory Utilized: 556.0K
  96.     ╚══ DOMAIN_MANAGER
  97.         ╠══ Version: 5.1.0-vcf5100RELEASE-22688321
  98.         ╚══ Memory Utilized: 1.2M
  99. Summary Collection completed successfully for : [VCF-SUMMARY]                                                                                
  100. vcf@vcf-mgmt01-sddc01 [ /opt/vmware/sddc-support ]$
复制代码
使用 --get-vcf-tasks-summary 选项可查看 VCF 环境中的“任务”摘要信息,包括任务的创建时间和任务的状态。
  1. vcf@vcf-mgmt01-sddc01 [ /opt/vmware/sddc-support ]$ sudo ./sos --get-vcf-tasks-summary
  2. [sudo] password for vcf
  3. Welcome to Supportability and Serviceability(SoS) utility!
  4. Summary : /var/log/vmware/vcf/sddc-support/summary-2024-10-04-05-02-43-9874
  5. Summary log : /var/log/vmware/vcf/sddc-support/summary-2024-10-04-05-02-43-9874/sos.log
  6. WorkFlow Tasks Initiated SoS operation
  7. ╠══ a20c81d6-68a7-446c-9a1f-1459cf7c7065
  8. ║   ╠══ Status: SUCCESSFUL
  9. ║   ╠══ Creation Time: Thu, 25 Jul 2024 09:02:42 UTC
  10. ║   ╠══ Id: a20c81d6-68a7-446c-9a1f-1459cf7c7065
  11. ║   ╚══ name: vSphere Lifecycle Manager Image Upload Management-Domain-Personality
  12. ╠══ a4aaaffd-29d3-4282-8390-d33bf241cb0a
  13. ║   ╠══ Status: Successful
  14. ║   ╠══ Creation Time: Tue, 30 Jul 2024 14:04:25 UTC
  15. ║   ╠══ Id: a4aaaffd-29d3-4282-8390-d33bf241cb0a
  16. ║   ╚══ name: Renaming cluster cluster01 to vcf-vi01-cluster01
  17. ╠══ f2a4685f-e89b-405a-97a2-662d4ef3accd
  18. ║   ╠══ Status: Failed
  19. ║   ╠══ Creation Time: Thu, 01 Aug 2024 07:01:23 UTC
  20. ║   ╠══ Id: f2a4685f-e89b-405a-97a2-662d4ef3accd
  21. ║   ╠══ Failed Task: Acquire Lock
  22. ║   ╚══ name: Removing domain vcf-vi01
  23. ╠══ c8ab51a0-730b-40e6-938c-59f85aee3689
  24. ║   ╠══ Status: Successful
  25. ║   ╠══ Creation Time: Thu, 01 Aug 2024 10:47:46 UTC
  26. ║   ╠══ Id: c8ab51a0-730b-40e6-938c-59f85aee3689
  27. ║   ╚══ name: Commissioning host(s) vcf-vi01-esxi02.mulab.local,vcf-vi01-esxi03.mulab.local,vcf-vi01-esxi01.mulab.local to VMware Cloud Foundation
  28. ╠══ 67d8caf5-e3b9-436e-adbb-d9e9cb868074
  29. ║   ╠══ Status: Successful
  30. ║   ╠══ Creation Time: Thu, 01 Aug 2024 11:16:48 UTC
  31. ║   ╠══ Id: 67d8caf5-e3b9-436e-adbb-d9e9cb868074
  32. ║   ╚══ name: Creating Workload Domain: vcf-vi01
  33. ╠══ d480da6b-ac70-4289-9425-dc2df6a0cc15
  34. ║   ╠══ Status: Successful
  35. ║   ╠══ Creation Time: Tue, 30 Jul 2024 09:25:39 UTC
  36. ║   ╠══ Id: d480da6b-ac70-4289-9425-dc2df6a0cc15
  37. ║   ╚══ name: Commissioning host(s) vcf-vi01-esxi02.mulab.local,vcf-vi01-esxi03.mulab.local,vcf-vi01-esxi01.mulab.local to VMware Cloud Foundation
  38. ╠══ 1553cab1-a4e2-4e2e-b411-79d97800745c
  39. ║   ╠══ Status: Successful
  40. ║   ╠══ Creation Time: Tue, 30 Jul 2024 10:25:00 UTC
  41. ║   ╠══ Id: 1553cab1-a4e2-4e2e-b411-79d97800745c
  42. ║   ╚══ name: Creating Workload Domain: vcf-vi01
  43. ╠══ 33c51b38-f8e1-40cf-94e9-e0a591cef0af
  44. ║   ╠══ Status: Successful
  45. ║   ╠══ Creation Time: Thu, 01 Aug 2024 07:01:51 UTC
  46. ║   ╠══ Id: 33c51b38-f8e1-40cf-94e9-e0a591cef0af
  47. ║   ╚══ name: Removing domain vcf-vi01
  48. ╠══ 52c7ac89-a0ee-4022-ade7-2548903d6426
  49. ║   ╠══ Status: Successful
  50. ║   ╠══ Creation Time: Thu, 01 Aug 2024 07:28:50 UTC
  51. ║   ╠══ Id: 52c7ac89-a0ee-4022-ade7-2548903d6426
  52. ║   ╚══ name: Decommissioning host(s) vcf-vi01-esxi02.mulab.local,vcf-vi01-esxi03.mulab.local,vcf-vi01-esxi01.mulab.local from VMware Cloud Foundation
  53. ╠══ 34373385-451b-4dd6-b9a7-9cae68f3e3cc
  54. ║   ╠══ Status: Successful
  55. ║   ╠══ Creation Time: Thu, 01 Aug 2024 08:42:28 UTC
  56. ║   ╠══ Id: 34373385-451b-4dd6-b9a7-9cae68f3e3cc
  57. ║   ╚══ name: Commissioning host(s) vcf-vi01-esxi02.mulab.local,vcf-vi01-esxi03.mulab.local,vcf-vi01-esxi01.mulab.local to VMware Cloud Foundation
  58. ╠══ e8ba4f1d-f20f-4f26-9a15-300e423916fb
  59. ║   ╠══ Status: Successful
  60. ║   ╠══ Creation Time: Thu, 01 Aug 2024 10:29:45 UTC
  61. ║   ╠══ Id: e8ba4f1d-f20f-4f26-9a15-300e423916fb
  62. ║   ╚══ name: Decommissioning host(s) vcf-vi01-esxi02.mulab.local,vcf-vi01-esxi03.mulab.local,vcf-vi01-esxi01.mulab.local from VMware Cloud Foundation
  63. ╠══ dacc2534-53cf-4476-9708-cdc2cf34b1fe
  64. ║   ╠══ Status: Successful
  65. ║   ╠══ Creation Time: Sat, 17 Aug 2024 07:41:34 UTC
  66. ║   ╠══ Id: dacc2534-53cf-4476-9708-cdc2cf34b1fe
  67. ║   ╚══ name: Commissioning host(s) vcf-mgmt01-esxi05.mulab.local to VMware Cloud Foundation
  68. ╠══ 6b4a9fbf-8171-4745-bea2-f88bd5252564
  69. ║   ╠══ Status: Failed
  70. ║   ╠══ Creation Time: Sat, 17 Aug 2024 07:53:59 UTC
  71. ║   ╠══ Id: 6b4a9fbf-8171-4745-bea2-f88bd5252564
  72. ║   ╠══ Failed Task: Prepare ESXi Host
  73. ║   ╚══ name: Adding new host(s) to cluster
  74. ╠══ f4020d23-961f-425e-8525-be6d3e89eef1
  75. ║   ╠══ Status: Successful
  76. ║   ╠══ Creation Time: Sat, 17 Aug 2024 08:23:58 UTC
  77. ║   ╠══ Id: f4020d23-961f-425e-8525-be6d3e89eef1
  78. ║   ╚══ name: Removing host(s) from cluster
  79. ╠══ 48f4c75e-d7c6-4188-98b0-5ceb95b4c9c2
  80. ║   ╠══ Status: Successful
  81. ║   ╠══ Creation Time: Sat, 17 Aug 2024 08:26:41 UTC
  82. ║   ╠══ Id: 48f4c75e-d7c6-4188-98b0-5ceb95b4c9c2
  83. ║   ╚══ name: Decommissioning host(s) vcf-mgmt01-esxi05.mulab.local from VMware Cloud Foundation
  84. ╠══ 638363b1-d62c-4d4b-b010-310618e71db7
  85. ║   ╠══ Status: Successful
  86. ║   ╠══ Creation Time: Sat, 17 Aug 2024 08:35:28 UTC
  87. ║   ╠══ Id: 638363b1-d62c-4d4b-b010-310618e71db7
  88. ║   ╚══ name: Commissioning host(s) vcf-mgmt01-esxi05.mulab.local to VMware Cloud Foundation
  89. ╠══ d8a56718-ea0f-4c6d-bff1-763c116ae576
  90. ║   ╠══ Status: Successful
  91. ║   ╠══ Creation Time: Sat, 17 Aug 2024 08:41:57 UTC
  92. ║   ╠══ Id: d8a56718-ea0f-4c6d-bff1-763c116ae576
  93. ║   ╚══ name: Adding new host(s) to cluster
  94. ╠══ a9bdd48d-f328-425b-a157-660832361294
  95. ║   ╠══ Status: Successful
  96. ║   ╠══ Creation Time: Sat, 17 Aug 2024 13:06:16 UTC
  97. ║   ╠══ Id: a9bdd48d-f328-425b-a157-660832361294
  98. ║   ╚══ name: Removing host(s) from cluster
  99. ╠══ 1e05d31d-403b-43a1-9567-a310088d5189
  100. ║   ╠══ Status: Successful
  101. ║   ╠══ Creation Time: Sat, 17 Aug 2024 13:13:57 UTC
  102. ║   ╠══ Id: 1e05d31d-403b-43a1-9567-a310088d5189
  103. ║   ╚══ name: Decommissioning host(s) vcf-mgmt01-esxi05.mulab.local from VMware Cloud Foundation
  104. ╠══ 1a80b550-cd5a-4bac-91eb-9449977f9965
  105. ║   ╠══ Status: Successful
  106. ║   ╠══ Creation Time: Sat, 17 Aug 2024 13:32:15 UTC
  107. ║   ╠══ Id: 1a80b550-cd5a-4bac-91eb-9449977f9965
  108. ║   ╚══ name: Commissioning host(s) vcf-mgmt01-esxi05.mulab.local,vcf-mgmt01-esxi06.mulab.local,vcf-mgmt01-esxi07.mulab.local to VMware Cloud Foundation
  109. ╠══ 35edcf0f-53b4-4e70-ad3e-26f834eab05a
  110. ║   ╠══ Status: Successful
  111. ║   ╠══ Creation Time: Sat, 17 Aug 2024 14:11:02 UTC
  112. ║   ╠══ Id: 35edcf0f-53b4-4e70-ad3e-26f834eab05a
  113. ║   ╚══ name: Adding cluster vcf-mgmt01-cluster02 to domain vcf-mgmt01
  114. ╠══ 59c0bf41-943c-40be-abf9-03c542a93ffa
  115. ║   ╠══ Status: Successful
  116. ║   ╠══ Creation Time: Sat, 17 Aug 2024 15:10:06 UTC
  117. ║   ╠══ Id: 59c0bf41-943c-40be-abf9-03c542a93ffa
  118. ║   ╚══ name: Removing cluster vcf-mgmt01-cluster02 from domain vcf-mgmt01
  119. ╠══ ab80e678-31a5-4826-9414-5823190c7230
  120. ║   ╠══ Status: Successful
  121. ║   ╠══ Creation Time: Sat, 17 Aug 2024 15:31:44 UTC
  122. ║   ╠══ Id: ab80e678-31a5-4826-9414-5823190c7230
  123. ║   ╚══ name: Decommissioning host(s) vcf-mgmt01-esxi06.mulab.local,vcf-mgmt01-esxi05.mulab.local,vcf-mgmt01-esxi07.mulab.local from VMware Cloud Foundation
  124. ╠══ 29c13c00-b730-465c-a605-d9b9c3a9f28b
  125. ║   ╠══ Status: Successful
  126. ║   ╠══ Creation Time: Wed, 02 Oct 2024 11:52:30 UTC
  127. ║   ╠══ Id: 29c13c00-b730-465c-a605-d9b9c3a9f28b
  128. ║   ╚══ name: Removing domain vcf-vi01
  129. ╚══ 0b5b00e3-3ed3-43ca-b2d7-466e3c3cdbac
  130.     ╠══ Status: Successful
  131.     ╠══ Creation Time: Wed, 02 Oct 2024 12:16:52 UTC
  132.     ╠══ Id: 0b5b00e3-3ed3-43ca-b2d7-466e3c3cdbac
  133.     ╚══ name: Decommissioning host(s) vcf-vi01-esxi01.mulab.local,vcf-vi01-esxi03.mulab.local,vcf-vi01-esxi02.mulab.local from VMware Cloud Foundation
  134. Summary Collection completed successfully for : [VCF-SUMMARY]                                                                                
  135. vcf@vcf-mgmt01-sddc01 [ /opt/vmware/sddc-support ]$
复制代码
使用 --get-vcf-services-summary 选项可查看 VCF 环境中的“服务”摘要信息,包括 SDDC Manager 正常运行的时间和相干服务(例如 LCM)启动和停止的时间。
  1. vcf@vcf-mgmt01-sddc01 [ /opt/vmware/sddc-support ]$ sudo ./sos --get-vcf-services-summary
  2. Welcome to Supportability and Serviceability(SoS) utility!
  3. Summary : /var/log/vmware/vcf/sddc-support/summary-2024-10-04-05-06-38-10894
  4. Summary log : /var/log/vmware/vcf/sddc-support/summary-2024-10-04-05-06-38-10894/sos.log
  5. VCF ServiceTask VCF-SUMMARY is in progress...
  6. ╠══ COMMON_SERVICES
  7. ║   ╠══ Service Started
  8. ║   ║   ╠══ 1: Aug-17-04:43:46
  9. ║   ║   ╠══ 2: Aug-17-10:32:33
  10. ║   ║   ╠══ 3: Aug-20-14:28:57
  11. ║   ║   ╠══ 4: Oct-02-11:41:33
  12. ║   ║   ╚══ 5: Oct-04-04:31:02
  13. ║   ╚══ Service Stopped
  14. ║       ╠══ 1: Aug-17-15:39:44
  15. ║       ╠══ 2: Aug-20-15:23:06
  16. ║       ╚══ 3: Oct-02-13:43:56
  17. ╠══ DOMAIN_MANAGER
  18. ║   ╠══ Service Started
  19. ║   ║   ╠══ 1: Aug-17-04:43:46
  20. ║   ║   ╠══ 2: Aug-17-10:32:33
  21. ║   ║   ╠══ 3: Aug-20-14:28:56
  22. ║   ║   ╠══ 4: Oct-02-11:41:33
  23. ║   ║   ╚══ 5: Oct-04-04:31:01
  24. ║   ╚══ Service Stopped
  25. ║       ╠══ 1: Jul-30-09:35:18
  26. ║       ╠══ 2: Aug-01-07:43:25
  27. ║       ╠══ 3: Aug-17-15:39:43
  28. ║       ╠══ 4: Aug-20-15:23:05
  29. ║       ╚══ 5: Oct-02-13:43:55
  30. ╠══ LCM
  31. ║   ╠══ Service Started
  32. ║   ║   ╠══ 1: Aug-17-04:43:46
  33. ║   ║   ╠══ 2: Aug-17-10:32:33
  34. ║   ║   ╠══ 3: Aug-20-14:28:56
  35. ║   ║   ╠══ 4: Oct-02-11:41:33
  36. ║   ║   ╚══ 5: Oct-04-04:31:01
  37. ║   ╚══ Service Stopped
  38. ║       ╠══ 1: Aug-17-15:39:43
  39. ║       ╠══ 2: Aug-20-15:23:05
  40. ║       ╚══ 3: Oct-02-13:43:55
  41. ╠══ OPERATIONS_MANAGER
  42. ║   ╠══ Service Started
  43. ║   ║   ╠══ 1: Aug-17-04:43:47
  44. ║   ║   ╠══ 2: Aug-17-10:32:34
  45. ║   ║   ╠══ 3: Aug-20-14:28:57
  46. ║   ║   ╠══ 4: Oct-02-11:41:34
  47. ║   ║   ╚══ 5: Oct-04-04:31:03
  48. ║   ╚══ Service Stopped
  49. ║       ╠══ 1: Aug-17-15:39:43
  50. ║       ╠══ 2: Aug-20-15:23:05
  51. ║       ╚══ 3: Oct-02-13:43:55
  52. ╠══ SDDC_MANAGER_UI
  53. ║   ╠══ Service Started
  54. ║   ║   ╠══ 1: Aug-17-04:43:48
  55. ║   ║   ╠══ 2: Aug-17-10:32:35
  56. ║   ║   ╠══ 3: Aug-20-14:28:58
  57. ║   ║   ╠══ 4: Oct-02-11:41:35
  58. ║   ║   ╚══ 5: Oct-04-04:31:03
  59. ║   ╚══ Service Stopped
  60. ║       ╠══ 1: Aug-20-14:32:20
  61. ║       ╠══ 2: Aug-20-15:23:05
  62. ║       ╠══ 3: Oct-02-11:44:58
  63. ║       ╠══ 4: Oct-02-13:43:55
  64. ║       ╚══ 5: Oct-04-04:34:30
  65. ╚══ VCF SDDC Manager Uptime: up 37 minutes
  66. Summary Collection completed successfully for : [VCF-SUMMARY]                                                                                
  67. vcf@vcf-mgmt01-sddc01 [ /opt/vmware/sddc-support ]$
复制代码
 
三、管理 ESXi 和 vCenter Server

SoS 实用程序可以用于管理 VCF 环境中的 ESXi 主机和 vCenter Server,这须要切换到 root 用户才气执行相干命令选项。注意,对于 Fix-It-Up 选项,如果未指定 --doamin-name 工作负载域,则命令将应用于管理域;如果使用 --domain-name ALL 选项,则命令将应用于所有工作负载域。

使用 --enable-ssh-esxi 选项“开启”指定工作负载域中所有 ESXi 主机的 SSH 服务。
  1. root@vcf-mgmt01-sddc01 [ /opt/vmware/sddc-support ]# ./sos --enable-ssh-esxi --domain-name vcf-mgmt01
  2. Welcome to Supportability and Serviceability(SoS) utility!
  3. Performing SoS operation for vcf-mgmt01 domain components
  4. Logs : /var/log/vmware/vcf/sddc-support/fix-it-up-2024-10-04-05-31-24-17182
  5. Fix-It-Up log : /var/log/vmware/vcf/sddc-support/fix-it-up-2024-10-04-05-31-24-17182/sos.log
  6. Fix It Up completed successfully for : [ESX_SSH_ENABLEMENT]                                                                                
  7. root@vcf-mgmt01-sddc01 [ /opt/vmware/sddc-support ]#
复制代码
使用 --disable-ssh-esxi 选项“关闭”指定工作负载域中所有 ESXi 主机的 SSH 服务。
  1. root@vcf-mgmt01-sddc01 [ /opt/vmware/sddc-support ]# ./sos --disable-ssh-esxi --domain-name vcf-mgmt01
  2. Welcome to Supportability and Serviceability(SoS) utility!
  3. Performing SoS operation for vcf-mgmt01 domain components
  4. Logs : /var/log/vmware/vcf/sddc-support/fix-it-up-2024-10-04-05-33-07-17702
  5. Fix-It-Up log : /var/log/vmware/vcf/sddc-support/fix-it-up-2024-10-04-05-33-07-17702/sos.log
  6. Fix It Up completed successfully for : [ESX_SSH_DISABLEMENT]                                                                                
  7. root@vcf-mgmt01-sddc01 [ /opt/vmware/sddc-support ]#
复制代码
使用 --enable-ssh-vc 选项“开启”指定工作负载域中 vCenter Server 的 SSH 服务。
  1. root@vcf-mgmt01-sddc01 [ /opt/vmware/sddc-support ]# ./sos --enable-ssh-vc --domain-name vcf-mgmt01
  2. Welcome to Supportability and Serviceability(SoS) utility!
  3. Performing SoS operation for vcf-mgmt01 domain components
  4. Logs : /var/log/vmware/vcf/sddc-support/fix-it-up-2024-10-04-05-34-24-18099
  5. Fix-It-Up log : /var/log/vmware/vcf/sddc-support/fix-it-up-2024-10-04-05-34-24-18099/sos.log
  6. Fix It Up completed successfully for : [SSH_VC_ENABLEMENT]                                                                                
  7. root@vcf-mgmt01-sddc01 [ /opt/vmware/sddc-support ]#
复制代码
使用 --disable-ssh-vc 选项“关闭”指定工作负载域中 vCenter Server 的 SSH 服务。
  1. root@vcf-mgmt01-sddc01 [ /opt/vmware/sddc-support ]# ./sos --disable-ssh-vc --domain-name vcf-mgmt01
  2. Welcome to Supportability and Serviceability(SoS) utility!
  3. Performing SoS operation for vcf-mgmt01 domain components
  4. Logs : /var/log/vmware/vcf/sddc-support/fix-it-up-2024-10-04-05-35-17-18350
  5. Fix-It-Up log : /var/log/vmware/vcf/sddc-support/fix-it-up-2024-10-04-05-35-17-18350/sos.log
  6. Fix It Up completed successfully for : [SSH_VC_DISABLEMENT]                                                                                
  7. root@vcf-mgmt01-sddc01 [ /opt/vmware/sddc-support ]#
复制代码
使用 --enable-lockdown-esxi 选项“开启”指定工作负载域中所有 ESXi 主机的锁定模式。
  1. root@vcf-mgmt01-sddc01 [ /opt/vmware/sddc-support ]# ./sos --enable-lockdown-esxi --domain-name vcf-mgmt01
  2. Welcome to Supportability and Serviceability(SoS) utility!
  3. Logs : /var/log/vmware/vcf/sddc-support/fix-it-up-2024-10-04-05-37-30-18951
  4. Fix-It-Up log : /var/log/vmware/vcf/sddc-support/fix-it-up-2024-10-04-05-37-30-18951/sos.log
  5. Fix It Up completed successfully for : [ESX_LOCKDOWN_ENABLEMENT]                                                                                
  6. root@vcf-mgmt01-sddc01 [ /opt/vmware/sddc-support ]#
复制代码
使用 --disable-lockdown-esxi 选项“关闭”指定工作负载域中所有 ESXi 主机的锁定模式。
  1. root@vcf-mgmt01-sddc01 [ /opt/vmware/sddc-support ]# ./sos --disable-lockdown-esxi --domain-name vcf-mgmt01
  2. Welcome to Supportability and Serviceability(SoS) utility!
  3. Logs : /var/log/vmware/vcf/sddc-support/fix-it-up-2024-10-04-05-38-38-19260
  4. Fix-It-Up log : /var/log/vmware/vcf/sddc-support/fix-it-up-2024-10-04-05-38-38-19260/sos.log
  5. Fix It Up completed successfully for : [ESX_LOCKDOWN_DISABLEMENT]                                                                                
  6. root@vcf-mgmt01-sddc01 [ /opt/vmware/sddc-support ]#
复制代码
 
四、检查 VCF 环境运行状态

SoS 实用程序可用于检查 VCF 环境中各种组件或服务的运行状态,包括工作负载域中的连接设置状态、计算和存储状态以及网络设置状态等。使用 --health-check 选项可以一次性检查 VCF 环境中的所有状态,使用 --json-output-dir 选项可以将检查的结果以 JSON 格式输出到指定目录。   
注:如果检查项结果是 GREEN,则表示该项健康状态为正常(NORMAL);如果检查项结果是 YELLOW,则表示该项健康状态为警告(WARNING);如果检查项结果是 RED,则表示该项健康状态为严重(CRITICAL)。
使用 --get-inventory-info 选项获取指定工作负载域中相干组件的“清单”信息。
  1. vcf@vcf-mgmt01-sddc01 [ /opt/vmware/sddc-support ]$ sudo ./sos --get-inventory-info --domain-name vcf-mgmt01
  2. Welcome to Supportability and Serviceability(SoS) utility!
  3. Performing SoS operation for vcf-mgmt01 domain components
  4. Health Check : /var/log/vmware/vcf/sddc-support/healthcheck-2024-10-04-07-22-05-45907
  5. Health Check log : /var/log/vmware/vcf/sddc-support/healthcheck-2024-10-04-07-22-05-45907/sos.log
  6. SDDC Manager : vcf-mgmt01-sddc01.mulab.local                                                                                
  7. +-------------------------+-----------+
  8. |          Stage          |   Status  |
  9. +-------------------------+-----------+
  10. |         Bringup         | Completed |
  11. | Management Domain State | Completed |
  12. +-------------------------+-----------+
  13. +--------------------+---------------+
  14. |     Component      |    Identity   |
  15. +--------------------+---------------+
  16. |    SDDC-Manager    | 192.168.32.70 |
  17. | Number of Servers  |       4       |
  18. +--------------------+---------------+
  19. +-----+-------------+---------------+-------------------------------+---------------+
  20. | SL# | Domain Name |   Component   |         Host Node Name        |    USED IP    |
  21. +-----+-------------+---------------+-------------------------------+---------------+
  22. |  1  |  vcf-mgmt01 |      ESX      | vcf-mgmt01-esxi01.mulab.local | 192.168.32.61 |
  23. |     |             |               | vcf-mgmt01-esxi02.mulab.local | 192.168.32.62 |
  24. |     |             |               | vcf-mgmt01-esxi03.mulab.local | 192.168.32.63 |
  25. |     |             |               | vcf-mgmt01-esxi04.mulab.local | 192.168.32.64 |
  26. |     |             |  SDDC Manager | vcf-mgmt01-sddc01.mulab.local | 192.168.32.70 |
  27. |     |             |    VCENTER    | vcf-mgmt01-vcsa01.mulab.local | 192.168.32.65 |
  28. |     |             | PSC(EMBEDDED) |              N/A              | 192.168.32.65 |
  29. |     |             |      NSX      |  vcf-mgmt01-nsx01.mulab.local | 192.168.32.66 |
  30. |     |             |    NSX MGR    | vcf-mgmt01-nsx01a.mulab.local | 192.168.32.67 |
  31. +-----+-------------+---------------+-------------------------------+---------------+
  32. Progress : 100%, Completed tasks : [VCF-SUMMARY]
  33. Legend:
  34. GREEN - No attention required, health status is NORMAL
  35. YELLOW - May require attention, health status is WARNING
  36. RED - Requires immediate attention, health status is CRITICAL
  37. Health Check completed successfully for : [VCF-SUMMARY]                                                                                
  38. vcf@vcf-mgmt01-sddc01 [ /opt/vmware/sddc-support ]$
复制代码
使用 --connectivity-health 选项检查指定工作负载域中相干组件的“连接”状态。
  1. vcf@vcf-mgmt01-sddc01 [ /opt/vmware/sddc-support ]$ sudo ./sos --connectivity-health --domain-name vcf-mgmt01
  2. Welcome to Supportability and Serviceability(SoS) utility!
  3. Performing SoS operation for vcf-mgmt01 domain components
  4. Health Check : /var/log/vmware/vcf/sddc-support/healthcheck-2024-10-04-07-23-59-46467
  5. Health Check log : /var/log/vmware/vcf/sddc-support/healthcheck-2024-10-04-07-23-59-46467/sos.log
  6. NOTE : The Health check operation was invoked without --skip-known-host-check, additional identity checks will be included for Connectivity Health, Password Health and Certificate Health Checks because of security reasons.
  7. SDDC Manager : vcf-mgmt01-sddc01.mulab.local                                                                                
  8. +-------------------------+-----------+
  9. |          Stage          |   Status  |
  10. +-------------------------+-----------+
  11. |         Bringup         | Completed |
  12. | Management Domain State | Completed |
  13. +-------------------------+-----------+
  14. +--------------------+---------------+
  15. |     Component      |    Identity   |
  16. +--------------------+---------------+
  17. |    SDDC-Manager    | 192.168.32.70 |
  18. | Number of Servers  |       4       |
  19. +--------------------+---------------+
  20. Connectivity : GREEN                                                                                 
  21. +-----+-----------------------------------------+----------------------------+-------+
  22. | SL# |                   Area                  |           Title            | State |
  23. +-----+-----------------------------------------+----------------------------+-------+
  24. |  1  |   ESXi : vcf-mgmt01-esxi01.mulab.local  |        Ping status         | GREEN |
  25. |     |                                         |  API Connectivity status   | GREEN |
  26. |     |                                         | ** SSH status is disabled. |       |
  27. |  2  |   ESXi : vcf-mgmt01-esxi02.mulab.local  |        Ping status         | GREEN |
  28. |     |                                         |  API Connectivity status   | GREEN |
  29. |     |                                         | ** SSH status is disabled. |       |
  30. |  3  |   ESXi : vcf-mgmt01-esxi03.mulab.local  |        Ping status         | GREEN |
  31. |     |                                         |  API Connectivity status   | GREEN |
  32. |     |                                         | ** SSH status is disabled. |       |
  33. |  4  |   ESXi : vcf-mgmt01-esxi04.mulab.local  |        Ping status         | GREEN |
  34. |     |                                         |  API Connectivity status   | GREEN |
  35. |     |                                         | ** SSH status is disabled. |       |
  36. |  5  |    NSX: vcf-mgmt01-nsx01.mulab.local    |        Ping status         | GREEN |
  37. |     |                                         |  API Connectivity status   | GREEN |
  38. |  6  | vCenter : vcf-mgmt01-vcsa01.mulab.local |        Ping status         | GREEN |
  39. |     |                                         | ** SSH status is disabled. |       |
  40. +-----+-----------------------------------------+----------------------------+-------+
  41. Progress : 100%, Completed tasks : [VCF-SUMMARY, CONNECTIVITY-CHECK]
  42. Legend:
  43. GREEN - No attention required, health status is NORMAL
  44. YELLOW - May require attention, health status is WARNING
  45. RED - Requires immediate attention, health status is CRITICAL
  46. Health Check completed successfully for : [VCF-SUMMARY, CONNECTIVITY-CHECK]                                                                                
  47. vcf@vcf-mgmt01-sddc01 [ /opt/vmware/sddc-support ]$
复制代码
使用 --version-health 选项检查指定工作负载域中相干组件的“版本”信息。
  1. vcf@vcf-mgmt01-sddc01 [ /opt/vmware/sddc-support ]$ sudo ./sos --version-health --domain-name vcf-mgmt01
  2. Welcome to Supportability and Serviceability(SoS) utility!
  3. Performing SoS operation for vcf-mgmt01 domain components
  4. Health Check : /var/log/vmware/vcf/sddc-support/healthcheck-2024-10-04-07-28-04-47736
  5. Health Check log : /var/log/vmware/vcf/sddc-support/healthcheck-2024-10-04-07-28-04-47736/sos.log
  6. SDDC Manager : vcf-mgmt01-sddc01.mulab.local                                                                                
  7. +-------------------------+-----------+
  8. |          Stage          |   Status  |
  9. +-------------------------+-----------+
  10. |         Bringup         | Completed |
  11. | Management Domain State | Completed |
  12. +-------------------------+-----------+
  13. +--------------------+---------------+
  14. |     Component      |    Identity   |
  15. +--------------------+---------------+
  16. |    SDDC-Manager    | 192.168.32.70 |
  17. | Number of Servers  |       4       |
  18. +--------------------+---------------+
  19. Version Check Status : GREEN                                                                                 
  20. +-----+-------------------------------------------+---------------------------+----------------------+-----------------------+-------+
  21. | SL# |                 Component                 | BOM Version (lcmManifest) |   Running version    | VCF Inventory Version | State |
  22. +-----+-------------------------------------------+---------------------------+----------------------+-----------------------+-------+
  23. |  1  |    ESXI: vcf-mgmt01-esxi01.mulab.local    |       8.0.2-22380479      |    8.0.2-22380479    |     8.0.2-22380479    | GREEN |
  24. |  2  |    ESXI: vcf-mgmt01-esxi02.mulab.local    |       8.0.2-22380479      |    8.0.2-22380479    |     8.0.2-22380479    | GREEN |
  25. |  3  |    ESXI: vcf-mgmt01-esxi03.mulab.local    |       8.0.2-22380479      |    8.0.2-22380479    |     8.0.2-22380479    | GREEN |
  26. |  4  |    ESXI: vcf-mgmt01-esxi04.mulab.local    |       8.0.2-22380479      |    8.0.2-22380479    |     8.0.2-22380479    | GREEN |
  27. |  5  | NSX_MANAGER: vcf-mgmt01-nsx01.mulab.local |     4.1.2.1.0-22667789    |  4.1.2.1.0-22667789  |   4.1.2.1.0-22667789  | GREEN |
  28. |  6  |    SDDC: vcf-mgmt01-sddc01.mulab.local    |          5.1.0.0          |       5.1.0.0        |        5.1.0.0        | GREEN |
  29. |  7  |   VCENTER: vcf-mgmt01-vcsa01.mulab.local  |    8.0.2.00100-22617221   | 8.0.2.00100-22617221 |  8.0.2.00100-22617221 | GREEN |
  30. +-----+-------------------------------------------+---------------------------+----------------------+-----------------------+-------+
  31. Progress : 100%, Completed tasks : [VCF-SUMMARY, VERSION-CHECK]
  32. Legend:
  33. GREEN - No attention required, health status is NORMAL
  34. YELLOW - May require attention, health status is WARNING
  35. RED - Requires immediate attention, health status is CRITICAL
  36. Health Check completed successfully for : [VERSION-CHECK, VCF-SUMMARY]                                                                                
  37. vcf@vcf-mgmt01-sddc01 [ /opt/vmware/sddc-support ]$
复制代码
使用 --services-health 选项检查指定工作负载域中相干组件的“服务”状态。
  1. vcf@vcf-mgmt01-sddc01 [ /opt/vmware/sddc-support ]$ sudo ./sos --services-health --domain-name vcf-mgmt01
  2. Welcome to Supportability and Serviceability(SoS) utility!
  3. Performing SoS operation for vcf-mgmt01 domain components
  4. Health Check : /var/log/vmware/vcf/sddc-support/healthcheck-2024-10-04-07-30-33-48554
  5. Health Check log : /var/log/vmware/vcf/sddc-support/healthcheck-2024-10-04-07-30-33-48554/sos.log
  6. SDDC Manager : vcf-mgmt01-sddc01.mulab.local                                                                                
  7. +-------------------------+-----------+
  8. |          Stage          |   Status  |
  9. +-------------------------+-----------+
  10. |         Bringup         | Completed |
  11. | Management Domain State | Completed |
  12. +-------------------------+-----------+
  13. +--------------------+---------------+
  14. |     Component      |    Identity   |
  15. +--------------------+---------------+
  16. |    SDDC-Manager    | 192.168.32.70 |
  17. | Number of Servers  |       4       |
  18. +--------------------+---------------+
  19. Services : GREEN                                                                                 
  20. +-----+-----------------------------------------+--------------------+-------+
  21. | SL# |                   Area                  |       Title        | State |
  22. +-----+-----------------------------------------+--------------------+-------+
  23. |  1  |   SDDC : vcf-mgmt01-sddc01.mulab.local  |        NTP         | GREEN |
  24. |     |                                         |      SOSREST       | GREEN |
  25. |     |                                         |      POSTGRES      | GREEN |
  26. |     |                                         |  COMMON_SERVICES   | GREEN |
  27. |     |                                         |  SDDC_MANAGER_UI   | GREEN |
  28. |     |                                         |   DOMAIN_MANAGER   | GREEN |
  29. |     |                                         | OPERATIONS_MANAGER | GREEN |
  30. |     |                                         |  VIP-MANAGER-i18n  | GREEN |
  31. |     |                                         |        LCM         | GREEN |
  32. |  2  | VCENTER : vcf-mgmt01-vcsa01.mulab.local |      applmgmt      | GREEN |
  33. |     |                                         |      rsyslog       | GREEN |
  34. +-----+-----------------------------------------+--------------------+-------+
  35. Progress : 100%, Completed tasks : [SERVICES-CHECK, VCF-SUMMARY]
  36. Legend:
  37. GREEN - No attention required, health status is NORMAL
  38. YELLOW - May require attention, health status is WARNING
  39. RED - Requires immediate attention, health status is CRITICAL
  40. Health Check completed successfully for : [SERVICES-CHECK, VCF-SUMMARY]                                                                                
  41. vcf@vcf-mgmt01-sddc01 [ /opt/vmware/sddc-support ]$
复制代码
使用 --compute-health 选项检查指定工作负载域中“计算”相干的运行状态。
  1. vcf@vcf-mgmt01-sddc01 [ /opt/vmware/sddc-support ]$ sudo ./sos --compute-health --domain-name vcf-mgmt01
  2. Welcome to Supportability and Serviceability(SoS) utility!
  3. Performing SoS operation for vcf-mgmt01 domain components
  4. Health Check : /var/log/vmware/vcf/sddc-support/healthcheck-2024-10-04-07-34-15-49636
  5. Health Check log : /var/log/vmware/vcf/sddc-support/healthcheck-2024-10-04-07-34-15-49636/sos.log
  6. SDDC Manager : vcf-mgmt01-sddc01.mulab.local                                                                                
  7. +-------------------------+-----------+
  8. |          Stage          |   Status  |
  9. +-------------------------+-----------+
  10. |         Bringup         | Completed |
  11. | Management Domain State | Completed |
  12. +-------------------------+-----------+
  13. +--------------------+---------------+
  14. |     Component      |    Identity   |
  15. +--------------------+---------------+
  16. |    SDDC-Manager    | 192.168.32.70 |
  17. | Number of Servers  |       4       |
  18. +--------------------+---------------+
  19. Compute : GREEN                                                                                 
  20. +-----+----------------------------------------+----------------------------+-------+
  21. | SL# |                  Area                  |           Title            | State |
  22. +-----+----------------------------------------+----------------------------+-------+
  23. |  1  |  ESXi : vcf-mgmt01-esxi01.mulab.local  |       License check        | GREEN |
  24. |     |                                        |     ESXi Health Status     | GREEN |
  25. |     |                                        | Check disks for partitions | GREEN |
  26. |  2  |  ESXi : vcf-mgmt01-esxi02.mulab.local  |       License check        | GREEN |
  27. |     |                                        |     ESXi Health Status     | GREEN |
  28. |     |                                        | Check disks for partitions | GREEN |
  29. |  3  |  ESXi : vcf-mgmt01-esxi03.mulab.local  |       License check        | GREEN |
  30. |     |                                        |     ESXi Health Status     | GREEN |
  31. |     |                                        | Check disks for partitions | GREEN |
  32. |  4  |  ESXi : vcf-mgmt01-esxi04.mulab.local  |       License check        | GREEN |
  33. |     |                                        |     ESXi Health Status     | GREEN |
  34. |     |                                        | Check disks for partitions | GREEN |
  35. |  5  | vCenter: vcf-mgmt01-vcsa01.mulab.local |    Check Health Status     | GREEN |
  36. +-----+----------------------------------------+----------------------------+-------+
  37. Progress : 100%, Completed tasks : [ALARM-CHECK, COMPUTE-CHECK, VCF-SUMMARY]
  38. Legend:
  39. GREEN - No attention required, health status is NORMAL
  40. YELLOW - May require attention, health status is WARNING
  41. RED - Requires immediate attention, health status is CRITICAL
  42. Health Check completed successfully for : [COMPUTE-CHECK, ALARM-CHECK, VCF-SUMMARY]                                                                                
  43. vcf@vcf-mgmt01-sddc01 [ /opt/vmware/sddc-support ]$
复制代码
使用 --storage-health 选项检查指定工作负载域中“存储”相干的运行状态。
  1. vcf@vcf-mgmt01-sddc01 [ /opt/vmware/sddc-support ]$ sudo ./sos --storage-health --domain-name vcf-mgmt01
  2. Welcome to Supportability and Serviceability(SoS) utility!
  3. Performing SoS operation for vcf-mgmt01 domain components
  4. Health Check : /var/log/vmware/vcf/sddc-support/healthcheck-2024-10-04-07-36-29-50334
  5. Health Check log : /var/log/vmware/vcf/sddc-support/healthcheck-2024-10-04-07-36-29-50334/sos.log
  6. SDDC Manager : vcf-mgmt01-sddc01.mulab.local                                                                                
  7. +-------------------------+-----------+
  8. |          Stage          |   Status  |
  9. +-------------------------+-----------+
  10. |         Bringup         | Completed |
  11. | Management Domain State | Completed |
  12. +-------------------------+-----------+
  13. +--------------------+---------------+
  14. |     Component      |    Identity   |
  15. +--------------------+---------------+
  16. |    SDDC-Manager    | 192.168.32.70 |
  17. | Number of Servers  |       4       |
  18. +--------------------+---------------+
  19. vSAN : GREEN                                                                                 
  20. +-----+--------------------------------------------------------------------------+---------------------------------------------------------+-------+
  21. | SL# |                                   Area                                   |                          Title                          | State |
  22. +-----+--------------------------------------------------------------------------+---------------------------------------------------------+-------+
  23. |  1  | vCenter : vcf-mgmt01-vcsa01.mulab.local - Cluster : vcf-mgmt01-cluster01 |            Overall Cluster vSAN Health Status           | GREEN |
  24. |     |                                                                          | vSAN Capacity is 14.36%, utilized 574.38GB of 3999.46GB | GREEN |
  25. |     |                                                                          |            Total no. of hosts in cluster : 4            | GREEN |
  26. |     |                                                                          |               Active ReSyncing Objects : 0              | GREEN |
  27. |     |                                                                          |         ** Compression disabled on this cluster.        |       |
  28. |     |                                                                          |         ** Encryption disabled on this cluster.         |       |
  29. |     |                                                                          |       **  Deduplication disabled on this cluster.       |       |
  30. |     |                                                                          |            ** Stretched cluster is disabled.            |       |
  31. |  2  |   vCenter : vcf-mgmt01-vcsa01.mulab.local VM storage policy compliance   |                    vcf-mgmt01-nsx01a                    | GREEN |
  32. |     |                                                                          |                    vcf-mgmt01-vcsa01                    | GREEN |
  33. |     |                                                                          |                    vcf-mgmt01-sddc01                    | GREEN |
  34. |     |                                                                          |        vCLS-9a2850fd-331a-4861-a3c0-7896c9697f50        | GREEN |
  35. |     |                                                                          |        vCLS-6a301117-c407-4aef-ad92-97de5fd22d71        | GREEN |
  36. |     |                                                                          |        vCLS-d6383bf5-a37e-487f-83a6-89a2ff9014f7        | GREEN |
  37. +-----+--------------------------------------------------------------------------+---------------------------------------------------------+-------+
  38. Progress : 100%, Completed tasks : [VSAN-CHECK, VCF-SUMMARY]
  39. Legend:
  40. GREEN - No attention required, health status is NORMAL
  41. YELLOW - May require attention, health status is WARNING
  42. RED - Requires immediate attention, health status is CRITICAL
  43. Health Check completed successfully for : [VSAN-CHECK, VCF-SUMMARY]                                                                                
  44. vcf@vcf-mgmt01-sddc01 [ /opt/vmware/sddc-support ]$
复制代码
使用 --storage-health 和 --run-vsan-checks 选项检查指定工作负载域中“存储”相干的运行状态并同时运行假造机创建测试。
  1. vcf@vcf-mgmt01-sddc01 [ /opt/vmware/sddc-support ]$ sudo ./sos --storage-health --run-vsan-checks --domain-name vcf-mgmt01
  2. Welcome to Supportability and Serviceability(SoS) utility!
  3. Performing SoS operation for vcf-mgmt01 domain components
  4. Health Check : /var/log/vmware/vcf/sddc-support/healthcheck-2024-10-04-07-38-59-51057
  5. Health Check log : /var/log/vmware/vcf/sddc-support/healthcheck-2024-10-04-07-38-59-51057/sos.log
  6. SDDC Manager : vcf-mgmt01-sddc01.mulab.local                                                                                
  7. +-------------------------+-----------+
  8. |          Stage          |   Status  |
  9. +-------------------------+-----------+
  10. |         Bringup         | Completed |
  11. | Management Domain State | Completed |
  12. +-------------------------+-----------+
  13. +--------------------+---------------+
  14. |     Component      |    Identity   |
  15. +--------------------+---------------+
  16. |    SDDC-Manager    | 192.168.32.70 |
  17. | Number of Servers  |       4       |
  18. +--------------------+---------------+
  19. vSAN : GREEN                                                                                 
  20. +-----+--------------------------------------------------------------------------+---------------------------------------------------------+-------+
  21. | SL# |                                   Area                                   |                          Title                          | State |
  22. +-----+--------------------------------------------------------------------------+---------------------------------------------------------+-------+
  23. |  1  | vCenter : vcf-mgmt01-vcsa01.mulab.local - Cluster : vcf-mgmt01-cluster01 |            Overall Cluster vSAN Health Status           | GREEN |
  24. |     |                                                                          | vSAN Capacity is 14.36%, utilized 574.39GB of 3999.46GB | GREEN |
  25. |     |                                                                          |            Total no. of hosts in cluster : 4            | GREEN |
  26. |     |                                                                          |               Active ReSyncing Objects : 0              | GREEN |
  27. |     |                                                                          |         ** Compression disabled on this cluster.        |       |
  28. |     |                                                                          |         ** Encryption disabled on this cluster.         |       |
  29. |     |                                                                          |       **  Deduplication disabled on this cluster.       |       |
  30. |     |                                                                          |            ** Stretched cluster is disabled.            |       |
  31. |     |                                                                          |             Proactive Cluster VM Create Test            | GREEN |
  32. |  2  |   vCenter : vcf-mgmt01-vcsa01.mulab.local VM storage policy compliance   |                    vcf-mgmt01-nsx01a                    | GREEN |
  33. |     |                                                                          |                    vcf-mgmt01-vcsa01                    | GREEN |
  34. |     |                                                                          |                    vcf-mgmt01-sddc01                    | GREEN |
  35. |     |                                                                          |        vCLS-9a2850fd-331a-4861-a3c0-7896c9697f50        | GREEN |
  36. |     |                                                                          |        vCLS-6a301117-c407-4aef-ad92-97de5fd22d71        | GREEN |
  37. |     |                                                                          |        vCLS-d6383bf5-a37e-487f-83a6-89a2ff9014f7        | GREEN |
  38. +-----+--------------------------------------------------------------------------+---------------------------------------------------------+-------+
  39. Progress : 100%, Completed tasks : [VSAN-CHECK, VCF-SUMMARY]
  40. Legend:
  41. GREEN - No attention required, health status is NORMAL
  42. YELLOW - May require attention, health status is WARNING
  43. RED - Requires immediate attention, health status is CRITICAL
  44. Health Check completed successfully for : [VSAN-CHECK, VCF-SUMMARY]                                                                                
  45. vcf@vcf-mgmt01-sddc01 [ /opt/vmware/sddc-support ]$
复制代码
使用 --dns-health 选项检查指定工作负载域中相干组件“ DNS” 的运行状态。
  1. vcf@vcf-mgmt01-sddc01 [ /opt/vmware/sddc-support ]$ sudo ./sos --dns-health --domain-name vcf-mgmt01
  2. Welcome to Supportability and Serviceability(SoS) utility!
  3. Performing SoS operation for vcf-mgmt01 domain components
  4. Health Check : /var/log/vmware/vcf/sddc-support/healthcheck-2024-10-04-07-42-55-52110
  5. Health Check log : /var/log/vmware/vcf/sddc-support/healthcheck-2024-10-04-07-42-55-52110/sos.log
  6. SDDC Manager : vcf-mgmt01-sddc01.mulab.local                                                                                
  7. +-------------------------+-----------+
  8. |          Stage          |   Status  |
  9. +-------------------------+-----------+
  10. |         Bringup         | Completed |
  11. | Management Domain State | Completed |
  12. +-------------------------+-----------+
  13. +--------------------+---------------+
  14. |     Component      |    Identity   |
  15. +--------------------+---------------+
  16. |    SDDC-Manager    | 192.168.32.70 |
  17. | Number of Servers  |       4       |
  18. +--------------------+---------------+
  19. DNS lookup Status : GREEN                                                                                 
  20. +-----+--------------------------------------------+--------------------------+-------+
  21. | SL# |                    Area                    |          Title           | State |
  22. +-----+--------------------------------------------+--------------------------+-------+
  23. |  1  |    ESXi: vcf-mgmt01-esxi01.mulab.local     | Forward DNS lookup check | GREEN |
  24. |     |                                            | Reverse DNS lookup check | GREEN |
  25. |  2  |    ESXi: vcf-mgmt01-esxi02.mulab.local     | Forward DNS lookup check | GREEN |
  26. |     |                                            | Reverse DNS lookup check | GREEN |
  27. |  3  |    ESXi: vcf-mgmt01-esxi03.mulab.local     | Forward DNS lookup check | GREEN |
  28. |     |                                            | Reverse DNS lookup check | GREEN |
  29. |  4  |    ESXi: vcf-mgmt01-esxi04.mulab.local     | Forward DNS lookup check | GREEN |
  30. |     |                                            | Reverse DNS lookup check | GREEN |
  31. |  5  |     NSX: vcf-mgmt01-nsx01.mulab.local      | Forward DNS lookup check | GREEN |
  32. |     |                                            | Reverse DNS lookup check | GREEN |
  33. |  6  |     NSX: vcf-mgmt01-nsx01a.mulab.local     | Forward DNS lookup check | GREEN |
  34. |     |                                            | Reverse DNS lookup check | GREEN |
  35. |  7  | SDDCMANAGER: vcf-mgmt01-sddc01.mulab.local | Forward DNS lookup check | GREEN |
  36. |     |                                            | Reverse DNS lookup check | GREEN |
  37. |  8  |   vCenter: vcf-mgmt01-vcsa01.mulab.local   | Forward DNS lookup check | GREEN |
  38. |     |                                            | Reverse DNS lookup check | GREEN |
  39. +-----+--------------------------------------------+--------------------------+-------+
  40. Progress : 100%, Completed tasks : [VCF-SUMMARY, DNS-CHECK]
  41. Legend:
  42. GREEN - No attention required, health status is NORMAL
  43. YELLOW - May require attention, health status is WARNING
  44. RED - Requires immediate attention, health status is CRITICAL
  45. Health Check completed successfully for : [VCF-SUMMARY, DNS-CHECK]                                                                                
  46. vcf@vcf-mgmt01-sddc01 [ /opt/vmware/sddc-support ]$
复制代码
使用 --ntp-health 选项检查指定工作负载域中相干组件 “NTP” 的运行状态。
  1. vcf@vcf-mgmt01-sddc01 [ /opt/vmware/sddc-support ]$ sudo ./sos --ntp-health --domain-name vcf-mgmt01
  2. Welcome to Supportability and Serviceability(SoS) utility!
  3. Performing SoS operation for vcf-mgmt01 domain components
  4. Health Check : /var/log/vmware/vcf/sddc-support/healthcheck-2024-10-04-07-44-45-52672
  5. Health Check log : /var/log/vmware/vcf/sddc-support/healthcheck-2024-10-04-07-44-45-52672/sos.log
  6. SDDC Manager : vcf-mgmt01-sddc01.mulab.local                                                                                
  7. +-------------------------+-----------+
  8. |          Stage          |   Status  |
  9. +-------------------------+-----------+
  10. |         Bringup         | Completed |
  11. | Management Domain State | Completed |
  12. +-------------------------+-----------+
  13. +--------------------+---------------+
  14. |     Component      |    Identity   |
  15. +--------------------+---------------+
  16. |    SDDC-Manager    | 192.168.32.70 |
  17. | Number of Servers  |       4       |
  18. +--------------------+---------------+
  19. Progress : 100%, Completed tasks : [VCF-SUMMARY, NTP-CHECK]
  20. NTP : GREEN                                                                                 
  21. +-----+---------------------------------------------+------------+-------+
  22. | SL# |                     Area                    |   Title    | State |
  23. +-----+---------------------------------------------+------------+-------+
  24. |  1  |     ESXi : vcf-mgmt01-esxi01.mulab.local    | NTP Status | GREEN |
  25. |     |                                             |  ESX Time  | GREEN |
  26. |  2  |     ESXi : vcf-mgmt01-esxi02.mulab.local    | NTP Status | GREEN |
  27. |     |                                             |  ESX Time  | GREEN |
  28. |  3  |     ESXi : vcf-mgmt01-esxi03.mulab.local    | NTP Status | GREEN |
  29. |     |                                             |  ESX Time  | GREEN |
  30. |  4  |     ESXi : vcf-mgmt01-esxi04.mulab.local    | NTP Status | GREEN |
  31. |     |                                             |  ESX Time  | GREEN |
  32. |  5  |      NSX : vcf-mgmt01-nsx01.mulab.local     | NTP Status | GREEN |
  33. |  6  | SDDC-Manager: vcf-mgmt01-sddc01.mulab.local | NTP Status | GREEN |
  34. |  7  |   vCenter : vcf-mgmt01-vcsa01.mulab.local   | NTP Status | GREEN |
  35. +-----+---------------------------------------------+------------+-------+
  36. Legend:
  37. GREEN - No attention required, health status is NORMAL
  38. YELLOW - May require attention, health status is WARNING
  39. RED - Requires immediate attention, health status is CRITICAL
  40. Health Check completed successfully for : [NTP-CHECK, VCF-SUMMARY]                                                                                
  41. vcf@vcf-mgmt01-sddc01 [ /opt/vmware/sddc-support ]$
复制代码
使用 --certificate-health 选项检查指定工作负载域中相干组件“证书”的运行状态。
  1. vcf@vcf-mgmt01-sddc01 [ /opt/vmware/sddc-support ]$ sudo ./sos --certificate-health --domain-name vcf-mgmt01
  2. [sudo] password for vcf
  3. Welcome to Supportability and Serviceability(SoS) utility!
  4. Performing SoS operation for vcf-mgmt01 domain components
  5. Health Check : /var/log/vmware/vcf/sddc-support/healthcheck-2024-10-04-07-50-45-54307
  6. Health Check log : /var/log/vmware/vcf/sddc-support/healthcheck-2024-10-04-07-50-45-54307/sos.log
  7. NOTE : The Health check operation was invoked without --skip-known-host-check, additional identity checks will be included for Connectivity Health, Password Health and Certificate Health Checks because of security reasons.
  8. SDDC Manager : vcf-mgmt01-sddc01.mulab.local                                                                                
  9. +-------------------------+-----------+
  10. |          Stage          |   Status  |
  11. +-------------------------+-----------+
  12. |         Bringup         | Completed |
  13. | Management Domain State | Completed |
  14. +-------------------------+-----------+
  15. +--------------------+---------------+
  16. |     Component      |    Identity   |
  17. +--------------------+---------------+
  18. |    SDDC-Manager    | 192.168.32.70 |
  19. | Number of Servers  |       4       |
  20. +--------------------+---------------+
  21. Certificates : GREEN                                                                                 
  22. +-----+--------------------------------------------+-------------------------------+--------------------------+--------------------------+-------+
  23. | SL# |                   Entity                   |            Cert CN            |     Cert Start Date      |      Cert End Date       | State |
  24. +-----+--------------------------------------------+-------------------------------+--------------------------+--------------------------+-------+
  25. |  1  |    ESXi: vcf-mgmt01-esxi01.mulab.local     | vcf-mgmt01-esxi01.mulab.local | Jul 24 07:27:44 2024 GMT | Jul 24 07:27:44 2029 GMT | GREEN |
  26. |  2  |    ESXi: vcf-mgmt01-esxi02.mulab.local     | vcf-mgmt01-esxi02.mulab.local | Jul 24 07:29:01 2024 GMT | Jul 24 07:29:01 2029 GMT | GREEN |
  27. |  3  |    ESXi: vcf-mgmt01-esxi03.mulab.local     | vcf-mgmt01-esxi03.mulab.local | Jul 24 07:29:30 2024 GMT | Jul 24 07:29:30 2029 GMT | GREEN |
  28. |  4  |    ESXi: vcf-mgmt01-esxi04.mulab.local     | vcf-mgmt01-esxi04.mulab.local | Jul 24 07:29:59 2024 GMT | Jul 24 07:29:59 2029 GMT | GREEN |
  29. |  5  |     NSX: vcf-mgmt01-nsx01.mulab.local      |  vcf-mgmt01-nsx01.mulab.local | Jul 25 08:10:40 2024 GMT | Oct 28 08:10:40 2026 GMT | GREEN |
  30. |  6  | SDDCMANAGER: vcf-mgmt01-sddc01.mulab.local | vcf-mgmt01-sddc01.mulab.local | Jul 25 08:52:44 2024 GMT | Oct 28 08:52:44 2026 GMT | GREEN |
  31. |  7  |     VC: vcf-mgmt01-vcsa01.mulab.local      | vcf-mgmt01-vcsa01.mulab.local | Jul 25 07:13:25 2024 GMT | Jul 25 19:13:25 2026 GMT | GREEN |
  32. +-----+--------------------------------------------+-------------------------------+--------------------------+--------------------------+-------+
  33. Progress : 100%, Completed tasks : [CERTIFICATE-CHECK, VCF-SUMMARY]
  34. Legend:
  35. GREEN - No attention required, health status is NORMAL
  36. YELLOW - May require attention, health status is WARNING
  37. RED - Requires immediate attention, health status is CRITICAL
  38. Health Check completed successfully for : [VCF-SUMMARY, CERTIFICATE-CHECK]                                                                                
  39. vcf@vcf-mgmt01-sddc01 [ /opt/vmware/sddc-support ]$
复制代码
使用 --password-health 选项检查指定工作负载域中相干组件“暗码”的运行状态。
  1. vcf@vcf-mgmt01-sddc01 [ /opt/vmware/sddc-support ]$ sudo ./sos --password-health --domain-name vcf-mgmt01
  2. Welcome to Supportability and Serviceability(SoS) utility!
  3. Performing SoS operation for vcf-mgmt01 domain components
  4. Health Check : /var/log/vmware/vcf/sddc-support/healthcheck-2024-10-04-07-52-48-55037
  5. Health Check log : /var/log/vmware/vcf/sddc-support/healthcheck-2024-10-04-07-52-48-55037/sos.log
  6. NOTE : The Health check operation was invoked without --skip-known-host-check, additional identity checks will be included for Connectivity Health, Password Health and Certificate Health Checks because of security reasons.
  7. SDDC Manager : vcf-mgmt01-sddc01.mulab.local                                                                                
  8. +-------------------------+-----------+
  9. |          Stage          |   Status  |
  10. +-------------------------+-----------+
  11. |         Bringup         | Completed |
  12. | Management Domain State | Completed |
  13. +-------------------------+-----------+
  14. +--------------------+---------------+
  15. |     Component      |    Identity   |
  16. +--------------------+---------------+
  17. |    SDDC-Manager    | 192.168.32.70 |
  18. | Number of Servers  |       4       |
  19. +--------------------+---------------+
  20. Password Expiry Status : GREEN                                                                                 
  21. +-----+-----------------------------------------+---------------------------+-------------------+--------------+-----------------+-------+
  22. | SL# |                Component                |            User           | Last Changed Date | Expiry Date  | Expires in Days | State |
  23. +-----+-----------------------------------------+---------------------------+-------------------+--------------+-----------------+-------+
  24. |  1  |   ESXI : vcf-mgmt01-esxi01.mulab.local  | svc-vcf-vcf-mgmt01-esxi01 |    Sep 29, 2024   |    Never     |      Never      | GREEN |
  25. |     |                                         |            root           |    Sep 29, 2024   |    Never     |      Never      | GREEN |
  26. |  2  |   ESXI : vcf-mgmt01-esxi02.mulab.local  | svc-vcf-vcf-mgmt01-esxi02 |    Sep 29, 2024   |    Never     |      Never      | GREEN |
  27. |     |                                         |            root           |    Sep 29, 2024   |    Never     |      Never      | GREEN |
  28. |  3  |   ESXI : vcf-mgmt01-esxi03.mulab.local  | svc-vcf-vcf-mgmt01-esxi03 |    Sep 29, 2024   |    Never     |      Never      | GREEN |
  29. |     |                                         |            root           |    Sep 29, 2024   |    Never     |      Never      | GREEN |
  30. |  4  |   ESXI : vcf-mgmt01-esxi04.mulab.local  | svc-vcf-vcf-mgmt01-esxi04 |    Sep 29, 2024   |    Never     |      Never      | GREEN |
  31. |     |                                         |            root           |    Sep 29, 2024   |    Never     |      Never      | GREEN |
  32. |  5  |    NSX : vcf-mgmt01-nsx01.mulab.local   |            root           |    Jul 25, 2024   | Oct 23, 2024 |     19 days     | GREEN |
  33. |     |                                         |           admin           |    Jul 25, 2024   | Oct 23, 2024 |     19 days     | GREEN |
  34. |     |                                         |           audit           |    Jul 25, 2024   | Oct 23, 2024 |     19 days     | GREEN |
  35. |  6  |   SDDC : vcf-mgmt01-sddc01.mulab.local  |            vcf            |    Jul 25, 2024   | Jul 25, 2025 |     294 days    | GREEN |
  36. |     |                                         |            root           |    Jul 25, 2024   | Oct 23, 2024 |     19 days     | GREEN |
  37. |     |                                         |           backup          |    Jul 25, 2024   | Jul 25, 2025 |     294 days    | GREEN |
  38. |  7  | vCenter : vcf-mgmt01-vcsa01.mulab.local |            root           |    Jul 25, 2024   | Oct 23, 2024 |     18 days     | GREEN |
  39. +-----+-----------------------------------------+---------------------------+-------------------+--------------+-----------------+-------+
  40. Progress : 100%, Completed tasks : [VCF-SUMMARY, PASSWORD-CHECK]
  41. Legend:
  42. GREEN - No attention required, health status is NORMAL
  43. YELLOW - May require attention, health status is WARNING
  44. RED - Requires immediate attention, health status is CRITICAL
  45. Health Check completed successfully for : [PASSWORD-CHECK, VCF-SUMMARY]                                                                                
  46. vcf@vcf-mgmt01-sddc01 [ /opt/vmware/sddc-support ]$
复制代码
使用 --get-host-ips 选项获取指定工作负载域中 ESXi 主机的 “IP” 地址信息。
  1. vcf@vcf-mgmt01-sddc01 [ /opt/vmware/sddc-support ]$ sudo ./sos --get-host-ips --domain-name vcf-mgmt01
  2. Welcome to Supportability and Serviceability(SoS) utility!
  3. Performing SoS operation for vcf-mgmt01 domain components
  4. Health Check : /var/log/vmware/vcf/sddc-support/healthcheck-2024-10-04-07-56-27-56060
  5. Health Check log : /var/log/vmware/vcf/sddc-support/healthcheck-2024-10-04-07-56-27-56060/sos.log
  6. SDDC Manager : vcf-mgmt01-sddc01.mulab.local                                                                                
  7. +-------------------------+-----------+
  8. |          Stage          |   Status  |
  9. +-------------------------+-----------+
  10. |         Bringup         | Completed |
  11. | Management Domain State | Completed |
  12. +-------------------------+-----------+
  13. +--------------------+---------------+
  14. |     Component      |    Identity   |
  15. +--------------------+---------------+
  16. |    SDDC-Manager    | 192.168.32.70 |
  17. | Number of Servers  |       4       |
  18. +--------------------+---------------+
  19. Server Information : GREEN                                                                                 
  20. +-----+-------------------------------+------------------+------------------+-------------------------------+
  21. | SL# |         Host Node Name        | Host IP (Public) | Host IP (Inband) |           Host Name           |
  22. +-----+-------------------------------+------------------+------------------+-------------------------------+
  23. |  1  | VCF-MGMT01-ESXI01.MULAB.LOCAL |  192.168.32.61   |  192.168.32.61   | vcf-mgmt01-esxi01.mulab.local |
  24. |  2  | VCF-MGMT01-ESXI02.MULAB.LOCAL |  192.168.32.62   |  192.168.32.62   | vcf-mgmt01-esxi02.mulab.local |
  25. |  3  | VCF-MGMT01-ESXI03.MULAB.LOCAL |  192.168.32.63   |  192.168.32.63   | vcf-mgmt01-esxi03.mulab.local |
  26. |  4  | VCF-MGMT01-ESXI04.MULAB.LOCAL |  192.168.32.64   |  192.168.32.64   | vcf-mgmt01-esxi04.mulab.local |
  27. +-----+-------------------------------+------------------+------------------+-------------------------------+
  28. Progress : 100%, Completed tasks : [GET-SERVER-DETAILS, VCF-SUMMARY]
  29. Legend:
  30. GREEN - No attention required, health status is NORMAL
  31. YELLOW - May require attention, health status is WARNING
  32. RED - Requires immediate attention, health status is CRITICAL
  33. Health Check completed successfully for : [VCF-SUMMARY, GET-SERVER-DETAILS]                                                                                
  34. vcf@vcf-mgmt01-sddc01 [ /opt/vmware/sddc-support ]$
复制代码
使用 --general-health 选项检查指定工作负载域中 ESXi 主机是否存在错误转储并获取 NSX Manager 和集群的状态。
  1. vcf@vcf-mgmt01-sddc01 [ /opt/vmware/sddc-support ]$ sudo ./sos --general-health --domain-name vcf-mgmt01
  2. Welcome to Supportability and Serviceability(SoS) utility!
  3. Performing SoS operation for vcf-mgmt01 domain components
  4. Health Check : /var/log/vmware/vcf/sddc-support/healthcheck-2024-10-04-07-58-40-56718
  5. Health Check log : /var/log/vmware/vcf/sddc-support/healthcheck-2024-10-04-07-58-40-56718/sos.log
  6. SDDC Manager : vcf-mgmt01-sddc01.mulab.local                                                                                
  7. +-------------------------+-----------+
  8. |          Stage          |   Status  |
  9. +-------------------------+-----------+
  10. |         Bringup         | Completed |
  11. | Management Domain State | Completed |
  12. +-------------------------+-----------+
  13. +--------------------+---------------+
  14. |     Component      |    Identity   |
  15. +--------------------+---------------+
  16. |    SDDC-Manager    | 192.168.32.70 |
  17. | Number of Servers  |       4       |
  18. +--------------------+---------------+
  19. General : YELLOW                                                                                 
  20. +-----+--------------------------------------+---------------------------------------------------------------+--------+
  21. | SL# |                 Area                 |                             Title                             | State  |
  22. +-----+--------------------------------------+---------------------------------------------------------------+--------+
  23. |  1  |  ** SDDC: PSC Ring Topology Status   |                       Ring Health Status                      | GREEN  |
  24. |  2  | ESXi : vcf-mgmt01-esxi01.mulab.local | vcf-mgmt01-esxi01.mulab.local - Check for error dumps in ESXi | GREEN  |
  25. |  3  | ESXi : vcf-mgmt01-esxi02.mulab.local | vcf-mgmt01-esxi02.mulab.local - Check for error dumps in ESXi | YELLOW |
  26. |  4  | ESXi : vcf-mgmt01-esxi03.mulab.local | vcf-mgmt01-esxi03.mulab.local - Check for error dumps in ESXi | YELLOW |
  27. |  5  | ESXi : vcf-mgmt01-esxi04.mulab.local | vcf-mgmt01-esxi04.mulab.local - Check for error dumps in ESXi | GREEN  |
  28. |  6  |     vcf-mgmt01-nsx01.mulab.local     |                       NSX Manager Status                      | GREEN  |
  29. |     |                                      |                 No NSX Edge Cluster available                 | GREEN  |
  30. |     |                                      |                Controller Cluster Health status               | GREEN  |
  31. |     |                                      |                   Mgmt Cluster Health status                  | GREEN  |
  32. |     |                                      |            ** Container Clusters are not available            | GREEN  |
  33. +-----+--------------------------------------+---------------------------------------------------------------+--------+
  34. Progress : 100%, Completed tasks : [VCF-SUMMARY]
  35. Legend:
  36. GREEN - No attention required, health status is NORMAL
  37. YELLOW - May require attention, health status is WARNING
  38. RED - Requires immediate attention, health status is CRITICAL
  39. Health Check completed successfully for : [VCF-SUMMARY]                                                                                
  40. Operation failed for : [GENERAL-CHECK(2/10 Failed)]                                                                                
  41. For detailed report please refer : /var/log/vmware/vcf/sddc-support/healthcheck-2024-10-04-07-58-40-56718/report.json
  42. vcf@vcf-mgmt01-sddc01 [ /opt/vmware/sddc-support ]$
复制代码
使用 --hardware-compatibility-report 选项检查指定工作负载域中 ESXi 主机 vSAN 装备的硬件兼容性状态。
  1. vcf@vcf-mgmt01-sddc01 [ /opt/vmware/sddc-support ]$ sudo ./sos --hardware-compatibility-report --domain-name vcf-mgmt01
  2. Welcome to Supportability and Serviceability(SoS) utility!
  3. Performing SoS operation for vcf-mgmt01 domain components
  4. Health Check : /var/log/vmware/vcf/sddc-support/healthcheck-2024-10-04-08-00-47-57477
  5. Health Check log : /var/log/vmware/vcf/sddc-support/healthcheck-2024-10-04-08-00-47-57477/sos.log
  6. SDDC Manager : vcf-mgmt01-sddc01.mulab.local                                                                                
  7. +-------------------------+-----------+
  8. |          Stage          |   Status  |
  9. +-------------------------+-----------+
  10. |         Bringup         | Completed |
  11. | Management Domain State | Completed |
  12. +-------------------------+-----------+
  13. +--------------------+---------------+
  14. |     Component      |    Identity   |
  15. +--------------------+---------------+
  16. |    SDDC-Manager    | 192.168.32.70 |
  17. | Number of Servers  |       4       |
  18. +--------------------+---------------+
  19. Hardware Compatibility : GREEN                                                                                 
  20. +-----+-------------------------------+-------------------------------------------------+--------+---------+
  21. | SL# |              Area             |                      Title                      | Entity |  State  |
  22. +-----+-------------------------------+-------------------------------------------------+--------+---------+
  23. |  1  | Cluster: vcf-mgmt01-cluster01 |              vSAN HCL DB up-to-date             |        |  GREEN  |
  24. |     |                               |             vSAN HCL DB Auto Update             |        | SKIPPED |
  25. |     |                               |       SCSI controller is VMware certified       |        |  GREEN  |
  26. |     |                               |          NVMe device can be identified          |        |  GREEN  |
  27. |     |                               |         NVMe device is VMware certified         |        | SKIPPED |
  28. |     |                               | Controller is VMware certified for ESXi release |        |  GREEN  |
  29. |     |                               |      Controller driver is VMware certified      |        |  GREEN  |
  30. |     |                               |     Controller firmware is VMware certified     |        |  GREEN  |
  31. |     |                               |    Physical NIC link speed meets requirements   |        | SKIPPED |
  32. |     |                               |      Host physical memory compliance check      |        |  GREEN  |
  33. |     |                               |                                                 |        |         |
  34. +-----+-------------------------------+-------------------------------------------------+--------+---------+
  35. Progress : 100%, Completed tasks : [VCF-SUMMARY, HARDWARE-COMPATIBILITY-CHECK]
  36. Legend:
  37. GREEN - No attention required, health status is NORMAL
  38. YELLOW - May require attention, health status is WARNING
  39. RED - Requires immediate attention, health status is CRITICAL
  40. Health Check completed successfully for : [VCF-SUMMARY, HARDWARE-COMPATIBILITY-CHECK]                                                                                
  41. vcf@vcf-mgmt01-sddc01 [ /opt/vmware/sddc-support ]$
复制代码
 
五、收集 VCF 相干组件日志

SoS 实用程序可用于收集 VCF 环境中相干组件的日志信息,包括部署的 ESXi、vCenter Server、NSX Manager 以及 SDDC Manager 等。这些日志可以用于办理 VCF 中遇到的相干问题,或者用于提供给 VMware 技术支持以协助你办理问题。
可以通过指定特定组件选项以执行特定组件日志的收集,如果运行 SoS 实用程序(如 sudo ./sos )而不指定任何特定组件的选项,则 SoS 工具将收集 SDDC Manager、API 和 VMware Cloud Foundation 摘要日志。可以使用 --collect-all-logs 选项收集所有组件的日志信息,不外这须要很长的时间。SoS 日志收集可能会在 60 分钟后超时,如果 SoS 实用程序超时,请使用特定选项收集特定于组件的日志或将日志收集限制为特定集群。
注意:默认情况下,SoS 实用程序会将输出的日志存放在 SDDC Manager 中的 /var/log/vmware/vcf/sddc-support 目录,如果须要输出到指定目录,可以使用 --logs-dir 选项。在将输出日志保存到相干目录之前,该实用程序会删除可能存在的先前运行的输出文件,如果要保留较旧的输出文件,请使用 --no-clean-old-logs 选项,或者使用 --logs-folder 选项设置一个新的输出目录名称。
使用 --sddc-manager-logs 选项收集 SDDC Manager 组件的日志信息。
  1. vcf@vcf-mgmt01-sddc01 [ /opt/vmware/sddc-support ]$ sudo ./sos --sddc-manager-logs --log-dir /tmp/sddc-manager --domain-name vcf-mgmt01
  2. Welcome to Supportability and Serviceability(SoS) utility!
  3. Performing SoS operation for vcf-mgmt01 domain components
  4. Logs : /tmp/sddc-manager/sos-2024-10-04-08-19-05-62274
  5. Log file : /tmp/sddc-manager/sos-2024-10-04-08-19-05-62274/sos.log
  6. Log Collection completed successfully for : [SDDC-MANAGER, VCF-SUMMARY, API-LOGS]                                                                                
  7. vcf@vcf-mgmt01-sddc01 [ /opt/vmware/sddc-support ]$
  8. vcf@vcf-mgmt01-sddc01 [ /opt/vmware/sddc-support ]$ ls -la /tmp/sddc-manager/sos-2024-10-04-08-19-05-62274/
  9. total 84780
  10. drwxr-x--- 3 vcf  vcf       300 Oct  4 08:20 .
  11. drwxr-xr-x 3 root root       60 Oct  4 08:19 ..
  12. drwxr-x--- 6 vcf  vcf       120 Oct  4 08:19 api-logs
  13. -rw-r----- 1 vcf  vcf   3930006 Oct  4 08:19 postgres-db-dump.gz
  14. -rw-r----- 1 vcf  vcf       472 Oct  4 08:20 report.json
  15. -rw-r----- 1 vcf  vcf  82471358 Oct  4 08:20 sddc-202410040819.tgz
  16. -rw-r----- 1 vcf  vcf       435 Oct  4 08:20 sha256_checksum.json
  17. -rw-r----- 1 vcf  vcf    359167 Oct  4 08:20 sos.log
  18. -rw-r----- 1 vcf  vcf       320 Oct  4 08:19 sqlite-sos-db-dump.gz
  19. -rw-r----- 1 vcf  vcf      2277 Oct  4 08:20 vcf-service-report.log
  20. -rw-r----- 1 vcf  vcf      2287 Oct  4 08:20 vcf-service-result.json
  21. -rw-r----- 1 vcf  vcf      3985 Oct  4 08:19 vcf-summary-report.log
  22. -rw-r----- 1 vcf  vcf      4866 Oct  4 08:19 vcf-summary-result.json
  23. -rw-r----- 1 vcf  vcf      7555 Oct  4 08:19 vcf-tasks-summary-report.log
  24. -rw-r----- 1 vcf  vcf      8007 Oct  4 08:19 vcf-tasks-summary-result.json
  25. vcf@vcf-mgmt01-sddc01 [ /opt/vmware/sddc-support ]$
复制代码
使用 --esx-logs 选项收集指定工作负载域中 ESXi 主机的日志信息。
  1. vcf@vcf-mgmt01-sddc01 [ /opt/vmware/sddc-support ]$ sudo ./sos --esx-logs --log-dir /tmp/esx --domain-name vcf-mgmt01
  2. Welcome to Supportability and Serviceability(SoS) utility!
  3. Performing SoS operation for vcf-mgmt01 domain components
  4. Logs : /tmp/esx/sos-2024-10-04-08-23-34-63683
  5. Log file : /tmp/esx/sos-2024-10-04-08-23-34-63683/sos.log
  6. Log Collection completed successfully for : [ESX]                                                                                
  7. vcf@vcf-mgmt01-sddc01 [ /opt/vmware/sddc-support ]$
  8. vcf@vcf-mgmt01-sddc01 [ /opt/vmware/sddc-support ]$ ls -la /tmp/esx/sos-2024-10-04-08-23-34-63683/
  9. total 88
  10. drwxr-x--- 3 vcf  vcf    120 Oct  4 08:53 .
  11. drwxr-xr-x 3 root root    60 Oct  4 08:23 ..
  12. drwxr-x--- 2 vcf  vcf    120 Oct  4 08:23 esx
  13. -rw-r----- 1 vcf  vcf   1166 Oct  4 08:53 report.json
  14. -rw-r----- 1 vcf  vcf    626 Oct  4 08:53 sha256_checksum.json
  15. -rw-r----- 1 vcf  vcf  80122 Oct  4 08:53 sos.log
  16. vcf@vcf-mgmt01-sddc01 [ /opt/vmware/sddc-support ]$ ls -la /tmp/esx/sos-2024-10-04-08-23-34-63683/esx/
  17. total 1157700
  18. drwxr-x--- 2 vcf vcf       120 Oct  4 08:23 .
  19. drwxr-x--- 3 vcf vcf       120 Oct  4 08:53 ..
  20. -rw-r----- 1 vcf vcf 301465704 Oct  4 08:53 esx-vcf-mgmt01-esxi01.mulab.local.tgz
  21. -rw-r----- 1 vcf vcf 233610808 Oct  4 08:37 esx-vcf-mgmt01-esxi02.mulab.local.tgz
  22. -rw-r----- 1 vcf vcf 408513043 Oct  4 08:36 esx-vcf-mgmt01-esxi03.mulab.local.tgz
  23. -rw-r----- 1 vcf vcf 241886064 Oct  4 08:39 esx-vcf-mgmt01-esxi04.mulab.local.tgz
  24. vcf@vcf-mgmt01-sddc01 [ /opt/vmware/sddc-support ]$
复制代码
使用 --vc-logs 选项收集指定工作负载域中 vCenter Server 的日志信息。
  1. vcf@vcf-mgmt01-sddc01 [ /opt/vmware/sddc-support ]$ sudo ./sos --vc-logs --log-dir /tmp/vc --domain-name vcf-mgmt01
  2. [sudo] password for vcf
  3. Welcome to Supportability and Serviceability(SoS) utility!
  4. Performing SoS operation for vcf-mgmt01 domain components
  5. Logs : /tmp/vc/sos-2024-10-04-08-56-17-72012
  6. Log file : /tmp/vc/sos-2024-10-04-08-56-17-72012/sos.log
  7. Log Collection completed successfully for : [VCENTER-SERVER]                                                                                
  8. vcf@vcf-mgmt01-sddc01 [ /opt/vmware/sddc-support ]$
  9. vcf@vcf-mgmt01-sddc01 [ /opt/vmware/sddc-support ]$ ls -la /tmp/vc/sos-2024-10-04-08-56-17-72012/
  10. total 72
  11. drwxr-x--- 3 vcf  vcf    120 Oct  4 09:04 .
  12. drwxr-xr-x 3 root root    60 Oct  4 08:56 ..
  13. -rw-r----- 1 vcf  vcf    443 Oct  4 09:04 report.json
  14. -rw-r----- 1 vcf  vcf    166 Oct  4 09:04 sha256_checksum.json
  15. -rw-r----- 1 vcf  vcf  62354 Oct  4 09:04 sos.log
  16. drwxr-x--- 2 vcf  vcf     60 Oct  4 09:04 vc
  17. vcf@vcf-mgmt01-sddc01 [ /opt/vmware/sddc-support ]$ ls -la /tmp/vc/sos-2024-10-04-08-56-17-72012/vc
  18. total 234824
  19. drwxr-x--- 2 vcf vcf        60 Oct  4 09:04 .
  20. drwxr-x--- 3 vcf vcf       120 Oct  4 09:04 ..
  21. -rw-r----- 1 vcf vcf 240456932 Oct  4 09:04 vc-vcf-mgmt01-vcsa01.mulab.local-vm-support.tgz
  22. vcf@vcf-mgmt01-sddc01 [ /opt/vmware/sddc-support ]$
复制代码
使用 --nsx-logs 选项收集指定工作负载域中 NSX 的日志信息。
  1. vcf@vcf-mgmt01-sddc01 [ /opt/vmware/sddc-support ]$ sudo ./sos --nsx-logs --log-dir /tmp/nsx --domain-name vcf-mgmt01
  2. [sudo] password for vcf
  3. Welcome to Supportability and Serviceability(SoS) utility!
  4. Performing SoS operation for vcf-mgmt01 domain components
  5. Logs : /tmp/nsx/sos-2024-10-04-09-21-42-78625
  6. Log file : /tmp/nsx/sos-2024-10-04-09-21-42-78625/sos.log
  7. Progress : Task NSX_MANAGER is in progress...
  8. Log Collection completed successfully for : [NSX_MANAGER]                                                                                
  9. vcf@vcf-mgmt01-sddc01 [ /opt/vmware/sddc-support ]$
  10. vcf@vcf-mgmt01-sddc01 [ /opt/vmware/sddc-support ]$ ls -la /tmp/nsx/sos-2024-10-04-09-21-42-78625/
  11. total 60
  12. drwxr-x--- 3 vcf  vcf    120 Oct  4 10:03 .
  13. drwxr-xr-x 3 root root    60 Oct  4 09:21 ..
  14. drwxr-x--- 3 vcf  vcf     60 Oct  4 10:03 nsx
  15. -rw-r----- 1 vcf  vcf    633 Oct  4 10:03 report.json
  16. -rw-r----- 1 vcf  vcf    231 Oct  4 10:03 sha256_checksum.json
  17. -rw-r----- 1 vcf  vcf  49465 Oct  4 10:03 sos.log
  18. vcf@vcf-mgmt01-sddc01 [ /opt/vmware/sddc-support ]$ ls -la /tmp/nsx/sos-2024-10-04-09-21-42-78625/nsx/
  19. total 0
  20. drwxr-x--- 3 vcf vcf  60 Oct  4 10:03 .
  21. drwxr-x--- 3 vcf vcf 120 Oct  4 10:03 ..
  22. drwxr-x--- 2 vcf vcf  80 Oct  4 10:03 nsxt_manager-vcf-mgmt01-nsx01.mulab.local
  23. vcf@vcf-mgmt01-sddc01 [ /opt/vmware/sddc-support ]$ ls -la /tmp/nsx/sos-2024-10-04-09-21-42-78625/nsx/nsxt_manager-vcf-mgmt01-nsx01.mulab.local/
  24. total 987212
  25. drwxr-x--- 2 vcf vcf         80 Oct  4 10:03 .
  26. drwxr-x--- 3 vcf vcf         60 Oct  4 10:03 ..
  27. -rw-r----- 1 vcf vcf        639 Oct  4 10:01 manifest_20241004_092150.json
  28. -rw-r----- 1 vcf vcf 1010898804 Oct  4 09:55 nsx_manager_acfa3b42-457b-327a-c5fc-61e672f9b502_20241004_092155.tgz
  29. vcf@vcf-mgmt01-sddc01 [ /opt/vmware/sddc-support ]$
复制代码
免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!更多信息从访问主页:qidao123.com:ToB企服之家,中国第一个企服评测及商务社交产业平台。




欢迎光临 ToB企服应用市场:ToB评测及商务社交产业平台 (https://dis.qidao123.com/) Powered by Discuz! X3.4