BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 07-26-2006, 06:57 PM   #1 (permalink)
Knows Where the Search Button Is
 
Join Date: Jul 2006
Model: 8300
Carrier: O2
Posts: 16
Post Thanks: 0
Thanked 0 Times in 0 Posts
Question Get SRP Status

Please Login to Remove!

Hi

I'm trying to get the SRP status from a remote BES server - basically have a number of monitoring programs written, and need to be able to obtain the status of the connection to srp.na.blackberry.net

Anyone know how?

Thanks
Offline  
Old 07-26-2006, 11:27 PM   #2 (permalink)
Thumbs Must Hurt
 
Join Date: Aug 2005
Model: 6230
Posts: 74
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

I assume you want to do this through a script or something and not the BB Manager. I beleive there is a value in the DB for SRP connection. I'll have to double check my server and get back to you.
Offline  
Old 07-27-2006, 07:44 AM   #3 (permalink)
Knows Where the Search Button Is
 
Join Date: Jul 2006
Model: 8300
Carrier: O2
Posts: 16
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Its a VBScript that I have for monitoring ..... do you have the full SQL DB schema for BES 4.0/4.1?
Offline  
Old 08-07-2006, 10:44 AM   #4 (permalink)
New Member
 
Join Date: Jun 2005
Model: Curve
Carrier: AT&T/Cingular
Posts: 9
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default SRP Connection Monitor Using Resource Kit (BBRK)

I have observed that the SQL database fields do not reflect current SRP connection status.

The best way I found to monitor the SRP connection is to use the Blackberry Resource Kit. It takes a little bit of effort to set up, but it is worth it. You can create a batch file to check the status of the connection and then email you if it is down.

PS - I confirmed with RIM that the SRP test EXE included with the BES install does not validate whether an SRP ID is enabled/disabled. It only verifies connectivity over port 3101.

Last edited by amcglone : 08-07-2006 at 10:48 AM.
Offline  
Old 08-07-2006, 09:40 PM   #5 (permalink)
Thumbs Must Hurt
 
blubyu's Avatar
 
Join Date: Jun 2005
Model: 7520
Carrier: nextel
Posts: 116
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

snmp would be your best bet. Here is how I am doing it with php:

PHP Code:
$besSysHealthSrpConnectedStatexxx91;0xxx93; = snmpget(DBHOSTSNMPCOMMUNITY"1.3.6.1.4.1.3530.5.25.1.10.1"); 
This will return a 1 (connected) or 0 (disconnected). If you download a free snmp browser you will see all the things that you can query. Since you are doing vb you could probably also right in some snmp traps and have it alert you when the connection goes down.

I should add that I only have one BES server so the query above is kinda hard coded for that server. If you have more then one BES server to query then you will need to mod the snmp string above.

Last edited by blubyu : 08-07-2006 at 09:43 PM.
Offline  
Old 02-06-2007, 08:02 PM   #6 (permalink)
Knows Where the Search Button Is
 
Join Date: Jul 2005
Model: 8300
Carrier: AT&T
Posts: 27
Post Thanks: 1
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by blubyu
snmp would be your best bet. Here is how I am doing it with php:

PHP Code:
$besSysHealthSrpConnectedStatexxx91;0xxx93; = snmpget(DBHOSTSNMPCOMMUNITY"1.3.6.1.4.1.3530.5.25.1.10.1"); 
This will return a 1 (connected) or 0 (disconnected). If you download a free snmp browser you will see all the things that you can query. Since you are doing vb you could probably also right in some snmp traps and have it alert you when the connection goes down.

I should add that I only have one BES server so the query above is kinda hard coded for that server. If you have more then one BES server to query then you will need to mod the snmp string above.
Hi blubyu,

Would you be able to give me a proof of concept in getting snmp working properly with php? When I try to do
Code:
snmpget('localhost', 'public', "1.3.6.1.4.1.3530.5.25.1.10.1");
It gives me the following error
Code:
Warning: snmpget() [function.snmpget]: Error in packet: (noSuchName) There is no such variable name in this MIB. in D:\Domains\bestools3.lennar.com\public_html\snmp.php on line 4

Warning: snmpget() [function.snmpget]: This name does not exist: system.sysUpTime.6.1.4.1.3530.5.25.1.10.1 in D:\Domains\bestools3.lennar.com\public_html\snmp.php on line 4
I've also tried private and a bunch of other guesses for the community as this is my first attempt with SNMP.

I did copy the blackBerryServer.mib to the mibs directory under the php dir, added blackBerryServer.mib to .index, and restarted apache.

Thanks!

Last edited by zerofill : 02-06-2007 at 08:05 PM.
Offline  
Old 02-08-2007, 10:34 AM   #7 (permalink)
New Member
 
Join Date: Dec 2005
Model: 7290
Posts: 12
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

why don't you just write a ping request to the srp.na.blackberry.net and if a response is returned you know the srp is working. I am doing this through .NET and it works great. Check out the ISConnectible function on the following site for how to write a ping request in vbscript: microsoft.public.windows.server.scripting | Google Groups
Offline  
Old 02-09-2007, 10:30 PM   #8 (permalink)
New Member
 
Join Date: Sep 2006
Location: hk
Model: 7230
OS: 4.5
PIN: n/a
Carrier: 3
Posts: 7
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

I found that the performance monitor which can capture the BES status. Does it valid?
Offline  
Closed Thread


Thread Tools

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

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





Copyright 2004-2014 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.