Instructions to use the Sample notification consumer utility
--------------------------------------------------------------
This sample utility that automatically triggers emails on occurrence of a notification event. You can customize this utility further as per your requirement.

Important: This utility is provided as is and no enhancements or fixes to it are supported.

To use the utility:

1. Complete these prerequisite steps:
- Ensure that you have configured an SMTP server.
- Ensure that you have the javax.mail-1.6.2.jar file on the system where you are planning to run the utility.
- Add the path to the following files javax.mail-1.6.2.jar and SKLMSample.jar in the "CLASSPATH" variable based on the underlying JAVA (OpenJDK or IBM Java).

2. Modify the properties file:
Open the server_config.properties file in edit mode and modify the default values for the following properties:	
- notificationFilePath - Depending on your operating system, specify the Notifications folder path.

By default, the Windows path is provided: C:\Program Files\IBM\SKLM301\agent\notifications

- smtpServerIp - Specify the IP address of your SMTP host server.
- emailID - Specify the appropriate email ID where you want to the emails to be sent. Separate multiple email IDs with a comma (,).

3. From the command line, run the following command:
java com.ibm.sklm.notification.sample.SampleEmailNotification <server_config.properties file path>

For example:
(Windows) java com.ibm.sklm.notification.sample.SampleEmailNotification C:\Program Files\IBM\SKLM301\agent\notifications

(Linux) java com.ibm.sklm.notification.sample.SampleEmailNotification /opt/IBM/SKLM301/agent/notifications


Note: The utility creates a watch service that continuously monitors the Notifications folder for a new event file. Hence, ensure that the utility runs continuously.
