BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 08-02-2006, 02:56 PM   #241 (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

Please Login to Remove!

Quote:
Originally Posted by qc_metal
By the way - I've added a new feature to the servers query page, it will show you the status of the BlackBerry services, and allow you to stop/start them if needed...!

I think I'll take Blubyu's lead and create an options page. Blubyu, how are you saving your settings? XML?

Regards,
Rob
Well for the one option I have now I am writing over the value in my config.php page. I need to find a better way to do it. I was thinking of XML but then that is one more thing I have to learn I have been working on getting some basic snmp stuff working. I can display total licences and licences used now. That has been taking up most of my time.
Offline  
Old 08-02-2006, 03:27 PM   #242 (permalink)
CrackBerry Addict
 
qc_metal's Avatar
 
Join Date: Mar 2005
Location: Rockford, IL
Model: 9530
OS: 4.7.x
Carrier: Verizon
Posts: 590
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

VERY nice!

How are you able to enumerate the SNMP values?

I have also updated my server status page with SRP information, BES version, etc. - I'll release the update later today.

Rob
__________________
Provision, maintain, and report on users via web: the NEW BerryStats | FAQ
Offline  
Old 08-02-2006, 04:03 PM   #243 (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

I downloaded a MIB browser and used it to look for the specific OID values. Since I know next to nothing about snmp it took quite a while to get back anything I sent my test code to jibi last night but he couldn't get it to return any data. I think I am the only one running my php on a linux box so if things work for me they don't always work for people running windows

I have been trying all day to get php installed on a windows vm server so that I can have a test system setup that is more like most people run. Then I could put my code on the BES server and do all kinds of things (add, remove users, run the sdk tools, start, stop services). The way it is setup now, I create an ssh connection between my linux box and the BES and run things that way. Again, it works for me but not for everybody.
Offline  
Old 08-02-2006, 04:28 PM   #244 (permalink)
CrackBerry Addict
 
qc_metal's Avatar
 
Join Date: Mar 2005
Location: Rockford, IL
Model: 9530
OS: 4.7.x
Carrier: Verizon
Posts: 590
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by musy
apologies qc_metal i didnt read ur post correctly if your email hosts have variable hostnames then use this substring, this will work for 2003/2000 exchange AD domains only

select substring(cast (UserConfig.serverdn as varchar(100)), (patindex('%Servers/cn=%', UserConfig.serverdn) +11), (patindex('%/cn=Microsoft%', UserConfig.serverdn)) - (patindex('%Servers/cn=%', UserConfig.serverdn) +11)).

That worked great - thanks again!
__________________
Provision, maintain, and report on users via web: the NEW BerryStats | FAQ
Offline  
Old 08-02-2006, 05:07 PM   #245 (permalink)
CrackBerry Addict
 
qc_metal's Avatar
 
Join Date: Mar 2005
Location: Rockford, IL
Model: 9530
OS: 4.7.x
Carrier: Verizon
Posts: 590
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Updated to version .2 (.ASP) edition.

Added server status page so you can stop/start services, view message stats for individual servers, view SRP numbers, BES version, etc. - good information for DR purposes.

Download link - - - >
http://www.vbshf.com/vbshf/forum/for...tachmentid=261
__________________
Provision, maintain, and report on users via web: the NEW BerryStats | FAQ

Last edited by qc_metal : 08-03-2006 at 03:27 PM.
Offline  
Old 08-02-2006, 05:18 PM   #246 (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

Quote:
Originally Posted by qc_metal
Updated to version .2 (.ASP) edition.

Added server status page so you can stop/start services, view message stats for individual servers, view SRP numbers, BES version, etc. - good information for DR purposes.

Download link - - - >
http://www.vbshf.com/vbshf/forum/for...tachmentid=257
If you are going to start puting the ability to start and stop services, you might want to start adding user authentication to your page before somebody like me comes along and wonders what *this* button does
Offline  
Old 08-02-2006, 05:48 PM   #247 (permalink)
CrackBerry Addict
 
qc_metal's Avatar
 
Join Date: Mar 2005
Location: Rockford, IL
Model: 9530
OS: 4.7.x
Carrier: Verizon
Posts: 590
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by blubyu
If you are going to start puting the ability to start and stop services, you might want to start adding user authentication to your page before somebody like me comes along and wonders what *this* button does
Well, the built-in security for the services should keep people from doing that, but it is a good thought nonetheless.

Had a minor glitch in the serverstatus.asp page - - updated the download.
__________________
Provision, maintain, and report on users via web: the NEW BerryStats | FAQ
Offline  
Old 08-03-2006, 09:00 AM   #248 (permalink)
New Member
 
Join Date: Aug 2006
Model: 7100
Posts: 4
Post Thanks: 0
Thanked 0 Times in 0 Posts
Smile New to This

Ok I am new to all this. I'm tring to read the "README.TXT" file but I am not quiet understanding it specifically the config.asp. What if I have more than one Blackberry server.

For those that are not aware of how to use ASP can you explain the process in simple terms i.e. Step 1 -do this, Step 2-do that, etc etc etc





