How do i check the status linux printer/check the printer ipaddress using lpstat:
lpstat command to check the linux printer status:
As a oracle apps dba if we need to check the linux printer status using command "lpstat" options.
At some situation users reporting conncurrent program completed with warnings due printer issue (any issues)
To analyse use "lpstat" command on concurrent manager running linux server,
1.lpstat -p
This will display all configured printer name on this server.
printer xxxx1 is idle. enabled since Thu 03 Nov 2011 03:21:24 PM EDT
printer xxx2 is idle. enabled since Thu 03 Nov 2011 03:21:24 PM EDT
printer xxx3 is idle. enabled since Thu 03 Nov 2011 03:21:24 PM EDT
printer xxx4 is idle. enabled since Thu 03 Nov 2011 03:21:24 PM EDT
printer xxx5 disabled since Thu 19 Apr 2012 05:53:30 PM EDT -Paused
2.lpstat -p xxxx1 (Display particular printer details)
printer xxxx1 is idle. enabled since Thu 03 Nov 2011 03:21:24 PM EDT
3.lpstat -a xxxx1 (Display particular printer print accepting status)
xxxx1 accepting requests since Thu 06 Dec 2012 03:57:25 PM EST
4. lpstat -t xxxx1 (This will display all printer pending que jobs in printer que, if will display more jobs we will face printer print issue)
xxx-655 ora 24576 Tue 08 Dec 2015 01:49:45 PM EST
xxx-656 ora 24576 Tue 08 Dec 2015 09:15:19 PM EST
xxx-657 ora 25600 Tue 08 Dec 2015 09:47:42 PM EST
xxx-658 ora 25600 Tue 08 Dec 2015 10:14:24 PM EST
xxx-659 ora 25600 Tue 08 Dec 2015 10:29:23 PM EST
xxx-682 ora 173056 Thu 20 Jul 2017 08:04:28 PM EDT
xx1-683 ora 211968 Tue 15 Aug 2017 03:12:11 AM EDT
xx1-659 ora 25600 Tue 08 Dec 2015 10:29:23 PM EST
xx2-682 ora 173056 Thu 20 Jul 2017 08:04:28 PM EDT
xx2-683 ora 211968 Tue 15 Aug 2017 03:12:11 AM EDT
.
.
etc
5.lpstat -t |grep xxx (This will display the particular printer pending que jobs in printer que)
Display all printer information. Output will resemble the following:
xxx-655 ora 24576 Tue 08 Dec 2015 01:49:45 PM EST
xxx-656 ora 24576 Tue 08 Dec 2015 09:15:19 PM EST
xxx-657 ora 25600 Tue 08 Dec 2015 09:47:42 PM EST
xxx-658 ora 25600 Tue 08 Dec 2015 10:14:24 PM EST
xxx-659 ora 25600 Tue 08 Dec 2015 10:29:23 PM EST
xxx-682 ora 173056 Thu 20 Jul 2017 08:04:28 PM EDT
5.lpstat -t |grep xxx |wc -l (This will display the total pending que job in printer que)
count 6
lpstat command to check the linux printer status:
As a oracle apps dba if we need to check the linux printer status using command "lpstat" options.
At some situation users reporting conncurrent program completed with warnings due printer issue (any issues)
To analyse use "lpstat" command on concurrent manager running linux server,
1.lpstat -p
This will display all configured printer name on this server.
printer xxxx1 is idle. enabled since Thu 03 Nov 2011 03:21:24 PM EDT
printer xxx2 is idle. enabled since Thu 03 Nov 2011 03:21:24 PM EDT
printer xxx3 is idle. enabled since Thu 03 Nov 2011 03:21:24 PM EDT
printer xxx4 is idle. enabled since Thu 03 Nov 2011 03:21:24 PM EDT
printer xxx5 disabled since Thu 19 Apr 2012 05:53:30 PM EDT -Paused
2.lpstat -p xxxx1 (Display particular printer details)
printer xxxx1 is idle. enabled since Thu 03 Nov 2011 03:21:24 PM EDT
3.lpstat -a xxxx1 (Display particular printer print accepting status)
xxxx1 accepting requests since Thu 06 Dec 2012 03:57:25 PM EST
4. lpstat -t xxxx1 (This will display all printer pending que jobs in printer que, if will display more jobs we will face printer print issue)
xxx-655 ora 24576 Tue 08 Dec 2015 01:49:45 PM EST
xxx-656 ora 24576 Tue 08 Dec 2015 09:15:19 PM EST
xxx-657 ora 25600 Tue 08 Dec 2015 09:47:42 PM EST
xxx-658 ora 25600 Tue 08 Dec 2015 10:14:24 PM EST
xxx-659 ora 25600 Tue 08 Dec 2015 10:29:23 PM EST
xxx-682 ora 173056 Thu 20 Jul 2017 08:04:28 PM EDT
xx1-683 ora 211968 Tue 15 Aug 2017 03:12:11 AM EDT
xx1-659 ora 25600 Tue 08 Dec 2015 10:29:23 PM EST
xx2-682 ora 173056 Thu 20 Jul 2017 08:04:28 PM EDT
xx2-683 ora 211968 Tue 15 Aug 2017 03:12:11 AM EDT
.
.
etc
5.lpstat -t |grep xxx (This will display the particular printer pending que jobs in printer que)
Display all printer information. Output will resemble the following:
xxx-655 ora 24576 Tue 08 Dec 2015 01:49:45 PM EST
xxx-656 ora 24576 Tue 08 Dec 2015 09:15:19 PM EST
xxx-657 ora 25600 Tue 08 Dec 2015 09:47:42 PM EST
xxx-658 ora 25600 Tue 08 Dec 2015 10:14:24 PM EST
xxx-659 ora 25600 Tue 08 Dec 2015 10:29:23 PM EST
xxx-682 ora 173056 Thu 20 Jul 2017 08:04:28 PM EDT
5.lpstat -t |grep xxx |wc -l (This will display the total pending que job in printer que)
count 6
This will help to analyse the issue initialy.
Thanks
No comments:
Post a Comment