Uninstalling Resource Instances from Nodes

You can install all resource instances or a selected resource instance from a node by using the GUI or the CLI.

GUI

Procedure

  1. Choose a starting point and follow the appropriate procedure.
    Starting Point Procedure
    Hosts
    1. Select Infrastructure > Hosts.
    2. Select a host.
    Applications
    1. Click Application and select an application.
    2. Click Resource Template > Resource Instances.
    Nodes
    1. Select Infrastructure > Nodes.
    2. Select a node.
    Resource Templates
    1. Select Shared Objects > Resource Templates.
    2. Click a resource template.

      You can filter resource templates using Type and Scope.

  2. Click the Resource Instances tab.
    Option Description
    All Instances
    1. In the Resource Instances view, click All Instances.
    2. Click the rows containing the instances to uninstall.
    3. Choose an uninstall option:
      • Uninstall - uninstalls the selected resources only if applications are not using it and no other resources are using it.
      • Force Uninstall - uninstalls the selected resources and issues warnings if applications or dependent resources are using it.
    Instance
    1. In the Resource Instances view, first expand the All Instances node and then the node for the resource instance type.
    2. Click a resource instance.
    3. Click one or more nodes in the Selected Nodes list and click . The nodes move to the Available Nodes list.
    4. Click Update. The selected resource instances are uninstalled only if any applications or other resources are not using it.

CLI

Procedure

  1. In the data file, specify a ResourceInstance element in base format.
    <ResourceInstance xsi:type="amxdata:ResourceInstance_base" 
    name="resourceHttpClient" />

    If installing either JDBC or JMS resource instances and if you have multiple drivers available, specify the name and version of the driver using the driverFeaturename and driverFeatureVersion elements.

    <ResourceInstance xsi:type="amxdata:ResourceInstance_base" 
    name="resourceJDBC_ORA" resourceTemplatename="ora" 
    driverFeatureName="com.tibco.tpcl.gen.oracle.jdbc.feature" 
    driverFeatureVersion="11.2.100.001"  />

    To store this driver version as the default driver in the resource template, use the setDriverAsDefault option and set it to true. All resource instances created using this resource template will now use this driver.

    <ResourceInstance xsi:type="amxdata:ResourceInstance_base" 
    name="resourceJDBC_ORA" resourceTemplatename="ora" 
    driverFeatureName="com.tibco.tpcl.gen.oracle.jdbc.feature" 
    driverFeatureVersion="11.2.100.001" 
    setDriverAsDefault="true" />
  2. In the build file, set the action attribute of the AMXAdminTask element to uninstall and the objectSelector attribute to Environment/Node/ResourceInstance. To perform a force uninstall, specify the -force option and set it to true.
    <AMXAdminTask action="uninstall"
    			objectSelector="Environment/Node/ResourceInstance"/>