We help IT Professionals succeed at work.

Laserjet network printer setup in AIX...

_SKIN_ asked
Medium Priority
Last Modified: 2013-11-17
I need some help setting up a network printer in AIX. Everytime I set it up it prints one job and then the print queue goes down and can not be brought back up. This is happening on all three of my brand new HP Laserjet 4240n printers, My older HP Laserjet 1012n, and my old IBM NP17. I am not sure what I am doing wrong if anything and would like to see a step by step for setting up a network printer in AIX. I have searched google and found nothing that catches my eye. Hopefully there is an expert here. I am sure there is... Speak up please Mr. Expert.
Watch Question

Well first of all we will require some more background:

1)  What version of AIX?
2)  What printing environment? At AIX 5.3 your choices are PowerPC print subsystem or System V print subsystem.
3)  You asked about "network printer". Can we assume that these printers are available on your TCP/IP network and are connected using HP JetDirect protocol? (Just asking. I have seen laser jet printers connected serially with terminal servers cause these kind of problems :-) ).
4)  If they are available on the network, do you have them in your /etc/hosts file or are you resolving names using DNS?
5)  Can you ping or telnet to the printer?

The following is my personal resource document for AIX printing: (Please excuse the links. I could not figure out how to imbed them as hyperlinks.)

The following IBM Red Books will be of great assistance:

Printing for Fun and Profit in AIX 5L SG24-6018-00

Problem Solving and Troubleshooting in AIX 5L  SG24-5496-01 (See Chapter 12)

AIX and Linux Interoperabilty SG24-6622-00 (See Chapter 11)

The Redbook home page. Be sure to search here if you have need for practical guidance to complex AIX configuration questions. Suggested bookmark.

AIX Printing System V Labs for AIX 5.1. While this lab is a bit dated, you will find a great deal of interest and help.

1.      Lab 0  AIX System V Printing - Changing to the System V Print System: Lab 0
2.      Lab 1  AIX System V Printing - Adding a System V Printer From the Command Line: Lab 1
3.      Lab 2  AIX System V Printing - System V Filters: Lab 2
4.      Lab 3  AIX System V Printing - Interface Scripts: Lab 3
5.      Lab 4  System V Printing in AIX 5 - lpr/lpd remote printing: Lab 4
6.      Lab 5  System V Printing - Adding a JetDirect Printer: Lab 5

In case the hyperlinks for the labs above do not work for you the full url’s follow:

Lab 0

lab 1

lab 2

lab 3

lab 4

lab 5

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts


2. ???
3. Yes, they are network printers, they are HP JetDirect.
4. I have modified the AIX etc/hosts file with vi editor. I am not using DNS yet.
5. Yes I can ping and telnet to the printer.
All of that may not been to helpful since you are on

The IBM documentation for AIX 4.3 is still available on-line, it is a bit hard to find though. Use the following link for 4.3 manuals.


Your system has a file for the configuration of your printers. The stanzas in mine read as follows:

       device = hp@hp2100
       file = /var/spool/lpd/pio/@local/dev/hp@hp2100#hpJetDirect#9100
       header = never
       trailer = never
       access = both
       backend = /usr/lib/lpd/pio/etc/piojetd hp2100 9100
       device = hp@hp2101
       file = /var/spool/lpd/pio/@local/dev/hp@hp2101#hpJetDirect#9100
       header = never
       trailer = never
       access = both
       backend = /usr/lib/lpd/pio/etc/piojetd hp2101 9100

Look at your qconfig file. Find the stanza for the printer in question and post it in the thread.

There are two commands to use for managing the print queues, disable and enable. They will make a queue down and ready. Have you tried them when the queue errors out?

I forced an error on my configuration and received the following message from the spooler to the user that actually sent the job to the printer:

Message from root on hawk (UNKNOWN) [Wed Oct 25 06:22:57 MDT 2006] ...
Message from queuing system:
0782-648 piohpnpf: connection reset by peer

Message from root on hawk (UNKNOWN) [Wed Oct 25 06:22:57 MDT 2006] ...
Message from queuing system:
0781-088 Queue hp2100:hp@hp2100 went down, job is still queued:
 Backend: /usr/lib/lpd/pio/etc/piojetd hp2100 9100 /var/spool/qdaemon/t4DkjMa
 Backend Exit Value: EXITFATAL (0100)
 Job Submit Time: Oct 25 06:09:24 2006.  Current Time: Oct 25 06:22:57 2006
Use local problem reporting procedures.

:root:/# lpstat
Queue   Dev   Status    Job Files              User         PP %   Blks  Cp Rnk
------- ----- --------- --- ------------------ ---------- ---- -- ----- --- ---
hp2100  hp@hp DOWN
             QUEUED     74 STDIN.10396        root                 994   1   1
hp2101  hp@hp DOWN

But I could find nothing in the error log.

I did find in the configuration of the spool queue a diagnostic flag. I have not experimented with this but you might try it to see if you get any helpful clues.

Use smit spooler and select from the menu:
Change / Show Print Queue Characteristics

enter the queue name

Move cursor to desired item and press Enter.

 1 Printer Setup
 2 Default Print Job Attributes
 3 Accounting File
 4 Queuing Discipline

select # 2 from above menu

scroll down to the Diagnostic level prompt and hit F4

                           DIAGNOSTIC LEVEL

Move cursor to desired item and press Enter. Use arrow keys to scroll.

 (diag1) - do not print job; display main pipeline and pre-processing f
 (diag2) - do not print job; display all pipelines and filters
 (display) - print job; display all pipelines and filters
 (ignore) - print job; ignore stderr produced by filters
 (normal) - print job; exit if filters produce stderr

Top Expert 2015
First of all you have to install LaserJet backent and LaserJet driver - smitty menus allow to configure them even while not installed, but it simplu does not print.. in short: install form system CD-s printers.* after that done every printing menu works as redbook describe.

Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.


Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.