The simplest way to create new repository objects in XML is to use a template. Sample XML files located in BASEDIR/smarts/conf/ics are provided for this purpose. Use sm_edit to open and save a copy of this file in your BASEDIR/smarts/local directory. For example, to create a new notification list, open the nlconfig-sample.xml file using sm_edit:

         BASEDIR/smarts/bin>sm_edit ../conf/ics/nlconfig-sample.xml
      

Modify the current notification list example to create a new one that suits your needs.

For example, change the name="Default" attribute to name="NotificationList_1". Remove everything up to the ColumnHeading declaration and then change one of the column headings to display the "Certainty" percentage of the event.

The revised portion of the sample files looks like:

<ics_config>
  
 <nlconfig name="NotificationList_1" enable="True" timestamp="0">
  <filterconfig type="Expression">
       <criterion attribute="Owner">~maint</criterion>
   <criterion attribute="Owner">~SYSTEM</criterion>
      </filterconfig>
  <columnheading 
   column="InstanceDisplayName">"Name"
  </columnheading>
  <columnheading 
   column="EventDisplayName">"Event"
  </columnheading>
  <columnheading 
   column="Certainty">"Certainty"
  </columnheading>
 </nlconfig>
</ics_config>

You can subscribe to multiple notification lists by adding multiple nlconfig elements to the nlconfig XML file. For example, you can add:

 <nlconfig name="NotificationList_2" enable="True" timestamp="0">
  <filterconfig type="Expression">
       <criterion attribute="Owner">~maint</criterion>
   <criterion attribute="Owner">~SYSTEM</criterion>
      </filterconfig>
  <columnheading 
   column="InstanceDisplayName">"Name"
  </columnheading>
  <columnheading 
   column="EventDisplayName">"Event"
  </columnheading>
  <columnheading 
   column="Certainty">"Certainty"
  </columnheading>
 </nlconfig>