Quantcast
Channel: SCN : All Content - SAP NetWeaver Administrator
Viewing all articles
Browse latest Browse all 5139

Setting up SMS/Email Alerts in SUM Tool For Windows

$
0
0

Setting up SMS/Email Alerts in SUM Tool in MS WINDOW

 

Steps below is Showing you how to configure SMS and Email ALERT in SUM tool.

Once it is configured, SUM will send a email/SMS to the configured email ID and SMS when the SUM tool is waiting for user input.

 

Pre-requisites:



Steps:


1. Create VB script (Alert.vbs) and place it in a location that can be accessed by SUM

Set objMail = CreateObject("CDO.Message")

Set objConf = CreateObject("CDO.Configuration")

Set objFlds = objConf.Fields

objFlds.Item("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2 'cdoSendUsingPort

objFlds.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "Your SMTP Server" 'your smtp server domain or IP address goes here

objFlds.Item("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25 'default port for email

'uncomment next three lines if you need to use SMTP Authorization

'objFlds.Item("http://schemas.microsoft.com/cdo/configuration/sendusername") = "your-username"

'objFlds.Item("http://schemas.microsoft.com/cdo/configuration/sendpassword") = "your-password"

'objFlds.Item("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 1 'cdoBasic

objFlds.Update

objMail.Configuration = objConf

objMail.From = "email From "

objMail.To = "exampleemail@servername.com, examplephone@servername.com"

objMail.Subject = "SUM is Waiting for User Input"

objMail.TextBody = "Please Check SUM"

objMail.Send

Set objFlds = Nothing

Set objConf = Nothing

Set objMail = Nothing

 

Note: Save this file with file extension .VBS

 

2. Create the BAT (SendAlert.bat) file and place it in a location that can be accessed by SUM

X:\usr\sap\SID\SUM\SUMalertscript\Alert.vbs


3. Test the script

- verify the script can run without errors

- ensure you receive the email/SMS when you execute the script

 

4. Configuration in SUM tool (screen shot attached)

4.1. Launch SUM tool

4.2. select SUM tool ==> Select Alert ==> Alert Info

4.3. For "Program" select the script that you created SendAlert.bat

4.4. Leave "Alert File" default value or You can create file as you want with text in it

4.5. Set "Alert Delay" (default 500s)

4.6. Test the alert mechanism works by clicking the "Test" button

     - clicking the test button will call the script you prepared in step 1

     - so this should trigger an email alert

4.7. Ensure the "Set Active" check-box is checked

4.8. Press OK

 

 

Ref: Setting up Email Alerts in SUM Tool


Viewing all articles
Browse latest Browse all 5139

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>