VMware

pluginExtensionManager.pl

VERSION 2 Published

Created on: Oct 3, 2009 10:57 AM by lamw - Last Modified:  Oct 4, 2009 6:50 PM by lamw

Script to retrieve the list of extensions installed on your vCenter server OR to unregister a specific plugin that has been installed.

Requirements:
vCenter 2.5 or 4.0
vSphere SDK for Perl or vMA 4.0

Sample Execution:

List installed plugins against vCenter
[vi-admin@scofield ~]$ ./pluginExtensionManager.pl --server reflex.primp-industries.com --username primp --operation list

------------------------------------------------------
Label: vCenter Hardware Status
Summary: Displays the hardware status of hosts (CIM monitoring)
Version: 4.0
Company: VMware, Inc.
Key: cim-ui
Server info:
        Admin Email: noreply@vmware.com -
        Company: VMware, Inc.
        Description:
        Type: com.vmware.vim.viClientScripts
        Url: https://reflex.primp-industries.com:8443/cim-ui/scriptConfig.xml


------------------------------------------------------
Label: vCenter Storage Monitoring
Summary: Storage Monitoring and Reporting
Version: 4.0
Company: VMware Inc.
Key: com.vmware.vim.sms

------------------------------------------------------
Label: report
Summary: report
Version: 1.0.0
Key: com.vmware.vim.stats.report
Server info:
        Company: VMware, Inc.
        Description:
        Type: HTTP
        Url: https://reflex.primp-industries.com:8443/statsreport/vicr.do


------------------------------------------------------
Label: vCenter Service Status
Summary: Displays the health status of vCenter services
Version: 4.0
Company: VMware, Inc.
Key: health-ui
Server info:
        Admin Email: noreply@vmware.com -
        Company: VMware, Inc.
        Description:
        Type: com.vmware.vim.viClientScripts
        Url: https://reflex.primp-industries.com:8443/health-ui/scriptConfig.xml


------------------------------------------------------
Label: hostdiag
Summary: hostdiag
Version: 1.0
Key: hostdiag

------------------------------------------------------
Label: VirtualCenter dynamic events and tasks
Summary: Extension for declaring dynamic events, tasks and faults from within the VirtualCenter server
Version: 1.0
Key: VirtualCenter

------------------------------------------------------
Label: com
Summary: com
Version: 4.0
Key: com.vmware.vSphereWebServicesSDK.primp-industries.com
Server info:
        Admin Email: william.lam@primp-industries.com -
        Company: primp-industries.com
        Description:
        Type: com.vmware.vim.viClientScripts
        Url: https://reflex.primp-industries.com/ui/plugin/primp.xml




Remove specific plugin from vCenter (use operation 'list' to figure out the key for plugin):
[vi-admin@scofield ~]]$ ./pluginExtensionManager.pl --server reflex.primp-industries.com --username primp --operation remove --key com.vmware.vSphereWebServicesSDK.primp-industries.com

Removing plugin key: "com.vmware.vSphereWebServicesSDK.primp-industries.com"



Alternatively, you can also remove any of the plugins by using the Manager Object Browser. You just need to point your web browser to your vCenter server:https://<your_vc_server>/mob

1. Click on content


http://img59.imageshack.us/img59/3299/15398269.png

2. Locate and click on ExtensionManager


http://img269.imageshack.us/img269/3717/71270742.png

3. Click on the plugin you're interested in removing


http://img36.imageshack.us/img36/2893/65422162.png

4. Record the plugin key id which is required to remove the plugin


http://img197.imageshack.us/img197/9592/50082541.png

5. Go back to the previous page and at the bottom click on the function UnregisterExtension, a new window will pop-up which will ask for the plugin key. Enter the key and then click on Invoke Method to remove the plugin.


http://img190.imageshack.us/img190/3784/94366121.png

6. You can refresh the page and you'll notice the plugin is no longer available and you can restart your vSphere Client to see the plugin has no been removed.

Attachments:
Average User Rating
(0 ratings)




Comments

There are no comments on this document

 

Incoming Links

Developer Social Media

Communities