Use Ruby to monitor a printer?

A

Ak 756

Hi,everyone!
I want to write a program to monitor a network printer and give
statistic data as whom at what time print how many pages.

Is it possible to do this using Ruby? Which library shall I use to do
this?
 
R

Robert Klemme

I want to write a program to monitor a network printer and give
statistic data as whom at what time print how many pages.

Is it possible to do this using Ruby? Which library shall I use to do
this?

What interface does the printer support? Generally Ruby comes with a
whole bunch of networking support libraries. It really depends on what
your printer offers.

Kind regards

robert
 
A

Ak 756

Robert said:
What interface does the printer support? Generally Ruby comes with a
whole bunch of networking support libraries. It really depends on what
your printer offers.

Kind regards

robert

The printer is connected in a Windows2000 server. All the computers in
the local network can reach the printer. The printer is HP LaserJet
1000. I don't know what interface it support. Shall I interface directly
with the printer or through the Win2000 server?
 
R

Richard Conroy

What interface does the printer support? Generally Ruby comes with a
whole bunch of networking support libraries. It really depends on what
your printer offers.

The best library for monitoring printers is SNMP. All major manufacturers
will support it. There is a ruby-SNMP project, but it leans a lot on
C libraries for basic support of the protocol (like using your printer
manufacturers MIB file).

Alternatively you could scrape the Web UI of the printer, there must be
at least 6 different Ruby libraries for doing this now.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,433
Messages
2,571,683
Members
48,796
Latest member
Greg L.

Latest Threads

Top