Creating your own templates

You can create your own templates in the IBM® Sterling Control Center Monitor console.

About this task

To use the IBM Sterling Control Center Monitor console to create your own templates:
Tip: No template is provided to create servers or workflow SLCs in batch. You must create your own template for servers or workflow SLCs in batch.

Procedure

  1. Create an object type for which you want to create a template in the IBM Sterling Control Center Monitor console. IBM Sterling Control Center Monitor creates an entry for the object in the database.
  2. Run the exportConfig.sh utility.
    IBM Sterling Control Center Monitor retrieves the information that is stored in the database for the configuration objects, and creates .xml files for each object. The objects are stored in sub folders of conf-exported/<timestamp>/conf/. For example, rule .xml files are in the conf-exported/<timestamp>/conf/rules directory, and server definitions are in the conf-exported/<timestamp>/conf/services/nodes/ccservers of the installation directory.
  3. Copy the .xml file for the object to the ControlCenter\conf\templates directory.
  4. Rename the .xml file in the ControlCenter\conf\templates directory as a .tmp file.
  5. Open the .tmp file with a text editor such as WordPad.
  6. For server templates, do the following steps:
    1. Only keep the data that starts with &lt;service&gt; and ends with &lt;/service&gt;.
    2. On the data that is kept, do the following edits:
      • Replace each &lt; with <
      • Replace each &gt; with >
      • Replace each &apos; with '
      • Replace each &quot; with "
      • Replace each &amp; with &
  7. For all templates, replace the values between the XML tags with variables. The following table is an example of a roles template before and after you edit the file:
    Before Editing After Editing
    <role>

    <id>superuser</id>

    <ver>1</ver>

    <desc>Administrator role definition</desc>

    <!-- auths -->

    <rules>manage</rules>

    <actions>manage</actions>

    <alerts>manage</alerts>

    <processes>manage</processes>

    <users>manage</users>

    <roles>manage</roles>

    <servers>manage</servers>

    <slcs>manage</slcs>

    <systemSettings>manage</systemSettings>

    <reports>manage</reports>

    </role>

    <role>

    <id>&role;</id>

    <ver>1</ver>

    <desc>&desc;</desc>

    <!-- auths -->

    <rules>&rulespermiss;</rules>

    <actions>&actionpermiss;</actions>

    <alerts>&alertpermiss;</alerts>

    <processes>&procpermiss;</processes>

    <users>&userpermiss;</users>

    <roles>&rolespermiss;</roles>

    <servers>&serverpermiss;</servers>

    <slcs>&SLCpermiss;</slcs>

    <systemSettings>&syspermiss;</systemSettings>

    <reports>&reportpermiss;</reports>

    </role>

  8. Save the .tmp file.