On Fri, 2004-12-17 at 21:21 +0100, David Landgren wrote: > List, > > I have some code that queries an HP LaserJet 4600 printer to retrieve a > web page, that I then scrape to pick out the values of the various > consumables it has (CMYK cartridges and other kits). > > The fact that it uses http is incidental. If HP bothered to supply a > half-decent MIB, SNMP would be a good alternative. > > Anyway, I now have to deal with other HP models, and Ricoh > printer/copiers as well. > > And I haven't a clue what namespace to use. Your advice is much appreciated.
Printer:: comes to mind. How about: Printer::Status::<Brand>::<Model> <Brand> could provide the a common interface around (and wrap) Model. And Status could provide the generic interface for printer status. Just some thoughts... Lincoln
