新しいクエリ タブを開き、vRA データベースを選択します。次のクエリを実行して古いエージェントと新しいエージェントのエージェント ID と名前を記録します。
select AgentID, AgentName from Agent
エージェント ID 名を確認するには(古いエージェントの ID である必要があります)、次のクエリを実行します。
Select DataCollectionStatusID, AgentID, EntityID from DataCollectionStatus Where EntityID IN (Select HostID from Host h join ManagementEndpoints e on h.ManagementEndpointID = e.ManagementEndpointID Where e.ManagementEndpointName = '@endpointName' )
ProvisioningAgentID を記録するには、次のクエリを実行します。
Select HostID, HostName, HostUniqueID, ProvisioningAgentID from Host h join ManagementEndpoints e on h.ManagementEndpointID = e.ManagementEndpointID Where e.ManagementEndpointName = '@endpointName’
Update host set ProvisioningAgentID = '{{desired-agent-id-from-step-1}}' Where HostID IN (Select HostID from Host h join ManagementEndpoints e on h.ManagementEndpointID = e.ManagementEndpointID Where e.ManagementEndpointName = '@endpointName' )
注:{{desired-agent-id-from-step-1}} は、手順 3a での希望のエージェント名に対する ID に置き換えます。
次のクエリを実行して、データ収集のステータスをリセットします。
Delete DataCollectionStatus Where EntityID IN (Select HostID from Host h join ManagementEndpoints e on h.ManagementEndpointID = e.ManagementEndpointID Where e.ManagementEndpointName = '@endpointName’ )