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

VMware 专栏收录该内容
89 篇文章 3 订阅

删除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

NAMETYPEVALUE
capabilityCapabilitycapability
contentServiceContentcontent
serverClockdateTime“2019-10-29T03:13:28.053305Z”

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

Properties

NAMETYPEVALUE
extensionManagerManagedObjectReference:ExtensionManagerExtensionManager

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

Properties

NAMETYPEVALUE
extensionListExtension[][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

NAMETYPEVALUE
keystring“com.vmware.vic.ui”

Properties

NAMETYPEVALUE
keystring“com.vmware.vic”

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

Properties

NAMETYPEVALUE
extensionListExtension[][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 TYPENAME
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

NAMETYPEVALUE
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.

  • 0
    点赞
  • 0
    评论
  • 1
    收藏
  • 打赏
    打赏
  • 扫一扫,分享海报

参与评论
请先登录 后发表评论~
©️2021 CSDN 皮肤主题: 大白 设计师:CSDN官方博客 返回首页

打赏作者

sysinside

你的鼓励将是我创作的最大动力

¥2 ¥4 ¥6 ¥10 ¥20
输入1-500的整数
余额支付 (余额:-- )
扫码支付
扫码支付:¥2
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、C币套餐、付费专栏及课程。

余额充值