Use > Configure the Content Capsule on the Management Console > Add Patch Policies to the JSP file

Add the Patch Policies to JSP file

During the Service design import, the JSP file windows_patch.jsp is automatically imported into the following location:

<CSA_JBOSS_HOME>/standalone/deployments/csa.war/propertysources.

You can modify and updated this JSP file with the patch policies available in the SA Core.

Follow the steps to view the patch policies in the SA core:

  1. Log on to the SA core.

  2. On the left pane, click Library.
  3. Click Patch Policies > Windows

    Note Patch policies are available only for Windows platform.

    On the right pane, the related patch policy names are listed.

  4. Add the patch policy names to the windows_patch.jsp file.

    For example, if patch policies with the names "win 2k8 r2 - patch supp" and "sql Patch Policy" are listed in the panel on the right, then the contents of the file would be:

    <%@ page import="com.hp.csa.web.util.CSAIntegrationHelper" %>
    <% CSAIntegrationHelper.executeCSAREST("csa/rest/catalog?userIdentifier=90d96588360da0c701360da0f1d600a1"); %>
    <% String blueprintId = request.getParameter("id"); %>
    <Property>
    	<availableValues>
    		<value>win 2k8 r2 - patch supp</value>
    		<displayName>win 2k8 r2 - patch supp</displayName>	
    		<description>Windows Patch</description>				
    	</availableValues>
    	<availableValues>
    		<value>sql Patch Policy</value>
    		<displayName>sql Patch Policy</displayName>	
    		<description>Windows Patch</description>				
    	</availableValues>	
    </Property> 
    
  5. You can add multiple patch policy names by adding the following element:

    	<availableValues>
    		<value>New Patch Policy Name</value>
    		<displayName>Display Name</displayName>
    		<description>Description</description>
    	</availableValues>
    				
  6. Save the file.