Quantcast
Channel: VMware Communities : Discussion List - vSphere Client SDK
Viewing all articles
Browse latest Browse all 2218

Help needed with the legacy script and HTML Bridge

$
0
0



Hi,


I'm trying to get it work.


     I added

</div>

<div>

     scriptPlugin.enabled = true</div>

<div>

      

to C:\ProgramData\VMware\vSphere Web Client\webclient.properties_ and restarted the VMware vSphere Web Client service.


Then, I registered my plug-in in vCenter:


      

</div><div>     (vim.Extension) {</div><div>        description = (vim.Description) {</div><div>           label = 'Host Power Tools for VMware',</div><div>           summary = 'Host Power Tools for VMware'</div><div>        },</div><div>        key = 'com.infinidat.powertools.develop.Guys-MacBook-Air',</div><div>        company = 'INFINIDAT, Ltd',</div><div>        type = 'com.vmware.vim.viClientScripts',</div><div>        version = '1.6.11.15',</div><div>        server = (vim.Extension.ServerInfo) [</div><div>           (vim.Extension.ServerInfo) {</div><div>              url = 'https://172.16.9.45:8081/plugin/info',</div><div>              description = (vim.Description) {</div><div>                 label = 'Host Power Tools for VMware',</div><div>                 summary = 'Host Power Tools for VMware'</div><div>              },</div><div>              company = 'INFINIDAT, Ltd',</div><div>              type = 'com.vmware.vim.viClientScripts',</div><div>              adminEmail = (str) [</div><div>                 'info@infinidat.com'</div><div>              ],</div><div>           }</div><div>        ],</div><div>        client = (vim.Extension.ClientInfo) [],</div><div>        taskList = (vim.Extension.TaskTypeInfo) [</div><div>              dynamicProperty = (vmodl.DynamicProperty) [],</div><div>              taskID = 'f8d2e0e2-7871-4128-8cc4-256d07002c23'</div><div>           }</div><div>        ],</div><div>        eventList = (vim.Extension.EventTypeInfo) [],</div><div>        faultList = (vim.Extension.FaultTypeInfo) [],</div><div>        privilegeList = (vim.Extension.PrivilegeInfo) [],</div><div>        resourceList = (vim.Extension.ResourceInfo) [],</div><div>        lastHeartbeatTime = 2014-10-08T23:45:36.904+03:00,</div><div>        extendedProductInfo = (vim.ext.ExtendedProductInfo) {</div><div>        },</div><div>        managedEntityInfo = (vim.ext.ManagedEntityInfo) [],</div><div>        shownInSolutionManager = false,</div><div>        solutionManagerInfo = (vim.ext.SolutionManagerInfo) {</div><div>           tab = (vim.ext.SolutionManagerInfo.TabInfo) [],</div><div>        }</div><div>     }</div><div>     


     When I go to https://172.16.9.45:8081/plugin/info I get:

      

</div><div>     &lt;scriptConfiguration version="1.6.11.15"&gt;</div><div>         &lt;key&gt;com.infinidat.powertools.develop.Guys-MacBook-Air&lt;/key&gt;</div><div>         &lt;multiVCsupported&gt;false&lt;/multiVCsupported&gt;</div><div>         &lt;supportNonSecureCommunication&gt;true&lt;/supportNonSecureCommunication&gt;</div><div>         &lt;description&gt;Host Power Tools for VMware&lt;/description&gt;</div><div>         &lt;name&gt;Host Power Tools for VMware&lt;/name&gt;</div><div>         &lt;vendor&gt;INFINIDAT, Ltd&lt;/vendor&gt;</div><div>        &lt;extension id="com.infinidat.powertools.develop.Guys-MacBook-Air.InventoryView.HostSystem"&gt;</div><div>           &lt;extendedPoint&gt;vsphere.core.host.manageViews&lt;/extendedPoint&gt;</div><div>           &lt;object&gt;</div><div>              &lt;name&gt;#{monitorTab.label}&lt;/name&gt;</div><div>              &lt;componentClass className="com.vmware.vsphere.client.htmlbridge.HtmlView"&gt;</div><div>                 &lt;object&gt;</div><div>                    &lt;root&gt;</div><div>                       &lt;url&gt;https://172.16.9.45:8081/plugin/redirect/host&lt;/url&gt;</div><div>                       &lt;legacyScriptPlugin&gt;true&lt;/legacyScriptPlugin&gt;</div><div>                    &lt;/root&gt;</div><div>                 &lt;/object&gt;</div><div>              &lt;/componentClass&gt;</div><div>           &lt;/object&gt;</div><div>        &lt;/extension&gt;</div><div>     &lt;/scriptConfiguration&gt;</div><div>     



The information looks correct, but the tab doesn't show in the web client, and I don't see incoming request in my plug-in log.


     Web client version is Version 5.5.0 Build 1750785, vCenter version is 5.5.0, build 1750787.


What am I missing?



Viewing all articles
Browse latest Browse all 2218

Trending Articles