Current location: Hot Scripts Forums » General Community » Script Requests » Multiple Printer Toner Monitor via browser


Multiple Printer Toner Monitor via browser

Reply
  #1 (permalink)  
Old 11-04-09, 02:04 PM
bond1973 bond1973 is offline
New Member
 
Join Date: Nov 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Multiple Printer Toner Monitor via browser

So...I work at a school district. Four schools, 1 SAU department. We have networked (2003 AD) laser printers throughout. They are all either HP Laserjets or Lexmark (C532/534 or C780/782). Now all of these have built-in web consoles and will show you how much toner is left (whether black or multi-color). Pretty standard really.

What I would like is the ability to go to one browser page (internal network) to see the toner levels for all printers in the district. I would think this would be possible in some way, though I'm not a programmer by any means (unfortunately, though I want to learn damnit).

Any thoughts on this? Does it already exist? I get a request for Cyan for MEM_OFFICE_COLOR...well I'd like to hit one page (instead of logging into each individual printer) and see ALL the printers in that school to see if I should bring something for another printer as well. Just think it would be handy really.

Thanks for your time if you made it this far....
Rick
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 11-04-09, 05:19 PM
whaffenden whaffenden is offline
Newbie Coder
 
Join Date: Nov 2009
Location: England
Posts: 14
Thanks: 1
Thanked 1 Time in 1 Post
Hi Rick,

I know this is the script request section but i can give you a few tips that may help.

I would construct a database table containing all of the URLs to the individual printer web interfaces, so that you can easily add and remove printers at a later stage.

You would also have to find out whether the web interfaces have an API (application programming interface), which would allow you to easily program against them. If they don't then you would need to find out how easy it would be to strip out the rendered HTML output containing the information you need.

Then you would need to build a web application that would in turn connect to each of the printer web interfaces and extract the relevant information, which can be collated and displayed on the web app.

The only problem you may find, is that depending on how many printers there are, it would become quite slow to process all of the data. To overcome this you could run a background app or windows service that would do this process for you and would update a single database, then you're web app just sits on top of that. Obviously giving you a slight delay on the web app depending on the frequency of the background process.

I hope this helps in some way.

Thanks,
Wayne
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 11-04-09, 06:36 PM
bond1973 bond1973 is offline
New Member
 
Join Date: Nov 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Wow...I need an aspirin now. ;-) Wayne...thank you very much for the post. At this point in time, I'm know no programming. I do up batch file scripts for work to perform tasks...that's about it. Back in college I took some Visual Basic for Applications (Excel, Access) classes, but haven't touched it since college (1999'ish). I'd love to start learning, and maybe this is the kick in the arse I need to do so. At the very least...your post has me thinking and yearning to learn. Thanks man.

I know that one thing I have to figure out is how to pull the info from the printer that it's already supplying for its own console. Maybe I'll start there.

Take Care
Rick
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #4 (permalink)  
Old 11-04-09, 09:25 PM
whaffenden whaffenden is offline
Newbie Coder
 
Join Date: Nov 2009
Location: England
Posts: 14
Thanks: 1
Thanked 1 Time in 1 Post
Hi Rick,

I'm glad that helped in some form or another. You've got me interested now, after a bit of research i've found a few interesting things that should help you out.

Firstly, it seems that you can communicate with devices using the SNMP (simple network management protocol) protocol Simple Network Management Protocol - Wikipedia, the free encyclopedia, especially printers. This seems the better way to go, cause you won't need to deduce the web interface!

You call commands using OIDs (object identifiers) and then get the relevant data back. I've found this website HP-LASERJET-COMMON-MIB SNMP MIB for the HP LaserJet OIDs and this website LEXMARK-PVT-MIB SNMP MIB for the Lexmark OIDs.

Finally, this website Cacti: The Complete RRDTool-based Graphing Solution has a free open source PHP web-based application for partly doing what you hope to achieve. They have support forums and documentation etc, which all seem pretty good. This project being web-based sounds like what you need, having that the base code is already in place, you may just need to create a web page based on top of this code, using the above OIDs within you're code.

I still believe you will benefit from storing all of the printer URLs within a simple database table, i recommend using the free MySQL engine as the Cacti project requires this to run anyways.

I hope this gets you somewhere, sounds like an interesting project! Good luck!

Wayne
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with javascript print code? pcinfoman JavaScript 25 06-01-07 06:36 PM
Setting browser to resize and remove tools, scrolling etc. Tonio9 JavaScript 3 05-02-07 04:42 PM
Multiple Browser Preview omniman The Lounge 5 01-19-07 08:26 AM


All times are GMT -5. The time now is 10:15 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.