#printer #printers #printqueue #lpstat #lsallq #cron #crontab #upq #motd
Manually give the printer queue a nudge by: Entering
`Enable <printerqueuename>`
With `lpstat –a<printerqueuename>` you can check the status of the printer queue. Run lpstat each time and you can see if the queue is emptying.
If it is still not entirely clear which printer queue is stuck, you can look it up with the following command:
`lsallq | grep <searchstring>`
But, normally on the AIX servers a Cron Job (scheduled task) runs which should restart the printer queues when they are “stuck.” This script is normally located in the folder: /usr/bin. The script is called upq. You can view the cronjob by:
`crontab –l | grep upq`
(upq is actually the search term within the cronjobs)
When a printer is not printing:
Check with
`lpstat –a<printerqueuename>`
Is the printer down?
Then ask if the printer can be turned off for a moment. 20 seconds off and then on again. After that, enter:
`Enable <printerqueuename>`
Testing the print queue:
`lpstat –a<printqueuename>`
(-a and printqueuename together, not separated by a space) With lpstat –a you request the status of the print queue, not what is in it. With
`lp –d<printqueuename> /etc/motd`
you print the file /etc/motd (motd = Message Of The Day)