For printer logs

For printer error logs only 

1)  cat /var/log/cups/error_log | less

Filters only error message 

2) grep -i "error" /var/log/cups/error_log


Moniter logs in real time for cups 

3) tail -f /var/log/cups/error_log

Check completed and failed print jobs:

4) cat /var/log/cups/page_log

Or 

lpstat -W completed

lpstat -W not-completed

System log for printer issue 

1 ) dmesg | grep -i printer

Check journal log for printer error 

2) journalctl -u cups --no-pager | less 


Or 

1) journalctl | grep -i printer

Check connect printer status 

lpstat -p

Check default printer 

lpstat -d

Check printer configuration 

lpoptions -p <printer_name> -l

Check printer conection usb or network 

lsusb | grep -i printer

For network printer 

lpinfo -v

Or 

nmap -p 631 <printer-ip>

Edit the cups printer configuration 

sudo nano /etc/cups/cupsd.conf

Find the line 

LogLevel warn

Chenge it to

LogLevel debug

Find the printer ip address 

ip a | grep inet

Open a browser go to:

http://<printer-ip>:631





Comments

Popular posts from this blog

linux support cmd ( Chandrakant bharti)

hplip

Airscan