To check printer available or not : lpstat -l -p printername
[oraplayers:ORAPLAYERS:apploplayers]$ lpstat -lp PRINTER_NAME
printer PRINTER_NAME is idle. enabled since Thu Apr 28 04:42:04 2011. available.
Form mounted:
Content types: application/octet-stream
Description:
Printer types: unknown
Connection: direct
Interface: /usr/lib/lp/model/netstandard
After fault: continue
Users allowed:
(all)
Forms allowed:
(none)
Media supported:
(none)
Banner page never printed
Character sets:
(none)
Default pitch:
Default page size:
Default port setting:
Options: dest= oraplayers.blog.com:9100, protocol=tcp, timeout=60
[oraplayers:ORAPLAYERS:apploplayers]$
Status : lpc status printername
[oraplayers:ORAPLAYERS:apploplayers]$ lpc status PRINTER_NAME
PRINTER_NAME:
queueing is enabled
printing is disabled
0 entries in spool area
[oraplayers:ORAPLAYERS:apploplayers]$
To list the printer Jobs : lpstat -o printername
[oraplayers:ORAPLAYERS:apploplayers]$ lpstat -o PRINTER_NAME
PRINTER_NAME-3619 apploplayers@oraplayers 1001 Jul 22 03:29
PRINTER_NAME-3649 apploplayers@oraplayers 1001 Jul 22 03:31
PRINTER_NAME-3693 apploplayers@oraplayers 1001 Jul 22 03:35
PRINTER_NAME-3725 apploplayers@oraplayers 1001 Jul 22 03:38
PRINTER_NAME-3760 apploplayers@oraplayers 1001 Jul 22 03:41
PRINTER_NAME-3853 apploplayers@oraplayers 1001 Jul 22 03:56
PRINTER_NAME-3908 apploplayers@oraplayers 1001 Jul 22 04:02
PRINTER_NAME-3931 apploplayers@oraplayers 1001 Jul 22 04:05
PRINTER_NAME-3953 apploplayers@oraplayers 1001 Jul 22 04:08
PRINTER_NAME-3978 apploplayers@oraplayers 1001 Jul 22 04:11
PRINTER_NAME-4013 apploplayers@oraplayers 1001 Jul 22 04:17
PRINTER_NAME-4082 apploplayers@oraplayers 1001 Jul 22 04:28
PRINTER_NAME-4107 apploplayers@oraplayers 1001 Jul 22 04:35
PRINTER_NAME-4213 apploplayers@oraplayers 1001 Jul 22 04:50
PRINTER_NAME-4343 apploplayers@oraplayers 1001 Jul 22 05:05
PRINTER_NAME-4364 apploplayers@oraplayers 1001 Jul 22 05:08
PRINTER_NAME-4411 apploplayers@oraplayers 1001 Jul 22 05:14
PRINTER_NAME-4433 apploplayers@oraplayers 1001 Jul 22 05:20
PRINTER_NAME-4446 apploplayers@oraplayers 1001 Jul 22 05:23
PRINTER_NAME-4470 apploplayers@oraplayers 1001 Jul 22 05:26
PRINTER_NAME-4496 apploplayers@oraplayers 1001 Jul 22 05:29
PRINTER_NAME-4521 apploplayers@oraplayers 1001 Jul 22 05:32
PRINTER_NAME-4571 apploplayers@oraplayers 1001 Jul 22 05:41
PRINTER_NAME-4597 apploplayers@oraplayers 1001 Jul 22 05:44
PRINTER_NAME-4613 apploplayers@oraplayers 1001 Jul 22 05:47
PRINTER_NAME-5021 apploplayers 133050 Apr 27 11:11
PRINTER_NAME-5022 apploplayers 133050 Apr 27 11:51
[oraplayers:ORAPLAYERS:apploplayers]$
Cancel Printer Job: cancel JOBID
[oraplayers:ORAPLAYERS:apploplayers]$ cancel PRINTER_NAME-3649
PRINTER_NAME-3649: cancelled
To cancel multiple jobs/ stuck jobs : cancel <jobid 1> <jobid 2>
[oraplayers:ORAPLAYERS:apploplayers]$ cancel PRINTER_NAME-3725 PRINTER_NAME-3760 PRINTER_NAME-3853 PRINTER_NAME-3908 PRINTER_NAME-3931 PRINTER_NAME-3953 PRINTER_NAME-3978 PRINTER_NAME-4013 PRINTER_NAME-4082 PRINTER_NAME-4107 PRINTER_NAME-4213 PRINTER_NAME-4343 PRINTER_NAME-4364 PRINTER_NAME-4411 PRINTER_NAME-4433 PRINTER_NAME-4446 PRINTER_NAME-4470 PRINTER_NAME-4496 PRINTER_NAME-4521 PRINTER_NAME-4571 PRINTER_NAME-4597 PRINTER_NAME-4613
PRINTER_NAME-3725: cancelled
PRINTER_NAME-3760: cancelled
PRINTER_NAME-3853: cancelled
PRINTER_NAME-3908: cancelled
PRINTER_NAME-3931: cancelled
PRINTER_NAME-3953: cancelled
PRINTER_NAME-3978: cancelled
PRINTER_NAME-4013: cancelled
PRINTER_NAME-4082: cancelled
PRINTER_NAME-4107: cancelled
PRINTER_NAME-4213: cancelled
PRINTER_NAME-4343: cancelled
PRINTER_NAME-4364: cancelled
PRINTER_NAME-4411: cancelled
PRINTER_NAME-4433: cancelled
PRINTER_NAME-4446: cancelled
PRINTER_NAME-4470: cancelled
PRINTER_NAME-4496: cancelled
PRINTER_NAME-4521: cancelled
PRINTER_NAME-4571: cancelled
PRINTER_NAME-4597: cancelled
PRINTER_NAME-4613: cancelled
[oraplayers:ORAPLAYERS:apploplayers]$
To give print from OS level:
Create a file with some text for testing. In this case file is “a”
[oraplayers:ORAPLAYERS:apploplayers]$ lp -d PRINTER_NAME a
request id is PRINTER_NAME-5031 (1 file(s))
- Check the print is cmg or not?
Note :
[oraplayers:ORAPLAYERS:apploplayers]$ lpstat -o|grep PRINTER_NAME
[oraplayers:ORAPLAYERS:apploplayers]$
- This cmd only list the printer name..if any job of that printer in Q. So always to check whether printer is there are not @ OS level below cmd
Best way to Check Printer Configured/Status @ OS Level
lpstat -lp PRINTER_NAME
UR's Key Run ;-)
[oraplayers:ORAPLAYERS:apploplayers]$ lpstat -lp PRINTER_NAME
printer PRINTER_NAME is idle. enabled since Thu Apr 28 04:42:04 2011. available.
Form mounted:
Content types: application/octet-stream
Description:
Printer types: unknown
Connection: direct
Interface: /usr/lib/lp/model/netstandard
After fault: continue
Users allowed:
(all)
Forms allowed:
(none)
Media supported:
(none)
Banner page never printed
Character sets:
(none)
Default pitch:
Default page size:
Default port setting:
Options: dest= oraplayers.blog.com:9100, protocol=tcp, timeout=60
[oraplayers:ORAPLAYERS:apploplayers]$
Status : lpc status printername
[oraplayers:ORAPLAYERS:apploplayers]$ lpc status PRINTER_NAME
PRINTER_NAME:
queueing is enabled
printing is disabled
0 entries in spool area
[oraplayers:ORAPLAYERS:apploplayers]$
To list the printer Jobs : lpstat -o printername
[oraplayers:ORAPLAYERS:apploplayers]$ lpstat -o PRINTER_NAME
PRINTER_NAME-3619 apploplayers@oraplayers 1001 Jul 22 03:29
PRINTER_NAME-3649 apploplayers@oraplayers 1001 Jul 22 03:31
PRINTER_NAME-3693 apploplayers@oraplayers 1001 Jul 22 03:35
PRINTER_NAME-3725 apploplayers@oraplayers 1001 Jul 22 03:38
PRINTER_NAME-3760 apploplayers@oraplayers 1001 Jul 22 03:41
PRINTER_NAME-3853 apploplayers@oraplayers 1001 Jul 22 03:56
PRINTER_NAME-3908 apploplayers@oraplayers 1001 Jul 22 04:02
PRINTER_NAME-3931 apploplayers@oraplayers 1001 Jul 22 04:05
PRINTER_NAME-3953 apploplayers@oraplayers 1001 Jul 22 04:08
PRINTER_NAME-3978 apploplayers@oraplayers 1001 Jul 22 04:11
PRINTER_NAME-4013 apploplayers@oraplayers 1001 Jul 22 04:17
PRINTER_NAME-4082 apploplayers@oraplayers 1001 Jul 22 04:28
PRINTER_NAME-4107 apploplayers@oraplayers 1001 Jul 22 04:35
PRINTER_NAME-4213 apploplayers@oraplayers 1001 Jul 22 04:50
PRINTER_NAME-4343 apploplayers@oraplayers 1001 Jul 22 05:05
PRINTER_NAME-4364 apploplayers@oraplayers 1001 Jul 22 05:08
PRINTER_NAME-4411 apploplayers@oraplayers 1001 Jul 22 05:14
PRINTER_NAME-4433 apploplayers@oraplayers 1001 Jul 22 05:20
PRINTER_NAME-4446 apploplayers@oraplayers 1001 Jul 22 05:23
PRINTER_NAME-4470 apploplayers@oraplayers 1001 Jul 22 05:26
PRINTER_NAME-4496 apploplayers@oraplayers 1001 Jul 22 05:29
PRINTER_NAME-4521 apploplayers@oraplayers 1001 Jul 22 05:32
PRINTER_NAME-4571 apploplayers@oraplayers 1001 Jul 22 05:41
PRINTER_NAME-4597 apploplayers@oraplayers 1001 Jul 22 05:44
PRINTER_NAME-4613 apploplayers@oraplayers 1001 Jul 22 05:47
PRINTER_NAME-5021 apploplayers 133050 Apr 27 11:11
PRINTER_NAME-5022 apploplayers 133050 Apr 27 11:51
[oraplayers:ORAPLAYERS:apploplayers]$
Cancel Printer Job: cancel JOBID
[oraplayers:ORAPLAYERS:apploplayers]$ cancel PRINTER_NAME-3649
PRINTER_NAME-3649: cancelled
To cancel multiple jobs/ stuck jobs : cancel <jobid 1> <jobid 2>
[oraplayers:ORAPLAYERS:apploplayers]$ cancel PRINTER_NAME-3725 PRINTER_NAME-3760 PRINTER_NAME-3853 PRINTER_NAME-3908 PRINTER_NAME-3931 PRINTER_NAME-3953 PRINTER_NAME-3978 PRINTER_NAME-4013 PRINTER_NAME-4082 PRINTER_NAME-4107 PRINTER_NAME-4213 PRINTER_NAME-4343 PRINTER_NAME-4364 PRINTER_NAME-4411 PRINTER_NAME-4433 PRINTER_NAME-4446 PRINTER_NAME-4470 PRINTER_NAME-4496 PRINTER_NAME-4521 PRINTER_NAME-4571 PRINTER_NAME-4597 PRINTER_NAME-4613
PRINTER_NAME-3725: cancelled
PRINTER_NAME-3760: cancelled
PRINTER_NAME-3853: cancelled
PRINTER_NAME-3908: cancelled
PRINTER_NAME-3931: cancelled
PRINTER_NAME-3953: cancelled
PRINTER_NAME-3978: cancelled
PRINTER_NAME-4013: cancelled
PRINTER_NAME-4082: cancelled
PRINTER_NAME-4107: cancelled
PRINTER_NAME-4213: cancelled
PRINTER_NAME-4343: cancelled
PRINTER_NAME-4364: cancelled
PRINTER_NAME-4411: cancelled
PRINTER_NAME-4433: cancelled
PRINTER_NAME-4446: cancelled
PRINTER_NAME-4470: cancelled
PRINTER_NAME-4496: cancelled
PRINTER_NAME-4521: cancelled
PRINTER_NAME-4571: cancelled
PRINTER_NAME-4597: cancelled
PRINTER_NAME-4613: cancelled
[oraplayers:ORAPLAYERS:apploplayers]$
To give print from OS level:
Create a file with some text for testing. In this case file is “a”
[oraplayers:ORAPLAYERS:apploplayers]$ lp -d PRINTER_NAME a
request id is PRINTER_NAME-5031 (1 file(s))
- Check the print is cmg or not?
Note :
[oraplayers:ORAPLAYERS:apploplayers]$ lpstat -o|grep PRINTER_NAME
[oraplayers:ORAPLAYERS:apploplayers]$
- This cmd only list the printer name..if any job of that printer in Q. So always to check whether printer is there are not @ OS level below cmd
Best way to Check Printer Configured/Status @ OS Level
lpstat -lp PRINTER_NAME
UR's Key Run ;-)
No comments:
Post a Comment