PJL
From JasonAntmanWiki
PJL, or the Printer Job Language, provides an interface to features of and information about printers. In printers that support IPP, it can easily be queried via a socket connection to port 9100.
Synopsis
Some status commands include:
@PJL USTATUS DEVICE @PJL INFO STATUS - printer status