Conversing with your Laser Printer:(See disclaimer below)
To extract information from your printer in PJL telnet to its IP address, port 9100 (or by serial, see below), and send it these commands:
<Control+[>%-12345X@PJL <Enter>
Then copy and paste the following commands:
@PJL INFO ID
@PJL INFO CONFIG
@PJL INFO FILESYS
@PJL INFO MEMORY
@PJL INFO STATUS
@PJL INFO VARIABLES
Save your responses, and then type (note: NO <Enter> afterwards):
<Control+[>%-12345X
Then you can disconnect and/or close your Telnet program
If you could post your results in the comments, I'd be happy to share them. (Feel free to remove serial numbers if you wish; simply replace them with 'x's or '-'s.) I'm trying to get a feel for what the most common options and languages are, as an upcoming open-source project has me parsing raw data and sending it to network printers.
Note: Using a real pseudonym and email address in the comments is not necessary, (use fake ones if you prefer, but there are no mailing lists or spam; it would just be nice to have an email address on hand in case clarification is required.
The usual disclaimers apply: I'm not responsible for damages caused to your stuff or expenses incurred (i.e ink/toner/paper). Luckily, the worst case scenario is either A) Print out a page with those commands on it, or B) Hog the printer's I/O until it times out (or you turn it off and then back on). For this reason, I recommend only trying this on a printer to which you *own* and to which you have physical access.
PJL Commands:
Tip: To run a PJL command,
you need to be in PJL mode. If you're not in PJL mode (ie you typed something that doesn't begin with an @, you get bumped into raw text mode), you need to send a <Control+[>%-12345X@PJL <Enter>, then you can type your PJL command, beginning with "@". To end your PJL session, send <Control+[>%-12345X (with no <Enter> after it)
"@PJL" can be used as a command on its own, or rather, a lack of command (or NOOP). It is used after the Escape Code (...%-12345X) to tell the printer you will be typing some PJL. This is necessary because printers sample the code after the Escape Code (...%-12345X) to try to determine what type of data they are receiving (PJL, PCL, PCLXL, PostScript, etc., depending on the model)
HP LaserJet 4M Plus
HP Color LaserJet CP1518ni:
HP Color Laserjet MFP M275nw:
HP LaserJet 1012:
HP LaserJet 9050:
HP Color LaserJet 9500:
Brother HL-3040cn:
Brother MFC-7440n:
See also:
Please note:
| Attachment | Size |
|---|---|
| HP CP1518ni Info Dump.doc | 22 KB |
| HP LaserJet 4M Plus Info Dump.doc | 22.5 KB |
| HP LaserJet 1012 Info Dump.doc | 18.5 KB |
| Brother MFC-7440N Info Dump.doc | 17 KB |
| HP LaserJet 9050 Info Dump_redacted.doc | 21.5 KB |
| HP Color LaserJet 9500 Info Dump_redacted.doc | 19.5 KB |
| HP Color LaserJet MFP M275nw Info Dump.doc | 24.5 KB |
| Brother HL-3040CN Info Dump.doc | 18.5 KB |
Comments
HP LaserJet 9500
[Ed: *snip*, .doc'ified]
HP LaserJet 9050
@PJL INFO ID
"hp LaserJet 9050"
[Ed: *snip* This post has been .DOC'ified.]
Post new comment