esxcli debug object list コマンドがすべてのオブジェクトを表示しない
search cancel

esxcli debug object list コマンドがすべてのオブジェクトを表示しない

book

Article ID: 425398

calendar_today

Updated On:

Products

VMware vSphere ESXi VMware vSAN

Issue/Introduction

esxcli vsan debug object list コマンドは、実際のオブジェクト数がそれ以上であっても、最大 100 個のオブジェクトしか表示しません。

[root@<ESXi hostname>:/] esxcli vsan debug object health summary get
Health Status                                              Number Of Objects
---------------------------------------------------------  -----------------
remoteAccessible                                                           0
inaccessible                                                               0
reduced-availability-with-no-rebuild                                       0
reduced-availability-with-no-rebuild-delay-timer                           0
reducedavailabilitywithpolicypending                                       0
reducedavailabilitywithpolicypendingfailed                                 0
reduced-availability-with-active-rebuild                                   0
reducedavailabilitywithpausedrebuild                                       0
data-move                                                                  0
nonavailability-related-reconfig                                           0
nonavailabilityrelatedincompliancewithpolicypending                        0
nonavailabilityrelatedincompliancewithpolicypendingfailed                  0
nonavailability-related-incompliance                                       0
nonavailabilityrelatedincompliancewithpausedrebuild                        0
healthy                                                                  894
[root@<ESXi hostname>:/] 
[root@<ESXi hostname>:/] esxcli vsan debug object list | grep 'Object UUID' | wc -l
100
[root@<ESXi hostname>:/]

Environment

VMware vSphere ESXi

VMware vSAN

Cause

これは想定された動作(製品仕様)です。 オンラインヘルプに記載されている通り、表示されるオブジェクトの数は制限されています。

[root@<ESXi hostname>:/] esxcli vsan debug object list --help
Usage: esxcli vsan debug object list [cmd options]

Description:
  list                  Print detailed information about vSAN objects in the cluster. This command would only show 100 objects at most by default.

: このデフォルト値は ESXi のバージョンによって異なる場合があります。オンラインヘルプで最大値を確認してください。

Resolution

--max-number=#### オプションを追加してください。

[root@<ESXi hostname>:/] esxcli vsan debug object list --max-number=1000 | grep 'Object UUID' | wc -l
894
[root@<ESXi hostname>:/]

 

--all オプションも利用可能ですが、大規模な環境ではすべてのオブジェクトを表示しきれない場合があります。その場合は、--max-number オプションの使用を試みてください。

オンラインヘルプからの抜粋:

  --all                 If given, query all the objects in the cluster. Please make sure the host has enough resources to run.

  --max-number=<long>   Specify the maximum number of objects to query. Note: querying large number of objects can be very resource consuming.

Additional Information

esxcli debug object list command does not display all objects