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
-
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.
-
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.
-
Copy the .xml file for the object to the ControlCenter\conf\templates
directory.
-
Rename the .xml file in the ControlCenter\conf\templates directory as a
.tmp file.
-
Open the .tmp file with a text editor such as WordPad.
-
For server templates, do the following steps:
-
Only keep the data that starts with
<service>
and ends with
</service>
.
-
On the data that is kept, do the following edits:
- Replace each
<
with <
- Replace each
>
with >
- Replace each
'
with '
- Replace each
"
with "
- Replace each
&
with &
-
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>
|
-
Save the .tmp file.