Loading

×Sorry to interrupt
Uncaught ReferenceError: addCTracking is not defined
throws at https://kb.vmware.com/resource/KM_TealiumTrackingJS?v=0.5:100:1

Refresh

Cookie Preference Center

General Information on cookies

When you visit our website, we use cookies to ensure that we give you the best experience. This information does not usually directly identify you, but it can give you a more personalized web experience. Because we respect your right to privacy, you can choose not to allow some types of cookies by clicking on the different category headings to find out more and change your settings. However, blocking some types of cookies may impact your experience on the site and the services we are able to offer. Further information can be found in our

Cookie Policy.

Strictly Necessary

Strictly Necessary

Always Active

Strictly Necessary

Strictly necessary cookies are always enabled since they are essential for our website to function. They enable core functionality such as security, network management, and website accessibility. You can set your browser to block or alert you about these cookies, but this may affect how the website functions. For more information please visit www.aboutcookies.org or www.allaboutcookies.org.

Cookie Details‎

Performance

Performance

Performance

Performance cookies are used to analyze the user experience to improve our website by collecting and reporting information on how you use it. They allow us to know which pages are the most and least popular, see how visitors move around the site, optimize our website and make it easier to navigate.

Cookie Details‎

Please confirm your settings by refreshing the page.

Functional

Functional

Functional

Functional cookies help us keep track of your past browsing choices so we can improve usability and customize your experience. These cookies enable the website to remember your preferred settings, language preferences, location and other customizable elements such as font or text size. If you do not allow these cookies, then some or all of these services may not function properly.

Cookie Details‎

Advertising

Advertising

Advertising

Advertising cookies are used to send you relevant advertising and promotional information. They may be set through our site by third parties to build a profile of your interests and show you relevant advertisements on other sites. These cookies do not directly store personal information, but their function is based on uniquely identifying your browser and internet device.

Cookie Details‎

Advertising Cookies

Consent Leg.Interest

Select All Vendors

Select All Vendors

Select All Hosts

Select All

Clear Filters

Information storage and access

Apply

Confirm My Choices Reject All Allow All

My Subscriptions

Loading

Knowledge Base

重命名代理后，vRA 清单数据收集失败并显示错误 404 (2149906)

Last Updated: 12/7/2017Categories: TroubleshootingTotal Views: 1Language:
Chinese (Simplified)JapaneseEnglish

Subscribe to get an email
newsletter with new updates

Please provide article feedback:

Symptoms

免责声明：本文为 vRA inventory data collection fails with error 404 after renaming agent 的翻译版本。尽管我们会不断努力为本文提供最佳翻译版本，但本地化的内容可能会过时。有关最新内容，请参见英文版本。

最近已重新安装或重命名代理程序。

您无法从 vRA UI 触发清单数据收集。

您无法查看清单数据收集状态信息。

Cause

这是使用新名称重新安装代理程序时的已知问题。创建端点并部署代理程序时，还会为所有这些对象创建数据库记录。如果卸载代理程序并使用新名称为该端点重新安装代理程序，则数据库内会出现不一致，从而无法收集该端点的数据。

Impact / Risks

如果没有完全按照说明操作，上述情况会造成数据不一致。在执行手动数据库编辑前，始终创建备份。

Resolution

要解决此问题，请完成以下过程

注意：确保您具有 IaaS 数据库的 DBO 访问权限。

创建 IaaS 数据库的备份。

登录 SQL Management Studio。

要确认不一致，请执行以下步骤：

打开一个新的查询选项卡，选择 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’

注意：代理 ID 可能不会对于所有主机都相同，且/或也有可能是不同于步骤 3b 中查询结果的值。

如果上述查询证明记录中存在不一致的代理名称，请完成以下步骤：

使用相应的代理 ID 更新主机：

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’ )

等待几分钟后，更改才能相应地传播。

请确保新代理服务正在运行中，并且旧代理已停止（如果旧代理已卸载，应已停止运行）。

转到 vRA UI 并确认可以请求数据收集。

Related Information

vRA inventory data collection fails with error 404 after renaming agent​

Detectable by VMware SkylineTM

Actions

Copy

link to clipboard
copied!

Print

Language:
Chinese (Simplified)JapaneseEnglish

Attachments

Additional Resources

KB
•
End Of General Availability of the Free vSphere Hypervisor (ESXi 7.x and 8.x) (2107518)

Result 1 of 1

Ask The Community

Get answers quickly from VMware experts in the community

Post Subject

CONTINUE IN COMMUNITIES

Related Products:

VMware Aria Automation

Related Versions:

VMware vRealize Automation 7.2.x

VMware vRealize Automation 7.1.x

VMware vRealize Automation 7.0.x

VMware vRealize Automation 6.2.x

Support Assistant