Install Cups Service -
yum install cups -y
Validating the package -
rpm -qa | grep -i cups
Start Service -
systemctl start cups / service cups start
Status of Service -
systemctl status cups / service cups status
Listing all printers -
lpstat -a
lpstat -a | grep -I <printer-name>
Raw printer configuration -
lpadmin -p <printer-name> -E -v socket://<printer-name>:<port-number> -o printer-error-policy=retry-job
lpadmin -p <printer-name> -m raw
Checking Printer Configuration -
lpoptions -p <printer-name>
Configuring printer with Driver File
lpadmin -p <printer-name> -v socket://<printer-name>:<port-number> -P /etc/cups/ppd/<printer-driver-filename>
/usr/sbin/cupsenable <printer-name>
/usr/sbin/cupsaccept <printer-name>
Removing a Printer -
lpadmin -x <printer-name>
Printer log location -
/var/log/cups
Checking if port open -
nmap -p <port-number> <printer-name>
Checking if printer is reachable and DNS present -
ping <printer-name> / ping <ip-address>
nslookup <printer-name>
Check the print jobs -
lpq -p <printer-name>
How to look for only the PID of the jobs in case clean-up required -
lpq -p <printer-name> | awk '{print $3}'
Cancel any job stuck in print queue -
cancel <PID>
No comments:
Post a Comment