When you enable launch in context on a vCenter Operations Manager instance, Log Insight creates an instance of the Log Insight adapter on the vCenter Operations Manager instance.

This instance of the adapter remains in the vCenter Operations Manager instance when you uninstall Log Insight. As a result, the launch in context menu items continue to appear in the actions menus, and point to a Log Insight instance that no longer exists.

To disable the launch in context functionality in vCenter Operations Manager, you must remove the Log Insight adapter from the vCenter Operations Manager instance.

You can use the command line utility cURL to send HTTP POST requests to vCenter Operations Manager.

Verify that cURL is installed on your system.

Verify that you know the IP address or host name of the target vCenter Operations Manager instance.

Depending on the vCenter Operations Manager license that you own, verify that you have minimum user credentials.

vCenter Operations Manager License

Minimum Required Credentials

Standard

Default Admin user credentials

Advanced or Enterprise

Read Only user credentials

Note

If you want to use Active Directory or vCenter Server accounts, verify that these accounts are added in vCenter Operations Manager Custom user interface. For information about adding active directory users in vCenter Operations Manager, see the VMware vCenter Operations Manager Administration Guide.

1

In cURL, run the following query on the vCenter Operations Manager virtual appliance to find the Log Insight adapter.

curl -k --user admin username:passwd
https://URL:443/HttpPostAdapter/OpenAPIServlet -d
"action=getRelationships&resourceName=Log Insight
Server&adapterKindKey=LogInsight&resourceKindKey=LogInsightLogServer&
getChildren=true&getParents=false"

Where admin username and passwd are the administrator user credentials, and URL is the IP address of the vCenter Operations Manager instance.

The query returns a result in the following format.

resourceName=Log Insight Server&adapterKindKey=LogInsight&resourceKindKey=LogInsightLogServer

Parents:

Children:
resourceName=Log Insight Serverlog insight location&
adapterKindKey=LogInsight&
resourceKindKey=LogInsightLogServerHost&
identifiers=HOST::log insight location

Where log insight location is the HOST value of the child object of the queried resource. You can use this value in the command that removes the adapter instance.

2

Run the following command to remove the Log Insight adapter.

curl -k --user admin username:passwd https://URL:443/HttpPostAdapter/OpenAPIServlet -d 
"action=addRemoveParentChildRelationship&parentResource=Log Insight Server&adapterKindKey=LogInsight&
resourceKindKey=LogInsightLogServer&addFlag=false&
childResources=Log Insight Serverlog insight location,LogInsight,LogInsightLogServerHost,HOST::log insight location"

Where admin username and passwd are the administrator user credentials, URL is the IP address of the vCenter Operations Manager instance, and log insight location is the host location of the child resource of the relationship you want to remove.

Log Insight launch in context items are removed from the menus in vCenter Operations Manager. For more information about launch in context, see the topic Log Insight Launch in Context of the Log Insight in-product help.