BerryStats for NonAdmins
Links:
Original BerryStats - Created and orphaned by me. PHP BerryStats - Created and maintained by blubyu QC_Metal Edition - Created and maintained by QC_Metal. Note: For those of you planning on using the original version, don't. Unless you just need a read-only solution that isn't easy on the eyes, move along to the end of the thread or click the link above. The QC version is much better. It has everything in it that I didn't have time to add and some things I never thought of. ...and it is a hell of a lot prettier. *********************************************** Below info left for historical integrity...or something... *********************************************** I created a view and a couple of webpages that can be used to view berrystats out of the besmgmt database. It has helped out our company tremendously and I felt like I should share. ****EDIT**** I added a screen shot here: http://www.thegrims.com/berrystats/berrystats.jpg It was too large to attach to the post. Due to it's width, your browser will more than likely shrink it by default. You will need to expand it to be able to read it. ****EDIT**** Updated to contain User Device Status ***EDIT 20050622*** I forgot to pay my registrar this year and the name I have had for 5 years is dead until DNS refreshes throughout the NET. Sorry if anybody has tried to get the zip and can't. It should be back up by tomorrow. ***EDIT 20050622B - It's up!!! ***EDIT 20050701 - Added PHP version provided by blubyu |
very nice. thats an awesome contribution!
|
Cool stuff Bjgrim....I must try this.....
|
This is a little tricky going if your web server is not on the same domain as the SQL server... still working on it.
|
Quote:
|
nah, neither worked. Our sql server is in the domain, but IIS server is in the DMZ and a standalone. Working on getting it to work. I might just stand up a simple web server for it to try it out on my box.
|
Quote:
Correction: 1433 TCP and 1434 UDP... my bad... |
Bjgrim, I just honestly want to express gratitude to you. This is quite a nice application to have. I'm adding on to the ASP script to "make it pretty" for those who will be viewing it, but your work has proven invaluable, as I'm not really all that familiar with DBA work. :-)
|
Bjgrim, I also want to say thanks for making this available. This is very nice to have to give to my helpdesk and upper management without giving them access to the BES.
|
Quote:
If you have any questions about the reasons for the fields in the SQL, let me know. For instance.... The site field is actually a substring of the Exchange server name. Our server names are in the format XXXYYYZZZ#. XXX=Company YYY=3 letter Site code ZZZ=Function (XCH for exchange, etc.) # = incremented starting at 1. I pull out the 3 letter site code to allow for filtering by site instead of just by exchange server. That whole column will need to be rewritten or removed from the view for most people. |
Yeah, I removed it. Here's what I'm using:
Code:
CREATE VIEW dbo.BerryStats |
Quote:
|
Bjgrim, RIM bases LastContactTime off LastFwdTime and LastSentTime.
I'm guessing its something along the lines of getting the return from each of the above columns and comparing to see which one is greater, then using it for the base of comparison against the current time on the server and taking the difference and displaying as the LastContactTime. Now, how to write that into a SQL statement is beyond me. :-) This leaves a little room for improvement of the actual LastContactTime return for your code, though. I will talk to our SQL DBAs tomorrow when I get some free time and see if I can get them to look at it. |
Question right quick. How does the UserStats table get populated with data? I guess that could help me understand that part about SQL databases, then it'd open a whole new world to my eyes (well, maybe not that much, but something a little less impacting). I'm guessing application calls?
|
Quote:
All that said...Let me know when you find it, I would love to add it :smile: |
Quote:
|
well, we can compile what we do know...
0 = Initializing 7 = No PIN 9 = Redirection disabled 10 = In cradle - message redirection to handheld disabled 12 = Running |
Quote:
In the meantime, lets keep the thread going. I like where this is going. |
Bjgrim. You should actually attach a few screenshots to the original post so users quickly browsing through the thread might hang out a little longer and try it if they see it off the bat.
|
Quote:
|
All times are GMT -5. The time now is 04:53 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.