Link to home
Start Free TrialLog in
Avatar of Jeff Tomich
Jeff TomichFlag for United States of America

asked on

AIX 5L LAN printer DEV_WAIT error

On IBM AIX 5L system. I have a Lexmark 2580-100 dot matrix printer, with a D-Link 10/100 Fast Ethernet Parallel Port Print Server (DP-301P+).Whenever the printer goes off, The IBM lpstat command shows the printer in a "DEV_WAIT" status.  I sent it a test print,  lpstat | lp -dprth and nothing.  I looked at lpstat and the printer only had the test in the Queue and was in a wait status.I tried disable/enable commands turning the printer off, the D-Link Off. Nothing using every combination of on/off sequences.  So I added the printer to a nearby PC, and sent a print job via windows to the IP address and it works fine.

Then I restarted the IBM.  The test print was in the queue and still DEV_WAIT.  I deleted it from the queue and went home. The system restarts itself at 4AM.  When I came in the printer was working fine. I think the file /var/spool/lpd/stat/s.prth.lp7 has something to do with it. The printer is lp7  the queue is prth.  There has to be a way to force the IBM to restart the print queue without deleting all pending print jobs.  I know it has something to do with the status file in the var->spool->lpd->stat folder.
Avatar of David Favor
David Favor
Flag of United States of America image

Likely best to capture a copy of the status file when printer is working + when it's in the DEV_WAIT state.

Comparing the two files may provide you with the fix.
Avatar of dfke
dfke

Hi,

This issue is probably caused by the way the D-Link printserver is configured in AIX.

The following will put prth in the 'DOWN' state.
# disable prth;cancel prth;disable prth

Open in new window

Verify if the queue is down and the jobs are still queued
# lpstat -aprth

Open in new window


After that add an extra printqueue. For instance prthtest from the command line to use piohphpf:
/usr/sbin/piomisc_base mkpq_other  -qprthtest -d 'hp' -b'/usr/lib/lpd/pio/etc/piohpnpf -x '<printserver> -u'TRUE'

Open in new window


<printserver> is the hostname of the D-LINK on either the network in case of DNS or mentioned in /etc/hosts

Disable prthtest by:

# disable prthtest

Open in new window


Move printjobs from prth to prthtest:
#  /usr/bin/enq -Q 'prthtest' -P 'prth'

Open in new window


Verify if the jobs are in the queue prthtest:
lpstat -aprthtest

Open in new window


If so then finally enable prthtest:

# enable prthtest

Open in new window


If it starts printing then you need to remove and readd prth like prthtest.


Cheers
Hi,

Any update on your progress on this?

Cheers
Avatar of Jeff Tomich

ASKER

Sorry for the delay.  I have not had a chance to try the above. The owner sold the building and we are moving in Feb 2019, and I have a lot of prep work to do on moving phones, servers computers, etc. When things slow down in December will try this or if it fails again, will try this.  
Thanks for the help, Will let you all know in the near future
Thanks
Jeff
This question needs an answer!
Become an EE member today
7 DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.