How to read out the service ID and model number from HP printers via PJL

hpnetwork-printer

As the headline says: Does anybody know how to read out the service ID and the model number from HP printers via PJL?

In general, I am familiar with the process of using PJL for such tasks (e.g. reading out the serial number). I just could not find the variable names for the model number and the service ID.

If it matters, I am especially interested in doing this with color laser printers like the CP5225 and the bigger ones.

For those who haven't done this yet:

1) Install your networked printer normally (port 9100).

2) Open bash (Linux) and do the following:

> nc <IP of your printer> 9100 <-- Type this in bash
@PJL INFO PAGECOUNT            <-- Type this when being connected
4589                           <-- This is the printer's response
...                            <-- and so on

I have tried all sorts of INQUIRE and INFO commands which have come to my mind without success, so further guessing seems to be a waste of time.

Does anybody know the respective variable names, or can I somehow make the printer report all variables it supports?

Best Answer

  • Regarding Model Number :

Regarding your comment, it seems what you are really looking for is the Model Name.

This is returned by the ID category from the INFO command :

@PJL INFO ID<CR><LF>
"LASERJET 4"<CR><LF>
<FF>

This is documented here : http://h10032.www1.hp.com/ctg/Manual/bpl13208.pdf

  • Regarding Service ID :

Some other undocumented PJL commands are referenced here : http://www.undocprint.org/formats/printer_control_languages/pjl

It shows that @PJL INFO PRODINFO could return the Service ID :

@PJL INFO PRODINFO
ProductName = HP LaserJet Professional P1102w
FormatterNumber = Q910CHL
PrinterNumber = Q1234A
ProductSerialNumber = VNB3600454
ServiceID = 20127 <------------------------------------------------- HERE!
FirmwareDateCode = 20091029
MaxPrintResolution = 600
ControllerNumber = Q910CHL
DeviceDescription = HP LaserJet Professional P1102w
DeviceLang = ZJS PJL ACL HTTP
TotalMemory = 8388608
AvailableMemory = 4993912
Personality = 7
EngFWVer = 15
IPAddress = 192.168.1.15
HWAddress = 0025B3EDFFD0

Not tested by myself...Give it a try and let us know.