Welcome to Port3101.org : Your BES Connection Mark forums read | View Forum Leaders
Port3101.org : Your BES Connection



Reply
LinkBack Thread Tools Display Modes
BlackBerry Ping Script
 
  #1 (permalink)  
Old 07-09-2009, 08:48 AM
BES Activated
 
Join Date: Jul 2009
Location: N/A
Posts: 9
Post BlackBerry Ping Script

Hi All


Here is a script to ping a blackberry to see if it is online. This is a good tool to use by helpdesk people.

first you will need to download SendEmail.exe from Software :: SendEmail - Send email with this free command line email client and put it in a folder that is in your path.

here is the script very simple...


@Echo Off
REM This Will Ping the Desired Blackberry and sent the responce back to the senders mailbox
Echo "You need to make sure you have "SendMail.exe" in the root of c:\
ping 127.0.0.1 -n 5 > nul
set / usr=
set /p usr=Enter Users EMail Address:%=%
cls
sendemail -f %username%@enter company name here.com -t %usr% -u "<$Confirm,RemoveonDelivery> test" -m Do Not Reply -s enter snmp mail server here.com
Echo .
Echo .
Echo Sending Ping to %usr% please look in your EMail for verification.
ping -n 10 127.0.0.1 > nul
Exit
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 07-09-2009, 10:29 AM
hdawg's Avatar
Proprietor
 
Join Date: Nov 2008
Posts: 2,257
Blog Entries: 147
Default

neat little script; why not move all of the variable settings to the top though
__________________
http://blog.port3101.org/hdawg/
Reply With Quote
  #3 (permalink)  
Old 07-10-2009, 07:53 AM
BES Activated
 
Join Date: Jul 2009
Location: N/A
Posts: 9
Default

the %username% is a system variable it is already declared. the other %usr% is the input part of the script that is reused a couple of times.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
bes 5.04 script needed unreal1171 Scripts & Tools / Hints & Tricks 1 04-04-2015 12:20 PM
Looking for a script / shortcut ... hdawg Scripts & Tools / Hints & Tricks 4 04-25-2011 04:10 PM
KB14537 - Issue with a BlackBerry MDS database upgrade script during a large upgrade hdawg Featured BlackBerry KB Articles 0 04-01-2009 03:08 PM
KB14537 - Issue with a BlackBerry MDS database upgrade script during a large data.... Si Featured BlackBerry KB Articles 0 03-05-2009 04:42 AM


All times are GMT -4. The time now is 04:55 AM.
Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2018, vBulletin Solutions, Inc.


 

SEO by vBSEO 3.3.2 PL2