lpstat command builder
See why a printer is not printing
Pick what to check on a Mac or Linux computer: each printer's state, the jobs waiting, the default, the addresses. Get one lpstat line, then paste what it prints to see a paused printer, a queue refusing jobs or a stuck job, with the line that fixes it. It runs in your browser: nothing you type is sent to us.
Paste this in Terminal
Open Terminal from Applications, Utilities. lpstat only reads, so it needs no sudo.
lpstat -p -o -dEach flag
-pWhether each printer is idle, printing or paused (disabled), and why.-oEvery job still in the queue, with its job ID, owner and size.-dWhich printer lp and lpr use when none is named.
Or see everything
lpstat -tEverything at once: scheduler, default, addresses, accepting, each printer and every job.
Read what lpstat printed
Paste its output, from lpstat -t or any of the lines above. The example is a Mac with one printer paused and a job waiting.
Library_Mono is paused. Jobs wait until it is turned back on.
sudo cupsenable Library_Mono
- CUPS
- Running
- Default
- Copy_Room_Colour
- Idle
Copy_Room_ColourTaking jobs. Sends over IPP, port 631. - Paused
Library_MonoWhy: Paused. Taking jobs. 1 job waiting. Sends over raw port 9100.
Jobs: Library_Mono-118 from jsmith. cancel followed by a job ID removes one.
When lpstat answers with an error
lpstat reads CUPS, the print system on every Mac and most Linux computers, which keeps each print queue and each print job in it, and sends to printers over IPP or port 9100.
lpstat: scheduler is not running
CUPS, the print system, has stopped. On a Mac run sudo launchctl kickstart -k system/org.cups.cupsd; on Linux sudo systemctl start cups. Bad file descriptor means the same.
lpstat: No destinations added
This computer has no printer queues yet. Add one with lpadmin, or in System Settings, Printers and Scanners on a Mac.
The printer says disabled
CUPS paused it, usually after a job failed or the printer did not answer. Fix the printer, then sudo cupsenable NAME turns the queue back on. The reason is on the line under it, or in lpstat -l -p.
lpstat: command not found
Every Mac has lpstat. On Debian and Ubuntu it comes with the CUPS client tools: sudo apt install cups-client.
Take it further
- Print queue clear commandJobs stuck in the queue: the cancel and restart lines for a Mac, Linux or Windows.
- lp print command builderSend a job to a queue from Terminal with copies, sides and paper set.
- cupsctl command builderTurn on the CUPS web page at localhost:631 or debug logging to see why jobs fail.
- Print job stuck in the queue?Why a job sticks, what to check on the printer first, and the same steps by hand.
See every printer's state without a Terminal.
lpstat shows one computer's queues. In KyberCopy the relay in the copy room asks each printer over IPP whether it is ready, and the copy room sees every job's state on one screen, from any device.
Book a demo