The output from lpstat -t
is:
scheduler is running
system default destination: HP-ColorLaserJet-MFP-M278-M281
device for HP-ColorLaserJet-MFP-M278-M281: usb://HP/ColorLaserJet%20MFP%20M278-M281?serial=VNBNL366GV
device for WiFiPrinter: socket://192.168.1.XXX:9100
HP-ColorLaserJet-MFP-M278-M281 accepting requests since Tue 04 May 2021 18:14:21 BST
WiFiPrinter accepting requests since Sun 09 May 2021 11:10:03 BST
printer HP-ColorLaserJet-MFP-M278-M281 is idle. enabled since Tue 04 May 2021 18:14:21 BST
printer WiFiPrinter is idle. enabled since Sun 09 May 2021 11:10:03 BST
and as you’ll notice the system default printer is set to the HP colour laserjet. However, attempting to use it from the command line:
bash-4.4$ lpstat -t | lp
lp: Error - no default destination available.
bash-4.4$ set | grep LPDEST
bash-4.4$ set | grep PRINTER
Odd. If LPDEST
and PRINTER
are not set then lp
should pick up the system or locally defined default. Setting PRINTER
acts as a work-around, but shouldn’t be needed according to the man page.