Installing HP JetDirect printqueue gets error "attachment type is not installed"

Technote (troubleshooting)

Problem(Abstract)
Installing HP JetDirect gets the following error:
Software to support the printer attachment type
you selected is not installed. Press Enter to
install software support packages for printer
attachment types (and printers).

Symptom
Cannot create a HP JetDirect printqueue

Diagnosing the problem
To confirm the problem:
1) verify the fileset is installed:
# lslpp -l |grep -i JetDirect
2) If the fileset is installed try the following command (if it is not installed then install the fileset devices.hpJetDirect.attach)
grep add_queue /usr/lib/lpd/pio/etc/hpJetDirect.attach
add_queue = ps_not_installed_error_ghostName

Resolving the problem
1) edit the following file
vi /usr/lib/lpd/pio/etc/hpJetDirect.attach
Then change the following line to match this output:
add_queue = ps_makhp_prt

2) Now save and exit the file
3) Re-try the creation of the printqueue
=====================================================
Exercise
I was try to create a new printer queue, when I got the following error shown in red:
# smitty mkpq
                                Add a Print Queue            
Move cursor to desired item and press Enter. Use arrow keys to scroll.
# ATTACHMENT TYPE      DESCRIPTION         
local                Printer Attached to Local Host
remote               Printer Attached to Remote Host 
xstation             Printer Attached to Xstation
ascii                Printer Attached to ASCII Terminal
hpJetDirect          Network Printer (HP JetDirect)
file                 File (in /dev directory)
ibmNetPrinter        IBM Network Printer
ibmNetColor          IBM Network Color Printer
other                User Defined Backend 


Printer Attachment Type Support Not Installed

Type or select a value for the entry field.
Press Enter AFTER making all desired changes.

                                                        [Entry Fields]
  Software to support the printer attachment type
  you selected is not installed. Press Enter to
  install software support packages for printer
  attachment types (and printers).

Notice that, hpJetDirect.attach fileset were not installed on the server, which you can find on the AIX base DVD.

#lslpp -l |grep printers.hpJetDirect.attach
#

# smitty install

Install Software

Type or select values in entry fields.      
Press Enter AFTER making all desired changes.

                                                        [Entry Fields]
* INPUT device / directory for software               /test
* SOFTWARE to install                                [+ 5.2.0.105  Hewlett-Packard JetDirect Network Printer Attachmen> +
PREVIEW only? (install operation will NOT occur)    no           +
  COMMIT software updates?                            yes        +
  SAVE replaced files?                                no         +
  AUTOMATICALLY install requisite software?           yes        +
  EXTEND file systems if space needed?                yes        +
  OVERWRITE same or newer versions?                   no         +
  VERIFY install and check file sizes?                no         +
  Include corresponding LANGUAGE filesets?            yes        +
  DETAILED output?                                    no         +
  Process multiple volumes?                           yes       +
  ACCEPT new license agreements?                      yes       +
  Preview new LICENSE agreements?                     no  


Command: OK            stdout: yes           stderr: no

Before command completion, additional instructions may appear below.

[MORE...43]
   (C) Copyright International Business Machines Corp. 1993, 2006.
   (C) Copyright Hewlett-Packard Company, 1993
  
 All rights reserved.
 US Government Users Restricted Rights - Use, duplication or disclosure
 restricted by GSA ADP Schedule Contract with IBM Corp.
. . . . . << End of copyright notice for printers >>. . . .

Finished processing all filesets.  (Total time:  4 secs).

+-----------------------------------------------------------------------------+
                                Summaries:
+-----------------------------------------------------------------------------+

Installation Summary
--------------------
Name                        Level           Part        Event       Result
-------------------------------------------------------------------------------
printers.hpJetDirect.attach 5.2.0.105       USR         APPLY       SUCCESS

[BOTTOM]

Verify
#lslpp -l |grep printers.hpJetDirect.attach
  printers.hpJetDirect.attach
#

You should be able to create the printer queue now.