Printer commands

1)  To see queue in Printer

 lpstat -o "Printername"

eg:

lpstat -o QVAPCHKP3

QVPCHKP3-136209       appnprd          22528   Tue 11 Sep 2018 08:40:38 AM MST

job  QVPCHKP3-136209

2) To cancel the job

cancel job

eg: cancel  QVPCHKP3-136209 

3) To get printer ip address

lpoptions  -p "Printername" | awk '{for (i=1; i<=NF; i++) {if ($i ~ /device-uri/) {print $i}}}'

eg:

lpoptions  -p QVAPCHKP3 | awk '{for (i=1; i<=NF; i++) {if ($i ~ /device-uri/) {print $i}}}'

device-uri=socket://10.45.45.212:9100

4) Send a test print from server

lp -d QVPCHKP3 test QVPCHKP3.txt



Comments

Popular posts from this blog

adop UNEXPECTED Unable to find appltop_id for host ebsapp2 in database

adop failing ORA-06512: at line 2 (DBD ERROR: OCIStmtExecute)