Jump to content


Photo
- - - - -

Sms Modem Based Paging Example


  • Please log in to reply
3 replies to this topic

#1 David Leith

David Leith

    Guru

  • Uptime Software
  • PipPipPipPip
  • 168 posts
  • Gender:Male
  • Location:Toronto, Ontario

Posted 13 December 2006 - 06:51 PM

This example makes use of up.time's custom 'Script Alert' option within an alert profile. This custom script uses a Windows tool named ActiveXperts SMS paging ToolKit to send out SMS text message alerts via a modem installed on the monitoring station. Unfortunately the SMS ToolKit isn't free but a number of other tools can be used ranging from freeware to corporate messaging engines.

How it works.

First, install the SMS Toolkit from ActiveXperts here

Now to setup this custom alert script simply create a new alert profile and enter the path to the attached 'alert.bat' script within the 'Script Alert' section. For example create a new alert profile with these settings:

Name of Alert Profile: Send SMS Pager Alert
Script Alert: Checked
Script Path: c:\scripts\alert.bat
Available Notification Group: NotifySysAdmins (or whatever groups you like)

When up.time triggers this alert profile it will run the 'alert.bat' script one time for each user within the various notification groups you have selected. It will pass the service monitor message and the target users 'Pager Number' to the script via the environment variables 'UPTIME_MESSAGE' and 'UPTIME_MOBILE'. The alert.bat script will then run the commands specific to the SMS Pager toolkit binaries in order to send the page to your users.

Attached Files
smsexample.zip contains:
- alert.bat: a simple wrapper batch file to execute the vbs script that sends the SMS message. up.time executes the batch file directly and the batch worries about the specifics of launching the vbs script.
- sendsms.vbs: the core logic to send off the SMS message using the SMS ToolKit resources.

alert.bat may need to be updated if you use different paths to the included files.

sendsms.vbs may need to be updated to the specifics of your installed modem, it includes some commenting to point you in the right direction. It also includes a debugging option to direct testing messages to a log file.

Please note that debugging of this file is not supported directly by uptime.

Attached Files


David Leith
Technical Product Manager

uptime software ...because downtime is not an option

#2 Arti

Arti

    Member

  • Members
  • Pip
  • 6 posts

Posted 29 August 2010 - 10:24 AM

Hello David, Thanks a lot. The attached file has only one smsexample file but the bat files are missing.

Is it possible to provide the file again.

regards,
Arti

QUOTE (David Leith @ Dec 13 2006, 07:51 PM) <{POST_SNAPBACK}>
This example makes use of up.time's custom 'Script Alert' option within an alert profile. This custom script uses a Windows tool named ActiveXperts SMS paging ToolKit to send out SMS text message alerts via a modem installed on the monitoring station. Unfortunately the SMS ToolKit isn't free but a number of other tools can be used ranging from freeware to corporate messaging engines.

How it works.

First, install the SMS Toolkit from ActiveXperts here

Now to setup this custom alert script simply create a new alert profile and enter the path to the attached 'alert.bat' script within the 'Script Alert' section. For example create a new alert profile with these settings:

Name of Alert Profile: Send SMS Pager Alert
Script Alert: Checked
Script Path: c:\scripts\alert.bat
Available Notification Group: NotifySysAdmins (or whatever groups you like)

When up.time triggers this alert profile it will run the 'alert.bat' script one time for each user within the various notification groups you have selected. It will pass the service monitor message and the target users 'Pager Number' to the script via the environment variables 'UPTIME_MESSAGE' and 'UPTIME_MOBILE'. The alert.bat script will then run the commands specific to the SMS Pager toolkit binaries in order to send the page to your users.

Attached Files
smsexample.zip contains:
- alert.bat: a simple wrapper batch file to execute the vbs script that sends the SMS message. up.time executes the batch file directly and the batch worries about the specifics of launching the vbs script.
- sendsms.vbs: the core logic to send off the SMS message using the SMS ToolKit resources.

alert.bat may need to be updated if you use different paths to the included files.

sendsms.vbs may need to be updated to the specifics of your installed modem, it includes some commenting to point you in the right direction. It also includes a debugging option to direct testing messages to a log file.

Please note that debugging of this file is not supported directly by uptime.



#3 David Leith

David Leith

    Guru

  • Uptime Software
  • PipPipPipPip
  • 168 posts
  • Gender:Male
  • Location:Toronto, Ontario

Posted 07 September 2010 - 07:17 PM

Hi Arti,
I just double checked the posted zip and it does contain the example vbs and example bat within a folder in the zip archive.

Cheers,

Dave.

#4 esparragoj

esparragoj

    Member

  • Members
  • Pip
  • 1 posts

Posted 09 September 2011 - 06:14 PM

QUOTE (David Leith @ Sep 7 2010, 08:17 PM) <{POST_SNAPBACK}>
Hi Arti,
I just double checked the posted zip and it does contain the example vbs and example bat within a folder in the zip archive.

Cheers,

Dave.


Hello, this zip files says it is empty? Can you somebody please post the batch file? Thanks.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users