'===============================================
Constants for BerryStats asp page

Const DBHOST = "DBserver" ====is this the host machine name?
Const DBPORT = "1433"
Const DBNAME = "BESMGmt"
Const DBUSER = "dbuserid"
Const DBUSERPW = "dbuserpassword"
Const DBADMIN = "dbadminuserid"
Const DBADMINPW = "dbadminpassword"
Const SSHUSER = ""
Const SSHPASS = ""

'LOGSLocation - for future use, but this will be the location of your BES logs
Const LOGSLOCATION = "D:\logs"

'Homepage URL when you click on the logo '
Const HOMEURL = "./index.asp"

Last edited by casaestrada : 08-03-2006 at 10:02 AM.
Offline  
Old 08-03-2006, 10:06 AM   #249 (permalink)
CrackBerry Addict
 
qc_metal's Avatar
 
Join Date: Mar 2005
Location: Rockford, IL
Model: 9530
OS: 4.7.x
Carrier: Verizon
Posts: 590
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

This would be the server hosting the besmgmt database...hope that helps!

Rob
__________________
Provision, maintain, and report on users via web: the NEW BerryStats | FAQ
Offline  
Old 08-03-2006, 10:23 AM   #250 (permalink)
CrackBerry Addict
 
qc_metal's Avatar
 
Join Date: Mar 2005
Location: Rockford, IL
Model: 9530
OS: 4.7.x
Carrier: Verizon
Posts: 590
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by casaestrada
Ok I am new to all this. I'm tring to read the "README.TXT" file but I am not quiet understanding it specifically the config.asp. What if I have more than one Blackberry server.

For those that are not aware of how to use ASP can you explain the process in simple terms i.e. Step 1 -do this, Step 2-do that, etc etc etc
Ok, on my IIS server, I've done this:

In c:\inetpub\wwwroot (default install), create a folder called 'besadmin.' Copy the files from the zip into this folder.

In c:\inetpub, create a folder called 'config,' copy config.asp into this folder.

In c:\inetpub\wwwroot\besadmin\global.asp, change the reference for the config.asp location to match the fact that it is two folder levels above the besadmin folder (i.e. ../../config/config.asp) - - note that '../' means go up a folder from the existing path.

I put my config.asp file here because I only want my pages to reference it rather than for someone to access it in the browseable folder structure.

Edit config.asp with the appropriate credentials and other settings to access your database. Note that the logs folder setting is not yet utilized.

Create a new IIS virtual directory called 'Besadmin' - direct it to the c:\inetpub\wwwroot\besadmin folder structure. You need to do this from the IIS manager utility on the server in question.

Apply the view to your SQL database.

Browse to your web server: http://yourwebserver/besadmin - hopefully, you should see your page!

Rob
__________________
Provision, maintain, and report on users via web: the NEW BerryStats | FAQ
Offline  
Old 08-03-2006, 12:21 PM   #251 (permalink)
CrackBerry Addict
 
qc_metal's Avatar
 
Join Date: Mar 2005
Location: Rockford, IL
Model: 9530
OS: 4.7.x
Carrier: Verizon
Posts: 590
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

For some odd reason, my zip didn't have my new serverstatus.asp file in it again - I apologize for this...the old one wasn't actually showing the true services on the other BES servers, if selected. This one is working.

Rename as .asp then replace your existing serverstatus.asp page with this one.

Rob
Attached Files
File Type: txt serverstatus.txt (12.1 KB, 15 views)
__________________
Provision, maintain, and report on users via web: the NEW BerryStats | FAQ

Last edited by qc_metal : 08-03-2006 at 03:28 PM.
Offline  
Old 08-03-2006, 03:40 PM   #252 (permalink)
New Member
 
Join Date: Aug 2006
Model: 7100
Posts: 4
Post Thanks: 0
Thanked 0 Times in 0 Posts
Talking Newbie

Now thats what I am talking about. Easy simplied way to install this awesome tool.

One more question what does it mean when you say, Click BES Instance? Where's that at

Again sorry for the ignorance.

Last edited by casaestrada : 08-03-2006 at 04:10 PM.
Offline  
Old 08-03-2006, 05:18 PM   #253 (permalink)
CrackBerry Addict
 
qc_metal's Avatar
 
Join Date: Mar 2005
Location: Rockford, IL
Model: 9530
OS: 4.7.x
Carrier: Verizon
Posts: 590
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Are you at the step where you are using the SQL manager tool? This would be when you right-click on the besmgmt db (also called 'instance' in this case).

By the way, everyone - I added a user authentication page when getting stats from a remote BES server...so don't be surprised ;) (serverstatus.asp).

Most likely, this will play into a larger role later on when locking down settings and functions.

Hope this helps,
Rob
__________________
Provision, maintain, and report on users via web: the NEW BerryStats | FAQ
Offline  
Old 08-04-2006, 06:48 AM   #254 (permalink)
Talking BlackBerry Encyclopedia
 
SimonMac's Avatar
 
