Laserjet network printer setup in AIX...

Posted on 2006-10-24
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.
Question by:_SKIN_
  • 3

Expert Comment

ID: 17798519
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?


Accepted Solution

robertfwoods earned 250 total points
ID: 17798686
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


Author Comment

ID: 17798729
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.

Expert Comment

ID: 17803458
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

LVL 62

Assisted Solution

gheist earned 250 total points
ID: 17875814
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.


Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Unix, date minus 1, 2 or 3 days (last working day) 11 67
Skill Development 15 182
NTP Server in VMware 5 285
Invalid password trying to cannect to Unix server 2 86
Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
FreeBSD on EC2 FreeBSD ( is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question