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

About this task

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

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

You can use the command line utility cURL to send REST calls to vCenter Operations Manager.

Prerequisites

  • 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 the minimum credentials required to remove the management pack. See Minimum Required Permissions for a Local or Active Directory User Account.

Procedure

  1. In cURL, run the following query on the vCenter Operations Manager virtual appliance to find the vRealize 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 vRealize 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.

Results

vRealize 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 vRealize Log Insight Launch in Context of the vRealize Log Insight in-product help.