Join Date: Feb 2006
Location: Leeds, UK
Model: :(
PIN: Absent :(
Carrier: None :(
Posts: 451
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Just installed the NEW and improved asp version and a few things.

Firstly the Orange and Green color scheames are awful, but thats incedental.

When I click on the Server detials, i get the log on screen and everything works ok. But after that wheich ever server i choose it only shows up the details of the first.

Also how easy would it be to add a link to the homepage somewhere on the server page, or even update the style sheet so if you click on the BerryStats logo it takes you back home?
__________________
No longer have 15 Domino 6.5 Servers
No longer have 6 BES 4.1.3 Servers
No longer have 2613 Users
But still have the 1 Constant Headache?!?!

Offline  
Old 08-04-2006, 09:21 AM   #255 (permalink)
CrackBerry Addict
 
qc_metal's Avatar
 
Join Date: Mar 2005
Location: Rockford, IL
Model: 9530
OS: 4.7.x
Carrier: Verizon
Posts: 590
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Yeah - the color schemes were just kinda added in there so you could edit them without messing up the 'good' one

Clicking on the logo should bring you back to the home page.

Did you get the latest version of the serverstatus.asp page? I had some issues with it yesterday (a LOT of issues), and that was one of them - but now should be resolved.
__________________
Provision, maintain, and report on users via web: the NEW BerryStats | FAQ
Offline  
Old 08-04-2006, 09:38 AM   #256 (permalink)
New Member
 
Join Date: Aug 2006
Model: 7100
Posts: 4
Post Thanks: 0
Thanked 0 Times in 0 Posts
Talking Newbie

Ok I am finally catching on. Explain one more thing please:

Databse access tab
1. check BESMGMT
2. Check DataReader
3. Click OK

Then u say create a view using the code included (view.txt) ---where do i copy or paste this at?
Offline  
Old 08-04-2006, 09:38 AM   #257 (permalink)
Talking BlackBerry Encyclopedia
 
SimonMac's Avatar
 
Join Date: Feb 2006
Location: Leeds, UK
Model: :(
PIN: Absent :(
Carrier: None :(
Posts: 451
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

I have the lastest serverstatus but no joy.

Clicking on the logo sends me back to "HostDomain\Folder\" rather than ""HostDomain\Folder\index.asp"

And gives me:

Directory Listing Denied
This Virtual Directory does not allow contents to be listed.

Any ideas?
__________________
No longer have 15 Domino 6.5 Servers
No longer have 6 BES 4.1.3 Servers
No longer have 2613 Users
But still have the 1 Constant Headache?!?!

Offline  
Old 08-04-2006, 09:39 AM   #258 (permalink)
Talking BlackBerry Encyclopedia
 
SimonMac's Avatar
 
Join Date: Feb 2006
Location: Leeds, UK
Model: :(
PIN: Absent :(
Carrier: None :(
Posts: 451
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by casaestrada
Ok I am finally catching on. Explain one more thing please:

Databse access tab
1. check BESMGMT
2. Check DataReader
3. Click OK

Then u say create a view using the code included (view.txt) ---where do i copy or paste this at?
If using SQL you need to create a new view in the BESMgmt database, not sure about MDSE though
__________________
No longer have 15 Domino 6.5 Servers
No longer have 6 BES 4.1.3 Servers
No longer have 2613 Users
But still have the 1 Constant Headache?!?!

Offline  
Old 08-04-2006, 09:45 AM   #259 (permalink)
CrackBerry Addict
 
qc_metal's Avatar
 
Join Date: Mar 2005
Location: Rockford, IL
Model: 9530
OS: 4.7.x
Carrier: Verizon
Posts: 590
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by SimonMac
I have the lastest serverstatus but no joy.

Clicking on the logo sends me back to "HostDomain\Folder\" rather than ""HostDomain\Folder\index.asp"

And gives me:

Directory Listing Denied
This Virtual Directory does not allow contents to be listed.

Any ideas?
Ah - I think I know why this is...I had at one time set up my default documents for the virtual directory to direct me to index.asp...

Does your HOMEURL constant in the config.asp page show "./index.asp?"

So no joy with the serverstatus.asp? Do you not get any logon screens if attempting to connect to a remote server?

I'm wondering if the page is cached, and you aren't seeing the latest version of it...I'm adding metadata tags to ensure the latest version of the page is shown.

By the way, I just altered the orange and green css styles
__________________
Provision, maintain, and report on users via web: the NEW BerryStats | FAQ
Offline  
Old 08-04-2006, 10:55 AM   #260 (permalink)
BlackBerry God
 
jibi's Avatar
 
Join Date: Oct 2004
Location: Jibi's Secret Place
Model: 8900
OS: 4.6.1.174
Carrier: AT&T
Posts: 11,310
Post Thanks: 0
Thanked 1 Time in 1 Post
Default

a config.php file with values. the options page will be able to write to the configuration file, so the browsing user account (guest/anon account or service account, most likely) would need the ability to write/modify that config file.
__________________
In the beginning the Universe was created. This has made a lot of people very angry and is widely regarded as a bad move.
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.