Skip to Content
Author's profile photo Srithar Amirthalingam

Setting up Email Alerts in SUM Tool

Setting up Email Alerts in SUM Tool in UNIX

Below are detailed steps with screen shot to configure email ALERTS in SUM tool.
Once configured, SUM will send a email to the configured email ID whenever the SUM tool is waiting for user input.
This is useful as some of the upgrade phases ranges from few minutes to few hours.

Pre-requisites:

  • Find out the SMTP server name and port (you can find it from TCODE SCOT in a SAP ABAP system)

Steps:

1. Create the script and place it in a location that can be accessed by SUM tool

> 1068 $ cat email_pq3.sh

#!/bin/bash

SUBJECT=”SUM tool need input for PQ3″

smtp=<smtp_server_name>:<smtp_port>

EMAIL=<your_email_address>

echo “SUM tool need input” | mailx -s “$SUBJECT” “$EMAIL”

2. Test the script

– verify the script can run without errors

– ensure you receive the email when you execute the script

3. Configuration in SUM tool (screen shot attached)

3.1. Launch SUM tool

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

3.3. For “Program” select the script that you created

3.4. Leave “Alert File” default value

3.5. Set “Alert Delay” (default 600s=10min, I usually set it to 120s)

3.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

3.7. Ensure the “Set Active” checkbox is checked

3.8. Press OK

SUM_GUI_EMAIL_ALERT.png

4. Now whenever the SUM tool need an input from the user, once the time specified in “Alert Delay” is reached you will receive an email.


5. For WINDOWS VBS script can be created using the sample script in http://scn.sap.com/thread/1647075

