Technical article 107678

hpnpcfg's Verify gives: "cat: cannot open /usr/lib/hpnp/install.files...".

OpenServer 5.0.0OpenServer 5.0.2

Written · Last revised

Problem

I am running scoadmin: Printers->HP_Network_Printer_Manager
(also known as "hpnpcfg").  From the "HP NETWORK PRINTER
CONFIGURATION TASKS MAIN MENU" I select "#1) Verify installation
of software".  This gives the following error:
cat: cannot open /usr/lib/hpnp/install.files:
     No such file or directory (error 2)
Software verification passed.

However, when I select "#2) Configure a printer with BOOTP/TFTP", I get:

"bootps" service not found in /etc/inetd.conf

Configure inetd to support the bootps service if /etc/bootpd exists or install the HP Network Printer Interface software again to acquire the BOOTP software.

Press the return key to return to the main menu ...

Cause

HPNP remote network printing needs to be installed before
the HP Network Printer Manager options are valid.  Or if it had
previously been installed, then one or more of the needed files
are missing, such as /usr/lib/hpnp/install.files, which contains
a list of files that should be installed, or
/usr/lib/hpnp/.installed, which flags the installation as
completed.
Additionally, the message displayed when the Verify option is
selected is incorrect.  This problem has been reported to SCO
Engineering and is scheduled to be addressed in an upcoming
release.

Solution

From scoadmin select: Printers->HP Network Print Services Manager.
This brings up the "HP Network Printer Configuration" program
("mkdev hpnp").  You will get a prompt as: "Do you want to install
or remove network printing (i/r/q)? [q]:".  Select type "i" to
install.  This should resolve the problem.  If it did not, come
back to this function and first choose "r" to remove and then "i"
to install.

To correct the Verify routine so that it correctly fails when /usr/lib/hpnp/install.files does not exist, do the following:

1. Log in as root and change directory to /usr/lib/hpnp/cfg

2. Edit the file option1 and position to the line (circa line 49) that reads:

for NAME in `cat ${HPNPDIR}/install.files`

3. Insert before that line the following:

if [ ! -f ${HPNPDIR}/install.files ]; then
    ALLFINE=0
fi

4. Change the following line (line 49):

FROM:
for NAME in `cat ${HPNPDIR}/install.files`
TO:
for NAME in `cat ${HPNPDIR}/install.files 2>/dev/null`

5. Save the changed changes and exit the editor.

NOTE:     An alternative to steps 3 and 4 would be to do step 3,
          but with "else" instead of "fi", and instead of step 4, put
          the "fi" line after the for-do-done loop.

See also

Manual pages:  mkdev(ADM), scoadmin(ADM), scoadmin(F), scohelp(X)

From the Xinuos technical article database, record 107678. Reproduced with permission. The original is at www.sco.com/ta/107678, which is reachable but blocked from search engines. Xinuos marks this article against a retired product line. That refers to the product’s lifecycle, not to whether the advice still works — plenty of it still applies to running systems.

Next step

Need this fixed rather than explained?

Tell us the release, what the system runs and what it is doing. We will reply by email with what we would do next.

  • You deal with the people who do the work
  • No obligation, and no upgrade required before we will help
  • We tell you plainly if something is not worth doing

Send an enquiry

We reply by email. If a server is down, say so in the first line. You can also write to help@scoexpert.com.