删除vCenter上的插件和扩展(Client Plug-Ins & vCenter Server Extensions)

删除vCenter上的插件和扩展(Client Plug-Ins & vCenter Server Extensions)

删除vSphere界面扩展插件

vSphere Client - Administration - Client Plug-Ins列出了插件状态。

1. 使用root账号SSH登录到vCSA服务器
2. 切换目录:
   - For vCenter Server 6.x, switch to the cd /etc/vmware/vsphere-client/vc-packages/vsphere-client-serenity directory.
   - For vCenter Server 5.x, switch to the cd /var/lib/vmware/vsphere-client/vc-packages/vsphere-client-serenity directory.
3. 使用ls命令列出插件
4. 删除: rm -rf com.netapp*  //示例是com.netapp开头的插件
5. 重启服务后生效(如果删除失败,先停止服务在删除)
To restart Flash-based Web Client service, run these commands:
service-control --stop vsphere-client
service-control --start vsphere-client

To restart HTML5 vSphere Client service in vSphere 6.5 & 6.7, run these commands:
service-control --stop vsphere-ui
service-control --start vsphere-ui

下面一个示例是删除vic的界面插件:

VMware vCenter Server Appliance 6.7.0.30000
Command> shell
Shell access is granted to root
root@vCenter [ ~ ]# cd /etc/vmware/vsphere-client/vc-packages/vsphere-client-serenity
root@vCenter [ /etc/vmware/vsphere-client/vc-packages/vsphere-client-serenity ]# ls
com.vmware.nsx.ui.h5-6.4.1.8599035    com.vmware.vsan.health-6.7.0.12000
com.vmware.vic-1.4.1.1262             com.vmware.vShieldManager-6.4.1.8599035
com.vmware.vic.ui-1.4.1.1262          com.vmware.vsphere.client.h5vsan-6.7.0.12000
com.vmware.vrops.install-6.7.0.12000
root@vCenter [ /etc/vmware/vsphere-client/vc-packages/vsphere-client-serenity ]# service-control --stop vsphere-ui
root@vCenter [ /etc/vmware/vsphere-client/vc-packages/vsphere-client-serenity ]# rm -rf com.vmware.vic*
root@vCenter [ /etc/vmware/vsphere-client/vc-packages/vsphere-client-serenity ]# service-control --start vsphere-ui

已下是参考文章:Removing vSphere Web Client UI extensions from vCenter Server

删除vCenter Server Extensions

vSphere Client - Administration - vCenter Server Extensions列出了扩展状态。

1.登录https:///mob页面,看到如下部分,点击“content”

Properties

NAME TYPE VALUE
capability Capability capability
content ServiceContent content
serverClock dateTime “2019-10-29T03:13:28.053305Z”

2.进入下一个页面,找到“ExtensionManager”并点击

Properties

NAME TYPE VALUE
extensionManager ManagedObjectReference:ExtensionManager ExtensionManager

3.进入下一个页面,点击下面的(more…)查看完整扩展列表

Properties

NAME TYPE VALUE
extensionList Extension[] [extensionList"com.vmware.vim.sms"]Extension
[extensionList"com.vmware.vim.vsm"]Extension
[extensionList"VirtualCenter"]Extension
[extensionList"com.vmware.vim.stats.report"]Extension
[extensionList"com.vmware.vim.sps"]Extension
(more…)

这里是要删除vic,找到如下两项

extensionList[“com.vmware.vic.ui”]Extension
extensionList[“com.vmware.vic”]Extension

4.分表点击进入如下页面,找到如下字段复制出来(名称似乎与上面一样?)

key string “com.vmware.vic.ui”

key string “com.vmware.vic”

Properties

NAME TYPE VALUE
key string “com.vmware.vic.ui”

Properties

NAME TYPE VALUE
key string “com.vmware.vic”

5.返回上一页,如下,点击Methods表格中的“UnregisterExtension“

Properties

NAME TYPE VALUE
extensionList Extension[] [extensionList"com.vmware.vim.sms"]Extension
[extensionList"com.vmware.vim.vsm"]Extension
[extensionList"VirtualCenter"]Extension
[extensionList"com.vmware.vim.stats.report"]Extension
[extensionList"com.vmware.vim.sps"]Extension
(more…)

Methods

RETURN TYPE NAME
Extension [FindExtension](javascript:openMethodInvocationWindow(’/mob’,‘ExtensionManager’,‘findExtension’, false))
string [GetPublicKey](javascript:openMethodInvocationWindow(’/mob’,‘ExtensionManager’,‘getPublicKey’, false))
ExtensionManagerIpAllocationUsage[] [QueryExtensionIpAllocationUsage](javascript:openMethodInvocationWindow(’/mob’,‘ExtensionManager’,‘queryExtensionIpAllocationUsage’, false))
ManagedObjectReference:ManagedEntity[] [QueryManagedBy](javascript:openMethodInvocationWindow(’/mob’,‘ExtensionManager’,‘queryManagedBy’, false))
void [RegisterExtension](javascript:openMethodInvocationWindow(’/mob’,‘ExtensionManager’,‘registerExtension’, false))
void [SetExtensionCertificate](javascript:openMethodInvocationWindow(’/mob’,‘ExtensionManager’,‘setCertificate’, false))
void [SetPublicKey](javascript:openMethodInvocationWindow(’/mob’,‘ExtensionManager’,‘setPublicKey’, false))
void [UnregisterExtension](javascript:openMethodInvocationWindow(’/mob’,‘ExtensionManager’,‘unregisterExtension’, false))
void [UpdateExtension](javascript:openMethodInvocationWindow(’/mob’,‘ExtensionManager’,‘updateExtension’, false))

6.弹出如下对话框

void UnregisterExtension

Parameters

NAME TYPE VALUE
extensionKey (required) string

在VALUE中分别输入上面key string即com.vmware.vic.ui和com.vmware.vic(不要引号),并分别点击”Invoke Method“出现提示“Method Invocation Result: void“即完成。

返回vSphere Client - Administration - vCenter Server Extensions,确认已经删除成功。

7.Administration > Users > Solution Users
删除相应的solution user如果有的话。

备注:”com.vmware.vcHms” is the register extension for vSphere Replication.

你可能感兴趣的:(VMware)