Test My Alerts Notifications

Overview

As a My Alerts Administrator you may wish to check how many users will receive an email at the next scheduled My Alerts run. You may also wish to check details for a specific User. Astun have provided a python script which you may download and run as required.

Requirements

  • A working installation of Python 2.7. This may be installed using the Astun 3rd Party Installer.
  • easy_install (part of SetupTools) - it may be necessary to set the http_proxy environment variable for this package to install correctly.

Installation

  • Copy the latest version of the My Alerts python script from ftp://ftp.astuntechnology.com/utilities/myalerts-0.1-py2.7.egg to your local machine. We would suggest that you copy this to a myalerts folder under Astun\Tools e.g. D:\Astun\Tools\myalerts.
  • Open a command prompt window and navigate to the folder where you copied the python script.
  • Type in easy_install  myalerts-0.1-py2.7.egg 

Running the script

The script has a couple of parameters allowing you to return different My Alerts information.

Return the Help for the script

To display the Help for the script run the following:

Display the Help
myalerts.py -h

Example Output

Return My Alerts Summary

If you run the script without any parameters you will be given a summary of how many users will receive an email at the next schedule My Alerts run.

Return My Alerts Summary Information
myalerts.py

Example Output

Return My Alerts Detailed Summary

If you wish to see a more detailed summary then run the script in verbose mode. In the example output you can see that one user will receive an email with information about 2 locations, while the other 2 will not receive any email.

Return My Alerts Summary Information
myalerts.py -v

Example Output

Return My Alerts Summary for a specific User

You may wish to simply check if a specific User is going to be receiving an email or not. You can do this by specifying the userid for the My Alerts User you wish to check. To find the correct User Id for a user click on the User in the My Alerts Adminstrator Module in Studio - see Maintaining My Alerts Users - where you will find the User Id under the User Details.

Return My Alerts Summary Information
myalerts.py -u [userid]

Example Output