vCenter ディスカバリー:ESX サーバーの識別の仕組み<!-- /*NS Branding Styles*/ --> .ns-kb-css-body-editor-container { p { font-size: 12pt; font-family: Lato; color: #000000; } span { font-size: 12pt; font-family: Lato; color: #000000; } h2 { font-size: 24pt; font-family: Lato; color: black; } h3 { font-size: 18pt; font-family: Lato; color: black; } h4 { font-size: 14pt; font-family: Lato; color: black; } a { font-size: 12pt; font-family: Lato; color: #00718F; } a:hover { font-size: 12pt; color: #024F69; } a:target { font-size: 12pt; color: #032D42; } a:visited { font-size: 12pt; color: #00718f; } ul { font-size: 12pt; font-family: Lato; } li { font-size: 12pt; font-family: Lato; } img { display: ; max-width: ; width: ; height: ; } } vCenter ディスカバリー中、ESX サーバーの識別プロセスは IRE CI ID を経由せず、3 つの識別インデックスがある「VCenterESXHostsSensor」スクリプトインクルードを経由します。 インデックス:[ esxCorrelationIdIndex, esxMorIdIndex, esxSerialIndex ] 1. esxCorrelationIdIndex - 互換性のあるメーカーの場合は ESX サーバーの correlation_id が識別子として使用され、互換性のないメーカーの場合は、correlation_id、object_id(mor_id)、vcenter_uuid の組み合わせが識別子として使用されます。互換性リストは https://www.vmware.com/resources/compatibility/search.php から抽出されます。 2. esxMorIdIndex:ESX サーバーのcorrelation_idが変更された場合は、そのmor_id、vcenter_uuid、インストールステータスです。インストールステータスが「インストール済み」または「メンテナンス中」の ESX サーバーを照会します。これは、「廃止」などの他の場合、そのmor_idsがリサイクルされ、廃止された ESX サーバーを更新すべきではない別の ESX サーバーによって使用されるためです。 3. esxSerialIndex - correlation_idが空 (または) '00000000-0000-0000-0000-0000-00000000000' (または) 'FFFFFFFF-FFFF-FFFF-FFFFFFFFFF' の場合、確認する 3 番目のインデックスは ESX サーバーのシリアル番号です。 上記の順序に従って CI を識別します。つまり、最初のインデックス (esxCorrelationIdIndex) で一致するレコードが見つかった場合、識別はそこで停止し、2 番目と 3 番目のインデックスはスキップされます。 correlation_idは ESX サーバーの一意の識別子であることが想定されますが、場合によっては、複数の ESX サーバー間で同じcorrelation_idを共有できます。その場合、上記の識別により、同じcorrelation_idを共有するすべての ESX サーバーに対して単一のレコードが作成されます。この問題の回避策は、次のように「VCenterESXHostsSensor」スクリプトインクルードのインデックスから esxCorrelationIdIndex を削除することです。 変更元 schema = {cmdb_ci_esx_server:{fixup:fixupEsx、preWriteInit:preWriteInitEsx、preWriteRels:preWriteEsxRels、 index:[ esxCorrelationIdIndex, esxMorIdIndex, esxSerialIndex ], 変更後 schema = {cmdb_ci_esx_server:{fixup:fixupEsx、preWriteInit:preWriteInitEsx、preWriteRels:preWriteEsxRels、 index: [ esxMorIdIndex, esxSerialIndex ],