Assigned tags

      21 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Himanshu sharma
      Himanshu sharma

      Nice info!!

      Regards,

      Himanshu

      Author's profile photo Former Member
      Former Member

      Thanks for this, makes life a lot easier.

      Author's profile photo Former Member
      Former Member

      Thanks! This has always helped.

      Is there a way we can setup these alerts while using DMO - SUM SP 13 ( Starting SUM tool using saphostagent) ? I dont see any option to configure alerts in there

      Regards,

      Jayesh

      Author's profile photo Former Member
      Former Member

      HI!

      Thanks for article, really helpful. But i change the script.

      For me its look:

      #!/bin/bash

      SUBJECT="SUM tool need input for U"

      smtp="smtp=sever:port"

      EMAIL=my_email

      echo "SUM tool need input" | mailx -v -s "$SUBJECT" -S $smtp $EMAIL

      Author's profile photo Yogesh Patel
      Yogesh Patel

      Hello All,

      I have added windows script at : http://scn.sap.com/docs/DOC-68971


      Thanks

      Yogesh

      Author's profile photo Quintina Li
      Quintina Li

      Good share !

      But in latest sum tool sp16 , we can't find alter function in new gui ...

      Also no mentioned in sum guide, can we say that there is no alter function in sp16 ?

      Thanks,

      Quintina

      Author's profile photo Yogesh Patel
      Yogesh Patel

      Hello Quintina,

      Since new SUM tool allow multiple logins in to interact with tool for : Update of SAP Systems Using Software Update Manager (ABAP+Java Systems) and Update of SAP Systems Using Software Update Manager (ABAP Systems).

      If you go to guide :

      Update of SAP Systems Using Software Update

      Manager 1.0 SP16

      Technology: Java

      Platform: Windows

      Database: MS SQL Server

      Page number : 98

      Section : 7.4.6 Using the Alert Function

      Please let me know if you need more information

      Regards,

      Yogesh

      PS: Alerting is available as :Update of SAP Systems Using Software Update Manager (Java Systems)

      Author's profile photo Quintina Li
      Quintina Li

      Thank you very much for your answer. But my case is on a combination of HPUX_IA64 SAP HANA and ERP(ABAP ONLY).

      I checked the corresponding sum guide and also download sum tool but found nothing about email alter function...

      Can I conclude that this function is only available in several type of sum tool BUT not available in sum (HP-UX+HANA ABAP)?

      Thanks,

      Quintina

      Author's profile photo Quintina Li
      Quintina Li

      But my case is a combination of HP-UX+ SAP HANA ERP(ABAP ONLY).

      I checked corresponding sum guide and also download sum tool but found nothing about alert function, can I conclude that this function is not available in this type of SUM ?

      Customer complains about this ...

      Thanks ,

      Quintina

      Author's profile photo Matt Fraser
      Matt Fraser

      It appears that in the new sp16 version of the SUM tool the alert function (described in chapter A.3.12 of the latest guide) only works with NETBIOS messages sent between hosts. I must admit, to my thinking this is a significant downgrade, as previously one could call scripts or programs on the host that could send emails. An email is significantly more useful for alerting than NETBIOS messages (which are blocked on many corporate PCs these days, anyway).

      I don't know about you, but when I run upgrades, especially production upgrades, they tend to run all night, and I do not sit and stare at my monitor for hours waiting for it to tell me that I need to do something. Instead I set SUM to send me an email when it needs input, and I configure my email to forward that as a text message to my phone, and then I go to sleep, confident that the program will wake me up when it needs me.

      Author's profile photo Former Member
      Former Member

      Below is what can be setup as a cron job to check for alerts. Not sure if you already considered this as an option.


      • script is as below:


      [ -f /usr/sap/SID/SUM/abap/tmp/upalert.log ] && (cat /usr/sap/SID/SUM/abap/tmp/upalert.log | mail -s "SAPup Alert"  email@domain.com 2>&1)

      Author's profile photo Matt Fraser
      Matt Fraser

      Thanks, though I'm not sure how to set that up on a Windows host, but even so, it's still a regression compared to the prior functionality. And, don't we need to still configure SUM to send the alert to that logfile in the first place?

      Author's profile photo Former Member
      Former Member

      the upalert.log file is what get generated everytime SUM tool waits for an input.

      I believe on windows you can create a .bat to look for that upalert.log file and throw an alert via the task scheduler.

      The script above works perfectly for any unix environment.

      Author's profile photo Quintina Li
      Quintina Li

      Hi all,

      I want to update to all

      -SUM Java has the alerting functionality available in SP16 as described in the corresponding upgrade guides

      - SUM ABAP does not have the alerting functionality in SUM SP16

      It is planned to be released together with SUM SP18 (planned release is in october of this year).  This date is an inofficial release date and still due to changes.

      A feature which we could already use is the Observer Mode of SUM which will enable you to monitor the Upgrade in the browser from a mobile device.

      Thanks,

      Quintina

      Author's profile photo Matt Fraser
      Matt Fraser

      Thank you for the update, Quintina. October, unfortunately, is going to be too late for my current upgrade project. Observer mode doesn't help much, as the point is to be able to sleep during long-running processes of a large upgrade with some assurance that one will be awakened when attention is required, so as to keep the upgrade moving along without stalls or delays.

      I know some clever people have written VBscripts and scheduled them in the OS at 5-minute intervals to look for the upalert file and then email it when found, and I suppose now I'll be working on developing such a thing myself, but it doesn't take away from the fact that a feature that has been in R3up, SAPup, and then SUM for probably 20+ years shouldn't have disappeared in the first place.

      Apologies for the grumpiness. Perhaps I need another coffee.

      Author's profile photo Former Member
      Former Member

      I think we should appreciate the pace at which the changes are being made. I understand we lose some features but do have a lot of cool features and ofcourse have work around for functionalities like email. Again - its just a personal opinion.
      In the end the developers have done a great job in building the new UI is what I feel.

      Author's profile photo Yogesh Patel
      Yogesh Patel

      Please look at this below

      This was taken from version as below ...

      Author's profile photo Matt Fraser
      Matt Fraser

      That is in SP14. This option is gone in SP16. And SP14 is not an option to use for an upgrade to EhP8.

      Author's profile photo Former Member
      Former Member

      Hi,

      If not there in standard for SP16, there must be breakpoints one can check with a script?

      BR,

      Samuli

      Author's profile photo Daniel Masaladzic
      Daniel Masaladzic

      Hey there,

      just wanted to let you know, there seems to be alerting in SP18. Please see the SUM guide (pp 49) for more information.

      Bye
      Daniel

      Author's profile photo Yogesh Patel
      Yogesh Patel

       

      Software Update Manager 1.0 SP19 MailNotifier for ABAP